2023-05-12 开启多语言插件支持……

centos5.4下yum安装svn与自动启动

Linux 苏 demo 2603℃ 0评论

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最后一行

PS:楼主整理博客不容易,请帮忙点点文章右侧的广告位,支持下楼主,谢谢。

打赏

转载请注明:苏demo的别样人生 » centos5.4下yum安装svn与自动启动

   如果本篇文章对您有帮助,欢迎向博主进行赞助,赞助时请写上您的用户名。
支付宝直接捐助帐号oracle_lee@qq.com 感谢支持!
喜欢 (0)or分享 (0)