Home >Operation and Maintenance >Linux Operation and Maintenance >Tutorial on how to build an svn server on linux

Tutorial on how to build an svn server on linux

巴扎黑
巴扎黑Original
2017-06-23 13:51:331734browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn