"CentOS install Subversion"
The reprint address is: http://jingyan.baidu.com/article/d45ad148e9cfc069542b8046.html
#Check if SVN is installed on this machine
[root@test2 etc]# rpm -qa subversion
[root@test2 etc]#
#Uninstall the old version
[root@test2 etc]# yum remove subversion
#Install SVN In order to facilitate future operations and install other services at the same time, you can only install SVN
[root@test2 etc]# yum install httpd httpd-devel subversion mod_dav_svn mod_auth_mysql
Confirm that the svn module is installed
[root@test2 etc]# cd /etc/httpd/modules
[root @ test2 etc] # ls | grep svn
mod_authz_svn.so
mod_dav_svn.so
Verify installation:
[root@test2 conf]# svnserve --version
Create a codebase
[root@test2 etc]# mkdir -p /opt/svn/repositories
[root@test2 etc]# svnadmin create /opt/svn/repositories
After executing the above command, the repositories library will be created automatically. Check the /opt/svn/repositories folder and find that it contains conf, db, format, hooks, locks, README.txt and other files, indicating that an SVN library has been established. User configuration
[root@test2 conf]# cd /opt/svn/repositories/conf
[root@test2 conf]#vi passwd
[users]
# harry = harryssecret
# sally = sallyssecret
test=123456
[root @ test2 conf] #vi authz
[/]
test=rw
[root@test2 conf]#vi svnserve.conf
[general]
#Anonymous access permissions, can be read, write, none, the default is read
anon-access=none
#Make authorized users have write permissions
auth-access=write
#path to password database
password-db=passwd
#Access control file
authz-db=authz
#Authentication namespace, which subversion will display in the authentication prompt and used as the key to the credential cache
realm=/opt/svn/repositories
Start SVN
#Start SVN
[root@test2 conf]#svnserve -d -r /opt/svn/repositories
#View SVN process
[root @ test2 conf] # ps -ef | grep svn | grep -v grep
root 2301 1 0 18:58 ? 00:00:00 svnserve -d -r /opt/svn/repositories
[root@test2 conf]#
#Detect SVN port
[root@test2 conf]# netstat -ln |grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
[root@test2 conf]#
[root@test2 conf]# killall svnserve //stop
[root@test2 conf]# svnserve -d -r /opt/svn/repositories // start
[root@test2 conf]#