[ubuntu]Install and set subversion server

2016-10-8 写技术

1.Install
sudo apt-get install subversion

2.Create root fold of svn
mkdir /var/svn

3.Create project
svnadmin create /var/svn/project

4.Edit config
/var/svn/project/svnserve.conf

[general] 
anon-access = none
auth-access = write
password-db = /var/svn/conf/passwd
authz-db = /var/svn/conf/authz

5.Edit password
cp /var/svn/project/passwd /var/svn/conf
cp /var/svn/project/authz /var/svn/conf
Edit passwd
[users]  
test = 123456 
test2 = 123456
Edit authz

[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin = test,test2

[/]
@admin = rw
* = r

[project:/subdir]
@admin = rw
* = r

6.Run
svnserve -d -r /var/svn

标签: ubuntu

发表评论:

Powered by anycle 湘ICP备15001973号-1