1. Check the current version, if not, use yum to install it
rpm -qa subversion
2.Installation
yum install subversion -y
2.Build a library
mkdir -p /home/svn/project
svnadmin create /home/svn/project
3 cd /home/svn/project/conf to configure
3.1 Set passwd file configuration Users and passwords
[users]
username = password
3.2 Set the permissions authz file, here set to the read and write permissions of the root directory
[/]
username = rw
3.3 Configure snvserv.conf
anon-access = none # Make unauthorized users unable to access
auth-access = write # Make authorized users have write permission
password-db = passwd #Password file Address
authz-db = authz # Access control file
realm = /home/svn/qls # Authentication namespace, subversion will be displayed in the authentication prompt and used as a keyword for credential cache.
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = /home/svn/qls
4. Start SVN
svnserve -d -r /home/svn/qls
5. View the SVN process
ps -ef|grep svn|grep -v grep
Detect SVN port
netstat -ln |grep 3690
Stop and restart SVN
//Stop
killall svnserve
Restart SVN
svnserve -d -r / home/svn/qls
The above is the detailed content of Tutorial on how to build an svn server on linux. For more information, please follow other related articles on the PHP Chinese website!