安哥网络 发表于 2014-3-18 11:55:35

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

centos5.4下yum安装svn与自动启动 -centos专区
centos5.4下yum安装svn
# yum -y install subversion --prefix=/opt/svn
cd /opt
mkdir svndata                   //创建一个SVN根目录
chmod -R 777 svndata            //给SVN根目录权限
启SVN服务,并指定SVN的根目录:
# svnserve -d -r /opt/svn/
#svnserve -d --listen-port 3690 -r /opt/svndata/
创建版本库
#mkdir -p /opt/svndata/repos1
#svnadmin create /opt/svndata/repos1
修改版本库
#vi /opt/svndata/repos1/conf/svnserve.conf
内容修改为:

anon-access = none
auth-access = write
password-db = /opt/svn/conf/pwd.conf
authz-db = /opt/svn/conf/authz.conf
realm = repos1
查看SVN运行情况
#netstat -tunlp | grep svn
tcp      0      0 0.0.0.0:3690                0.0.0.0:*                   LISTEN      8646/svnserve
查看服务的进程号:
$ 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

页: [1]
查看完整版本: centos5.4下yum安装svn与自动启动 -centos专区