How to build and use SVN server under Linux
- |
- Browse:12117
- |
- Updated: 2013-09-18 14:28
- |
- Tags:linux
How does the SVN server build and use under Linux? When it comes to SVN servers, everyone knows how to build an SVN server under Linux. So today, let's share the idea of building SVN server under Linux!
1, first install the Linux system, then Yum installs:
#yum-y Install Svnversion
2, after the security is complete, we will configure:
To create a repository directory:
#mkdir-P/banbenku/svn/
3, then enable:
#svnserve-D-R/BANBENKU/SVN
Then check to see if it's started!
Ps-ef|grep svn;
[Email protected] conf]# lsof-i:3690
COMMAND PID USER FD TYPE DEVICE size/off NODE NAME
Svnserve 8454 root 3u IPv4 1346200 0t0 TCP *:svn (LISTEN)
4, then we will create a new version:
Mkdir-p/banbenku/svn/zhoujie/
Cd/banbenku/svn/zhoujie/conf
There are three files: Authz passwd svnserve.conf
Svnserve.conf is the main configuration file;
VI svnserve.conf
Modify the following:
Anon-access = Read
auth-access = Write
Password-db =/banbenku/svn/zhoujie/conf/passwd
Authz-db =/banbenku/svn/zhoujie/conf/authz
wq!
Save exit:
Then modify the passwd:
Create the user name and password content as follows:
Zhoujie = 123456
Wq
Pao exit:
Then modify: Authz:
The contents are as follows:
[Groups]
admin = Zhoujie
[zhoujie:/]
@admin =RW
Wq
Save Exit!
So we've configured it, and to restart SVN with the start in effect:
Ps-ef|grep SVN
Kill-9 PID
Svnserve-d-R/BANBENKU/SVN
Then check again:
[Email protected] conf]# lsof-i:3690
COMMAND PID USER FD TYPE DEVICE size/off NODE NAME
Svnserve 8454 root 3u IPv4 1346200 0t0 TCP *:svn (LISTEN)
If as shown above, then there is no problem;
Install SVN under Linux