SVN安裝應用
一般功能性的插件 用yum安裝最方便快捷的方法,最好不去編譯,因為編譯很麻煩
系統環境:redhat6.5
[root@localhost sadoc]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[root@localhost sadoc]# uname -rm
2.6.32-431.el6.x86_64 x86_64
yum安裝rpm包安裝後本地不清除的方法
[root@localhost ~]# yum -y install subversion
[root@localhost ~]# sed -i ‘s#keepcache=0#keepcache=1#g‘ /etc/yum.conf
[root@localhost ~]# grep keepcache /etc/yum.conf
keepcache=1
[root@localhost ~]# mkdir -p /application/svndata 數據存儲根目錄
[root@localhost ~]# mkdir -p /application/svnpasswd 用戶密碼的權限目錄
[root@localhost ~]# svnserve -d -r /application/svndata/ 啟動svn並指定數據存儲跟目錄
[root@localhost ~]# ps -ef | grep svn 確認服務是否啟動svn的三種方法
root 1808 1 0 22:57 ? 00:00:00 svnserve -d -r /application/svndata/
root 1810 1710 0 22:57 pts/0 00:00:00 grep svn
[root@localhost ~]# lsof -i:3690
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
svnserve 1808 root 3u IPv4 13395 0t0 TCP *:svn (LISTEN)
[root@localhost ~]# netstat -lntup | grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 1808/svnserve
[root@localhost ~]# svnadmin create /application/svndata/sadoc 創建svn版本庫sadoc
[root@localhost ~]# cd /application/svndata/sadoc/conf/
[root@localhost conf]# ls
authz passwd svnserve.conf
[root@localhost conf]#cp authz passwd /application/svnpasswd/
[root@localhost conf]#cp svnserve.conf svnserve.conf.bak 備份配置文件
[root@localhost conf]#vim svnserve.conf 找到以下幾行取消註釋並修改
anon-access = read
auth-access = write
authz-db = /application/svnpasswd/authz
password-db = /application/svnpasswd/passwd 密碼集中管理
[root@localhost conf]# diff svnserve.conf svnserve.conf.bak
diff: extra operand `svnserve.conf.bak‘
diff: Try `diff --help‘ for more information.
[root@localhost conf]# diff svnserve.conf svnserve.conf.bak
12,13c12,13
< anon-access = read
< auth-access = write
---
> # anon-access = read
> # auth-access = write
20c20
< password-db = /application/svnpasswd/passwd
---
> # password-db = passwd
27c27
< authz-db = /application/svnpasswd/authz
---
> # authz-db = authz
[root@localhost ~]#pkill svnserve
[root@localhost ~]#svnserve -d -r /application/svndata
更改svnserve.conf時重啟svn才會生效
編輯authz和passwd不需要重啟svn
在win安裝客戶端,下載安裝下一步下一步即可
在桌面上右擊鼠標
紅色框出部分按照
SVN安裝應用