Steps to set up SVN server under CentOS
- 2020-05-24 06:27:36
- OfStack
This article illustrates the steps to set up an SVN server under CentOS. I will share it with you for your reference as follows:
1. Install svn
yum install -y subversion
2. Verify the installation was successful
svnserve --version
3. Create the svn version library
mkdir svn
svnadmin create svn/repo
Note: repo here is the version library name
4. Configuration svn
After creating the version library, three configuration files will be generated in the conf directory of this version library:
[root@singledb conf]# pwd
/root/svn/repo/conf
[root@singledb conf]# ls
authz passwd svnserve.conf
Description:
(1) svnserve.conf: svn service integrated profile.
(2) passwd: user name password file.
(3) authz: permission configuration file.
4.1 modify the passwd file
[users]
shang=123456
li=123456
Note: shang is the user name and 123456 is the password
4.2 configuration can use plaintext password
vi /$HOME/.subversion/servers
# Find the following, remove the comment and change it yes We have to do is
store-plaintext-passwords = yes
4.3 modify the authz file
[groups]
team=shang,li
[repo:/]
@team=rw
Note: repo is the name of the svn version library that was created earlier
4.4 modify svnserve conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
5. Start and stop svn
5.1 start svn
svnserve -d -r /root/svn/
5.2 close svn
ps -aux |grep svn
kill -9 process id
6. Import the project
svnserve --version
0
7. Export the project
svnserve --version
1
I hope this article has helped you with CentOS server management.