CentOS SVN Server Setup

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.