标签:yum安装svn
CentOS6.5安装配置SVN
安装SVN软件包
[root@localhost ~]# yum install subversion
#确认是否已安装svn模块
[root@localhost ~]# cd /etc/httpd/modules;ls|grep svn
mod_authz_svn.so
mod_dav_svn.so
如果没有需要安装mod_dav_svn
#yum -y install mod_dav_svn
#创建版本库
[root@localhost ~]#mkdir -p /opt/svn/repos
[root@localhost ~]# svnadmin create /opt/svn/repos
#配置Subversion
#设置用户名与密码zhangsan,123456
[root@localhost ~]# vim /opt/svn/repos/conf/passwd
[users]
zhangsan = 123456
#配置权限控制
root@localhost ~]# vim /opt/svn/repos/conf/authz
[groups]
[/]
zhangsan=rw
#服务配置
[root@localhost ~]# vim /opt/svn/repos/conf/svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
### The password-db option controls the location of the password
#启动SVN
[root@localhost ~]# svnserve -d -r /opt/svn/repos
#检测3690端口是否被占用
[root@localhost ~]# netstat -ln |grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
#查看SVN进程
[root@localhost ~]# ps -ef|grep svn|grep -v grep
#关闭SVN进程
[root@localhost ~]# killall svnserve
3609端口加入防火墙,允许3690端口访问
vi /etc/sysconfig/iptables #编辑
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3690-j ACCEPT #允许3690端口
本文出自 “ghost” 博客,请务必保留此出处http://fangwei009.blog.51cto.com/5234706/1622491
标签:yum安装svn
原文地址:http://fangwei009.blog.51cto.com/5234706/1622491