

@toc
yum install -y subversionsvn --version mkdir -p /var/svn/repository mkdir pro_oa svnadmin create /var/svn/repository/pro_oa

[root@rich repository]# chkconfig|grep svn
svnserve 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
[root@rich repository]# chkconfig svnserve on
[root@rich repository]# chkconfig|grep svnsvn
serve 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭 /etc/rc.d/init.d/svnserve原版
args="--daemon --pid-file=${pidfile} $OPTIONS"
修改版
args="--daemon `--root 版本库根目录 --listen-port 指定端口号` --pid-file=${pidfile} $OPTIONS"
args="--daemon `--root /var/svn/repository --listen-port 2255` --pid-file=${pidfile} $OPTIONS"
使用默认端口号的配置方式
args="--daemon `--root /var/svn/repository` --pid-file=${pidfile} $OPTIONS"
[root@rich init.d]# service svnserve start
正在启动 svnserve:[确定]
[root@rich init.d]# service svnserve status
svnserve (pid 3443)正在运行...
[root@rich init.d]# netstat -anp|grep :2255
tcp 0 0 0.0.0.0:2255 0.0.0.0:* LISTEN3443/svnserve
[root@rich init.d]# ps -ef|grep svnserve|grep -v grep
root 3443 1 0 11:41 ? 00:00:00 /usr/bin/svnserve --daemon --root/var/svn/repository --listen-port 2255 --pid-file=/var/run/svnserve.pid
[root@rich init.d]# cat /var/run/svnserve.pid
3443
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。