linux install svn

1. Find the software installed by svn

 

yum list | grep subversion

 The one that installs the red area can be

 installed with the following command:

 

 

yum install -y subversion

 2. Find the version number

svnserve --version

 3. Create a warehouse directory that can be customized

mkdir -p /home/svn/svnfile

 4. Initialize the warehouse

svnadmin create /home/svn/svnfile

 5. Enter the conf directory under the warehouse directory

cd /home/svn/svnfile/conf

 6. Modify the password file

vi + passwd

 

7. Configure permissions file

vi + authz

 

 8. Modify svnserve.conf

vi  svnserve.conf

 The content is as follows:

[general]
#Anonymous access permissions, can be read, write, none, the default is read
anon-access=none
#Make authorized users have write permissions
auth-access=write
#path to password database
password-db=passwd
#Access control file
authz-db=authz
#svn repository directory
realm=/home/svn/svnfile

 9. Start svn

svnserve -d -r /home/svn/svnfile

 

 10. Connection

 Clients can link using svn://ip/

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326355378&siteId=291194637