六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 516|回复: 0

centos5.4下yum安装svn与自动启动 -centos专区

[复制链接]
 楼主| 发表于 2014-3-18 11:55:35 | 显示全部楼层 |阅读模式
centos5.4下yum安装svn与自动启动 -centos专区
centos5.4下yum安装svn
[test@localhost /]# yum -y install subversion --prefix=/opt/svn
cd /opt
mkdir svndata                   //创建一个SVN根目录
chmod -R 777 svndata            //给SVN根目录权限
启SVN服务,并指定SVN的根目录:
[test@localhost /]# svnserve -d -r /opt/svn/
#svnserve -d --listen-port 3690 -r /opt/svndata/
创建版本库
[test@localhost /]#mkdir -p /opt/svndata/repos1
#svnadmin create /opt/svndata/repos1
修改版本库
[test@localhost /]#vi /opt/svndata/repos1/conf/svnserve.conf
内容修改为:
[general]
anon-access = none
auth-access = write
password-db = /opt/svn/conf/pwd.conf
authz-db = /opt/svn/conf/authz.conf
realm = repos1
查看SVN运行情况
[test@localhost /]#netstat -tunlp | grep svn
tcp        0      0 0.0.0.0:3690                0.0.0.0:*                   LISTEN      8646/svnserve
查看服务的进程号:
[test@localhost svn]$ ps -A | grep svn
4094 ?         00:00:00 svnserve
关闭进程:#kill 4094
配置自动启动:
把svnserve -d -r /opt/svn/ 放在/etc/rc.d/rc.local最后一行

centos5.4下yum安装svn与自动启动 -centos专区
摘自:http://blog.csdn.net/wangxiaofei2006/article/details/7177411

该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表