解决SVN 无法连接到服务器问题

解决SVN 无法连接到服务器问题

问题描述:
1、由于目标计算机积极拒绝,无法连接
2、由于连接方在一段时间后没有正确答复或连接
解决方法
1、svn 未启动,启动svn: svnserve -d -r ‘svn的仓库路径’
2、防火墙原因,开放svn端口: 添加3690端口

问题描述
报No repository found in … …错误
解决方法
1、原因是svn指定运行仓库路径错误
2、查看svn进程:ps -aux|grep svn

root     28813  0.0  0.0 166804   936 ?        Ss   11:50   0:00 svnserve -d -r /mnt/svn
root     29456  0.0  0.0 112640   960 pts/0    S+   13:14   0:00 grep --color=auto svn

如果 svnserve -d -r /mnt/svn 指定的仓库路径与实际仓库路径不匹配,杀掉该进程后重新指定正确的仓库路径
3、本人服务器实际仓库路径是 /mnt/svn/repos,杀死进程:kill -9 28813
4、重新启动SVN,指定正确SVN仓库路径:svnserve -d -r /mnt/svn/repos
5、查看svn进程:ps -aux|grep svn

root     28813  0.0  0.0 166804   936 ?        Ss   11:50   0:00 svnserve -d -r /mnt/svn/repos
root     29456  0.0  0.0 112640   960 pts/0    S+   13:14   0:00 grep --color=auto svn

访问SVN成功!

你可能感兴趣的:(SVN)