CentOS6.5 Installation Configuration svn
Installing the SVN package
[[email protected] ~]# Yum install subversion
#确认是否已安装svn模块
[Email protected] ~]# Cd/etc/httpd/modules;ls|grep SVN
Mod_authz_svn.so
Mod_dav_svn.so
If you do not need to install MOD_DAV_SVN
#yum-y Install MOD_DAV_SVN
#创建版本库
[[Email protected] ~] #mkdir-P/opt/svn/repos
[Email protected] ~]# svnadmin Create/opt/svn/repos
#配置Subversion
#设置用户名与密码zhangsan, 123456
[Email protected] ~]# VIM/OPT/SVN/REPOS/CONF/PASSWD
[Users]
Zhangsan = 123456
#配置权限控制
[Email protected] ~]# Vim/opt/svn/repos/conf/authz
[Groups]
[/]
Zhangsan=rw
#服务配置
[Email protected] ~]# 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
[Email protected] ~]# svnserve-d-r/opt/svn/repos
#检测3690端口是否被占用
[Email protected] ~]# Netstat-ln |grep 3690
TCP 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
#查看SVN进程
[Email protected] ~]# Ps-ef|grep svn|grep-v grep
#关闭SVN进程
[Email protected] ~]# Killall Svnserve
3609 Port joins firewall, allow 3690 port access
Vi/etc/sysconfig/iptables #编辑
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 3690-j ACCEPT #允许3690端口
This article is from "Ghost" blog, please make sure to keep this source http://fangwei009.blog.51cto.com/5234706/1622491
Yum installs SVN under CentOS