Detailed tutorials for installing SVN under CentOS6.4 (Ultra detail) _linux

Source: Internet
Author: User
Tags abs svn

1, check whether the system has been installed if installed on the uninstall

Rpm-qa Subversion
Yum Remove Subversion

2, installation

Yum Install Subversion

3. Set up SVN database

Mkdir-p/home/svn/repos
svnadmin create/home/svn/repos

After executing the above command, automatically set up repositories library, view the/home/svn/repos folder found contains Conf, db,format,hooks, locks, README.txt and other documents, stating that an SVN library has been established.

4, into the/home/svn/repos/above the generated folder , the configuration Authz file configuration purpose is to set which users can access which directories, add the following to the Authz file

[/]
afa4j = RW
ABS = RW

passwd file configuration is to add user name and password file, modify the following

[Users]
# Harry = Harryssecret
# sally = Sallyssecret
afa4j = afa4j
ABS = abs123

svnserve.conf file Configuration Configuration access rights

[General]
Anon-access = none
auth-access = Write
password-db = passwd
authz-db = Authz Realm
=/home/svn/repos

5, Start SVN

/etc/init.d/svnserve start

6. Check process and listening port

Ps-ef |grep svn |grep-v grep
root 23580 1 0 20:10? 00:00:00/usr/bin/svnserve--daemon E.pid
NETSTAT-ANTLP |grep:3690
TCP 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 23580/svnserve

7, modify the default port to 20016 open

Vim/etc/init.d/svnserve
args= "--daemon--pid-file=${pidfile} $OPTIONS--listen-port 20016"

Find this line add--listen-port 20016

Save

8, restart

Service svnserve Restart
ps-ef |grep svn |grep-v grep
root 23580 1 0 20:10? 00:00:00/usr/bin/svnserve--daemon --pid-file=/var/run/svnserve.pid--listen-port 20016
netstat-antlp |grep:20016
TCP 0 0 0.0.0.0:20016 0.0.0.0: * LISTEN 23580/svnserve

9, TortoiseSVN Client connection Test version Library URL svn://xxx.xxx.xxx:20016/home/svn/repos Pop-up dialog box enter the user name you added earlier password Enter a picture description

The above is a small set to introduce the CentOS6.4 under the installation of SVN detailed tutorial (super detail), I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.