這兩天在倒騰Linux svn服務的時候遇到了一些問題, 現在已經解決,現在爲大家分享一下;
問題:
之前用的好好的svn服務突然報錯, "no repository found in svn" 或者 "Unable to connect to a repository"
解決過程
1.首先登錄到服務器上使用一下命令:
ps -ef|grep svn //查看svn服務是否在跑, 結果發現真他孃的沒有了
2.嘗試重啓svnserve, 我*, 我居然忘記了安裝路徑,使用如下命令:
whereis svn // 查看含有svn的文件
使用svnserve -d -r/usr/bin/svn 和 svnserve -d -r/usr/bin/svn 都不行, 鬱悶了好久........
3.突然想起來應該找基本庫的位置, 幸虧我還記得基本庫的名字:
使用svnserve -d -r/var/svn/ //這裏不寫基本庫的庫名, 寫到上級目錄即可;
成功........