1. Check if SVN is installed on the system
Rpm-qa Subversion
is not installed, install it using the following command
Yum-y Install Subversion
2. Configure SVN and start the SVN service
(1) Specify the data storage path for SVN
Mkdir-p/application/svndata
(2) Specify the SVN profile information path
Mkdir-p/application/svnpasswd
(3) Start SVN service
Svnserve-d-r/application/svndata/
3. Detect if SVN service is started
Way One: Ps-ef|grep svn
Way Two: Netstat-lntup | grep 3690
Way three: Lsof-i: 3690
4. Build the SVN project repository using Svnadmin
(1) View Create Project Repository command
Svnadmin--help
Svnadmin help Create
(2) Create Sadoc repository
Svnadmin Create/application/svndata/sadoc
5. Configure permissions for the Sadoc version
(1) Enter the Sadoc repository configuration directory and back up the configuration file
cd/application/svndata/sadoc/conf/
Cp-p svnserve.conf Svnserve.conf.default
(2) Detailed configuration
Vim svnserve.conf
Anon-access = none//Prohibit anonymous access
auth-access = write//Read permission after authentication
PASSWORD-DB =/application/svnpasswd/passwd//Specify Password file
AUTHZ-DB =/appplication/svnpasswd/authz//Specify Permissions Authentication file
6. Copy the passwd and Authz files to the Sadoc svnpasswd directory and modify the permissions
Cp-p/application/svndata/sadoc/conf/authz passwd/application/svnpasswd/
cd/application/svnpasswd/
ll
chmod Authz passwd
ll
7. Create a user for the SVN repository and authorize access to the specified project repository
(1) Edit passwd file Configure user and password
vi/application/svnpasswd/passwd
(2) Edit Authz file to configure Read permissions
[< Repository >:/project/catalog]
@< user Group Name > = < permissions >
< user name > = < permissions >
8. Restart the SVN service for verification
(1) Kill SVN service
Pkill Svnserve
(2) Start SVN
Svnserve-d-r/application/svndata/
Note: Modifying the passwd and Authz files does not require a restart of the SVN service and modifying the svnserve.conf requires
9. Installing the Client for Sadoc configuration is correct
SVN--username=xingmaogou Co svn://121.xxx.xxx.xx9/sadoc
Reference: http://jingyan.baidu.com/article/f0e83a259daec522e59101e0.html
Linux under Installation configuration svn