1, check whether the system has been installed if installed on the uninstall
Rpm-qa Subversion
Yum Remove Subversion
2, installation
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
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!