# yum install subversion
# mkdir /svn
# svnadmin create /svn/project
编辑配置文件
cd /svn/project/conf
svnserve.conf只编辑,其他不要打开
- anon-access = read
- auth-access = write
- password-db = passwd
- authz-db = authz
-
-
-
- vim passwd.conf修改为:
-
- [users]
# harry = harryssecret
# sally = sallyssecret
maliang = ma
caojiang =ma
chupeng = c
shunxuanxuan = c
yuyongjun = c
chongfateng = c
编辑完毕按ESC键退出,输入:wq保存退出
-
-
authz修改为
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
workgroup = maliang,caojiang,chupeng,shunxuanxuan,yuyongjun,chongfateng
# [/foo/bar]
# harry = rw
# &joe = r
# * =
[/]
maliang = rw
*=rw
[/public/]
@workgroup = rw
*=rw
[/employees/]
maliang = rw
*=
[/employees/maliang/]
maliang = rw
*=
[/employees/caojiang/]
maliang = rw
caojiang = rw
*=
[/employees/chupeng/]
maliang = rw
chupeng = rw
*=
-
启动svn服务
svnserve -d -r /svn/project/
停止的话是# ps -ef|grep svn
# kill -9 4642 4642是线程号