环境 CentOS 5.3 + Subversion 1.4.2
---------------------------------------
sudo yum install subversion
sudo /usr/sbin/useradd svn
sudo passwd svn
su svn
cd
mkdir repositories
cd repositories
svnadmin create myproject
edit "myproject/conf/svnserve.conf"
anon-access = none
#auth-access = write
password-db = passwd
#authz-db = authz
edit the password file "myproject/conf/passwd"
[users]
john = foobar123
edit the password file "myproject/conf/authz"
[myproject:/]
john = rw
Start SvnServer
svnserve -d -r /home/svn/repositories/myproject/ --listen-host 127.0.0.1 --listen-port 3690
---------------------------------------------------------------------------
开启防火前端口3690
--------------------------------------------------------------------------
ok.
--------------------------------------------------------------------------
在开机时启动SVN服务
vi /etc/rc.local
svnserve -d -r /home/svn/repositories/myproject/