安裝步驟:
1.建立放置資料庫的目錄(可自己設定任意位置)
[root@rep ~]# mkdir /usr/public
2.建立svn資料庫
[root@rep ~]# svnadmin create /usr/public/svn
3.更改權限
cd /usr/public
[root@rep ~]# chown apache.apache svn/ -R
4.#修改 subversion參數
[root@linuxbackup conf.d]# vi /etc/httpd/conf.d/httpd.conf
#找到相同參數做如下變更
LoadModule dav_svn_module modules/mod_dav_svn.so
# Only needed if you decide to do "per-directory" access control.
#LoadModule authz_svn_module modules/mod_authz_svn.so
modules/mod_authz_svn.so
#增加下列參數
DAV svn
SVNPath /usr/public/svn
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
5.重新啟動Apache.
[root@rep conf.d]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
建立第一個用戶:
[root@linuxbackup conf.d]# htpasswd -cm /etc/svn-auth-conf jackwan
根據提示輸入密碼並且確認密碼,再建立其他用戶就不需要再加上參數-c了
第二個用戶(去掉 -c):
htpasswd -m /etc/svn-auth-conf keen
htpasswd -m /etc/svn-auth-conf harry
修改svn 密碼檔
[root@subversion ~]# vi /etc/svn-auth-conf
沒有留言:
張貼留言