[英]Cannot connect to local svn server
我正在使用VisualSVN Server 3.0.1和TortoiseSVN 1.8。 使用VisualSVN服務器管理器,我在C:\\驅動器中創建了一個名為“彩票”的存儲庫。 我在計算機上啟動了所有VisualSVN Server的服務。 我檢查了VisualSVN Server的HTTP服務是否正在運行,以及VDFS服務是否正在運行。 我還使用VisualSVN服務器管理器使兩個用戶分別使用密碼1234和harry和sally。 我創建了一個目錄C:\\ workdirs。 在那兒,有兩個文件夾供我的用戶使用。 當我導航到harry的文件夾並運行svn命令時,出現錯誤。 請幫我解決。
C:\workdirs\harry>svn co --username harry --password 1234 https://james/svn/lottery/
該URL是完全從VisualSVN Server Manager復制粘貼的。 我得到了錯誤-
C:\workdirs\harry>svn co --username harry --password 1234 https://james/svn/lottery/
svn: E731001: Unable to connect to a repository at URL 'https://james/svn/lottery'
svn: E731001: No such host is known.
我嘗試的解決方案-
顯然,您無法直接進入需要在路徑中包含存儲庫文件名的SVN文件夾。
因此,我嘗試使用帶有端口的URL和repo文件夾名稱來查看它是否有助於svn co --username harry --password 1234 https://james:443/svn/lottery/
Btw,james是我在視覺svn服務器屬性中看到了svn服務器。
產生的錯誤是-
svn: E731004: Unable to connect to a repository at URL
'https://james/svn/lottery'
svn: E731004: The requested name is valid, but no data
of the requested type was found.
接下來 ,我嘗試使用http而不是https並得到相同的錯誤。
接下來 ,我嘗試使用這樣的網址https://localhost/james:443/svn/lottery/
我得到了錯誤-
Error validating server certificate for 'https://localhost:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
- The certificate hostname does not match.
Certificate information:
- Hostname: steam
- Valid: from sometime in 2014 GMT until sometime in 2020 GMT
- Issuer:
- Fingerprint: 6a:7b:8c:....
(R)eject, accept (t)emporarily or accept (p)ermanently? p
svn: E175013: Unable to connect to a repository at URL
'https://localhost/james:443/svn/lottery'
svn: E175013: Access to '/james:443/svn/lottery' forbidden
最后,我想到了使用我提供的鏈接中提到的計算機IP地址。 我不知道IP是什么,但是我嘗試使用localhost
來代替它,它能正常工作!
C:\workdirs\harry>svn co --username
harry --password 1234 https://localhost/svn/lottery/
Checked out revision 0.
這對我有用-
svn co --username harry --password 1234 https://localhost/svn/lottery/
我不必在localhost之后添加端口號。 它有效,但是我不知道發生了什么。 順便說一句,在運行此命令之前,請確保您的Visual SVN Windows服務正在運行。
您的本地DNS不知道“ james”主機名代表您的計算機,因此您得到“ No such host is known
錯誤。 如果單獨使用VisualSVN Server,則可以在hosts
文件中添加一個引用,即“ james”是計算機的名稱。
否則,請與您的網絡管理員聯系,並詢問您局域網上計算機的主機名是什么。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.