当修改配置文件或者遇见svn服务器无法启动或是服务器重启时,可以使用如下操作,对svn服务器进行重新配置。
1.查看svnserver 状态和pid
ps -aux | grep svn
root 12509 0.0 0.0 180732 1080 ? Ss Sep08 0:00 svnserve -d -r /mnt/svnrepository
root 27111 0.0 0.0 112708 980 pts/0 S+ 10:50 0:00 grep --color=auto svn
2.杀死进程
kill -9 12509
3.重新启动,并制定资源所在目录
svnserve -d -r /mnt/svnrepository
说明:资源库在“/mnt/svnrepository/”下
或者:
#使用9999端口启动svn服务
svnserve --listen-port 9999 -d -r /mnt/svnrepository
#-d 表示后台运行
#-r 表示数据仓库目录
三步,即可重新启动svnserver。