1. Install SVN
Yum Install Subversion
View the installation directory
RPM-QL subversion to see where Yum installs Subversion
2. Create a warehouse
Create a repository directory
Mkdir-p/var/svnrepos
To create a version library
Svnadmin Create/var/svnrepos
3. Modify the Configuration
Go to the Repository directory,
To modify the conf/svnserve.conf configuration file:
Anon-access=none #匿名用户不可访问
Auth-access=write #认证用户可以执行写操作
PASSWORD-DB=PASSWD #密码文件
Authz-db=authz #认证文件
4. Add Users
Under the Conf directory of the repository:
Open passwd file, add user
Xiezhengcai=xiezhengcai #用户名 = password
Open the Authz file, increase access, add at the end
[/]
Xiezhengcai=rw
5. Configuration iptables allows SVN 3690 port to be
Vi/etc/sysconfig/iptables
-A input-m state--state new-m tcp-p TCP--dport 3690-j ACCEPT #增加这一行
Service iptables Restart #重启iptables
6. Start SVN server
Killall-hup Svnserve #先kill掉svn进程, if in the condition of reboot
Svnserve-d-r/var/svnrepos
7, create trunk, tags, branches structure
Client use TortoiseSVN checkout out svn://xxxxxxxx, set up trunk, tags, branches three directories to submit.
Right-click----tortoisesvn---repository Browse
Create tags, branches, trunk three folders on the interface
CentOS SVN Server Setup