Linux (CentOS-6.5) installation configuration svn

Source: Internet
Author: User

Installation Instructions
System Environment: CentOS-6.5
Installation method: Yum Install (source installation is prone to version compatibility issues)
Install software: System automatically download BINGSVN software first step: Install svn check installed version
#检查是否安装了低版本的SVN
[Email protected]/]# Rpm-qa Subversion

#卸载旧版本SVN
[[email protected] modules]# Yum remove subversion install SVN
[[email protected] modules]# Yum install httpd httpd-devel Subversion mod_dav_svn Mod_auth_mysql confirm that the SVN module is installed
[Email protected]/]# Cd/etc/httpd/modules
[[email protected] modules]# ls | grep SVN
Mod_authz_svn.so
Mod_dav_svn.so

Verifying the installation
Verify that the SVN version information is installed
[[email protected] modules]# Svnserve--version Step Two: Create an SVN repository catalog code base
SVN repository is also required after the installation
[Email protected] modules]# mkdir-p/opt/svn/repo
[Email protected] modules]# svnadmin Create/opt/svn/repo
After executing the above command, automatically establish the Repo library, view the/opt/svn/repo folder discovery contains Conf, db,format,hooks, locks, README.txt and other files, stating that an SVN repository has been established.
Step Three: Configure the Repository Configuration version Library
Go to the folder created above conf, configure
[Email protected] modules]# cd/opt/svn/repo/conf   Fourth Step: User password passwd configuration[Email protected] password]# cd/opt/svn/repo/conf
[Email protected] conf]# VI passwd modified passwd to the following: [Users]
# Harry = Harryssecret
# sally = Sallyssecret
svntest=123456 Fifth Step: Permission control Authz Configuration[Email protected] conf]# VI + authz [groups]
[/]
SVNTEST=RW means that the Svntest user has read and write access to the repository's root directory. Sixth step: Modify the svnserve.conf file Anon-access = Read #匿名用户可读
auth-access = Write #授权用户可写
Password-db = passwd #使用哪个文件作为账号文件
Authz-db = Authz #使用哪个文件作为权限文件
Realm =/var/svn/svnrepos # certified space name, Repository directory Seventh step: Start SVN repository svnserve-d-r/var/svn/repo View SVN process
[Email protected] conf]# Ps-ef|grep svn|grep-v grep
Root 12538 1 0 14:40? 00:00:00 svnserve-d-r/opt/svn/repositories

Detecting SVN ports
[Email protected] conf]# Netstat-ln |grep 3690
TCP 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN

Stop restarting SVN
[[email protected] password]# killall svnserve//Stop
[[email protected] password]# svnserve-d-r/opt/svn/repositories//start

Test
The SVN service is started and the connection is tested using the client.
Client Connection Address: svn://192.168.15.231
Username/password: zhoulf/123456
Tests the creation of folders and other operations.

Linux (CentOS-6.5) installation configuration svn

Related Article

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.