我从我的供应商那里安装了全新的 VPS(Windows 2008 R2、IIS 7.5)。
默认网站工作正常:http://5.9.251.167/
我创建了一个新网站,并绑定到http://new.ianquigley.com
在该服务器上以及域映射到 IP 地址的其他任何地方。(例如 ping new.ianquigley.com)。
我创建了子文件夹c:\inetpub\wwwroot\com.ianquigley
并创建了一个index.html
内容为“ <html>cake</html>
”的 HTML 文件
该网站的默认文档是 index.html
在服务器上,在 Chrome 中,我浏览到http://new.ianquigley.com/index.html并收到 404 错误。
该页面说;
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had it's name changed,
or is temporarily unavailable.
Detail:
Module: IIS Web Core
Notification: HttpRequestHandler
Handler: StaticFile
Error Code: 0x80007002
Request URL: http://new.ianquigley.com/index.html
Physical path: c:\inetpub\wwwroot\com.ianquigley\index.html
Logon Method: Anonymous
Logon User: Anonymous …
Run Code Online (Sandbox Code Playgroud) 我试图在 Windows 2003 的 VPS 上设置 SVN。
当我在服务器上运行以下命令时一切正常
svnserve --daemon -r c:\current\svn\twipler
Run Code Online (Sandbox Code Playgroud)
并从 Windows 客户端(带 Tourtoise) svn://twipler.com 工作正常。
但是,如果我从远程桌面关闭命令行/注销,则服务会停止并且客户端会停止工作。
所以我尝试使用以下命令将其设置为服务;
C:\Program Files (x86)\Subversion\bin>sc create SVN binpath="\"c:\Program Files
(x86)\Subversion\bin\svnserve.exe\" --service -r c:\current\svn\twipler" display
name="SVN Service" depends=tcpip
Run Code Online (Sandbox Code Playgroud)
返回 SC 帮助文本;
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc <server> create [service name] [binPath= ] <option1> <option2>...
OPTIONS:
....
Run Code Online (Sandbox Code Playgroud)
但它没有设置服务!我尝试了一些组合等,但没有任何乐趣!
更新
我也在做
svnservice -install --daemon --root c:\current\svn\twipler
Run Code Online (Sandbox Code Playgroud)
大约 10 秒后,弹出一个警告说
无法从命令行或调试器启动服务。必须首先安装 Windows 服务(使用 installutil.exe)并使用 ServerExplorer、Windows 服务管理工具或 NET START …