SVN Note in Linux ubuntu16.04

sudo apt-get update
sudo apt-get install subversion
sudo mkdir /home/svn
sudo mkdir /home/svn/repository
sudo chmod -R 777 /home/svn/repository
sudo chmod -R 777 db
sudo vi /home/svn/repository/conf/svnserve.conf

/*Modify mark # front code*/ 
/*Example: #anon-access = read  >>  anon-access = read */ 
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz

sudo vi /home/svn/repository/conf/passwd

/*user = password */
[users]
Harry = 12345
Potter = 23456

sudo vi /home/svn/repository/conf/authz

[groups]
admin = Harry
RD = Potter
[/]
@admin = rw
@RD = rw
* =
/*others can't rw */

Start svn command: svnserve -d -r /home/svn
Close svn command: killall svnserve

你可能感兴趣的:(SVN,SVN,LINUX,Ubuntu,authz)