SVN service construction

install svn
yum install -y subversion
 
Create a directory
mkdir -p /data/svn/myproject
Parameter introduction: p Create if it does not exist in the upper directory
m set permissions
 
Create a project repository
svnadmin create /data/svn/myproject
 
Introduction to configuration files
The configuration directory conf in the repository has three files:
  • authz is the permission control file
  • passwd is the account password file
  • svnserve.conf is a comprehensive configuration file for SVN services
 
 
Modify authz configuration
[groups]
#user group
admin = admin,root,test
#Users corresponding to the user group
[/]
#Library directory permissions
@admin = rw
#User group permissions
*=r
#Non-user group permissions
 
Modify passwd configuration
[users]
# harry = harryssecret
# sally = sallyssecret
admin = 123456
root = 123456
test = 123456
 
 
subversion.conf configuration
[general]
# force-username-case = none
# 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
#Authentication namespace, SVN will be displayed in the authentication prompt and used as the keyword of the credential cache
realm = /data/svn/myproject
 
[sasl]
 
 
start svn service
svnserve -d -r /data/svn
 
 
Implementation process:
 
mkdir -p /data/workspace/myproject
svn co svn://127.0.0.1/myproject /data/workspace/myproject --username root --password 123456 --force --no-auth-cache
 
#experiment process
 
cd /data/workspace/myproject
echo test >> test.txt
svn add test.txt
svn commit test.txt -m 'test'
 
cd /data/workspace/myproject
rm -rf test.txt
 
cd /data/workspace/myproject
svn update
 
common problem:
 
The port used by svn is: 3690
Port conflict caused
 
 
Storage format:
 

 

Guess you like

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