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