JavaChristmas 发表于 2013-2-4 13:01:40

Centos svn服务器搭建

第一步:安装
 
yum install subversion
 
#安装svn服务
 
svnserve --version
 
#判断是否安装成功
 
 
第二步:配置
 
mkdir /opt/svn/repos
 
#新建版本库目录
 
svnadmin create /opt/svn/repos
 
#新建svn版本库
 
vim /opt/svn/repos/conf/svnserve.conf
 
#内容修改如下:
 

anon-access = none
auth-access = write
password-db =passwd
authz-db = authz
realm = repos
 
vim /opt/svn/repos/conf/passwd
 
#配置用户名和密码,格式如下:
 

username = password
 
vim /opt/svn/repos/conf/authz
 
#配置svn用户访问权限
 
[/]
 
username = wr#w代表写,r代表读,空为无权限
 
svnserve -d -r /opt/svn
 
#启动svn服务
 
第三步:连接
 
通过  svn://ip地址/repos   访问
 
 
 
 
设置SVN服务开机启动
 
 
vim /etc/rc.local
 
#在最后添加
 
/usr/bin/svnserve -d  -r /opt/svn
页: [1]
查看完整版本: Centos svn服务器搭建