Yum installs SVN under CentOS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.