找了半天错误原因
authorization failed错误主要是conf/auth文件配置错误,可以参考如下配置:
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to:
### - a single user,
### - a group of users defined in a special [groups] section,
### - an alias defined in a special [aliases] section,
### - all authenticated users, using the '$authenticated' token,
### - only anonymous users, using the '$anonymous' token,
### - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').
[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
admin = u1 //多用户可以使用,隔开 例如 u1,u2,u3
user = u2 //普通用户组
# [/foo/bar]
# harry = rw
# &joe = r
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[repos:/]
@admin = rw //设置用户组权限
最后原因为启动svn错误。
注意:
例如你执行了
svnadmin create works 创建了一个works版本库,然后你运行svnserve启动服务的时候 -r参数需要制定works的上一级目录,要不然也会出现
authorization failed错误!
示例路径pwd:/alidata/svn/works
svnserve -d -r /home/svn
这样一来auth文件里的[repos:/]参数才起作用!
启动时参数错误
1,启动SVN
sudo svnserve -d -r /home/svn/
其中 -d 表示守护进程, -r 表示在后台执行
/home/svn/ 为svn的安装目录
2,关闭SVN
这里采取linux杀死进程的方式处理的
ps -ef|grep svnserve
root 4967 1 0 Aug23 ? 00:00:00 svnserve -d -r repository/
这里 kill -9 4967杀死进程, 此4967为进程号
svn服务器配置以及自动同步到web服务器:http://www.linuxdiyf.com/linux/14646.html
linux配置独立svn服务器:http://www.linuxdiyf.com/linux/14000.html
CentOS下搭建SVN服务器详述:http://www.linuxdiyf.com/linux/13061.html
CentOS中SVN服务器的配置过程:http://www.linuxdiyf.com/linux/11473.html
CentOS 6.4搭建SVN服务器:http://www.linuxdiyf.com/linux/11408.html