Linux Coldfusion 8:Firefox 无法与 127.0.0.1:8500 的服务器建立连接
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3677262/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Coldfusion 8: Firefox can't establish a connection to the server at 127.0.0.1:8500
提问by Fransis
I installed Coldfusion 8 trial version on my system (XP Professional sp3). I created an Folder in the “C:/Coldfusion8/wwwroot” called “buildProject” containing an Index.cfm and some other .cfm files.
我在我的系统上安装了 Coldfusion 8 试用版(XP Professional sp3)。我在“C:/Coldfusion8/wwwroot”中创建了一个名为“buildProject”的文件夹,其中包含一个 Index.cfm 和其他一些 .cfm 文件。
But I am unable to access the Neither my project files or CFIDE/Administrator
但我无法访问我的项目文件或 CFIDE/管理员
I tried the following URLS
我尝试了以下网址
http://localhost:8500/wwwroot/buildProject/
http://localhost:8500/CFIDE/administrator/index.cfm
http:// 127.0.0.1:8500/wwwroot/buildProject/
http:// 127.0.0.1:8500/CFIDE/administrator/index.cfm
http://localhost /wwwroot/buildProject/index.cfm
http://localhost /CFIDE/administrator/index.cfm
http://localhost /wwwroot/buildProject/
http://localhost /CFIDE/administrator/index.cfm
Firefox can't establish a connection to the server at 127.0.0.1:8500.
Firefox 无法与 127.0.0.1:8500 的服务器建立连接。
* The site could be temporarily unavailable or too busy. Try again in a few
moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
? I cleared the browsing “History” from both IE and FF. ? I have restarted the CF server in the Control Panel >Administrative Tools > Services ? Even restarted the IIS
? 我从 IE 和 FF 中清除了浏览“历史记录”。? 我已经在控制面板 > 管理工具 > 服务中重新启动了 CF 服务器?甚至重新启动了 IIS
Getting the same error.
得到同样的错误。
Further I was trying to access IE/FF via CFbuilder But still I am getting the error “The connection was refused when attempting to contact [URL].”
此外,我试图通过 CFbuilder 访问 IE/FF 但我仍然收到错误“尝试联系 [URL] 时连接被拒绝。”
采纳答案by Edward M Smith
If you connected Coldfusion to IIS, then you probably need to connect on port 80. Which you did try, but if you connected Coldfusion to IIS, then the document root is IIS's document root, not the document root you created your new directory in.
如果您将 Coldfusion 连接到 IIS,那么您可能需要在端口 80 上进行连接。您确实尝试过,但是如果您将 Coldfusion 连接到 IIS,则文档根目录是 IIS 的文档根目录,而不是您在其中创建新目录的文档根目录。
I believe the document root for IIS on XP is c:\inetpub\wwwroot.
我相信 XP 上 IIS 的文档根目录是 c:\inetpub\wwwroot。
So, try putting a test.cfm file in there that just contains "hello world" or something, and see if you can request it from there.
因此,尝试在其中放置一个仅包含“hello world”或其他内容的 test.cfm 文件,看看您是否可以从那里请求它。
回答by Saul
Hopefully you installed IIS first and were happy it was working before installing CF.
希望您首先安装了 IIS 并且很高兴在安装 CF 之前它可以正常工作。
Try connecting to your IIS on http://localhost
尝试在http://localhost上连接到您的 IIS
You should get the default IIS .htm landing page , probably index.html or something, so at least you know IIS is working fine.
您应该获得默认的 IIS .htm 登录页面,可能是 index.html 或其他内容,因此至少您知道 IIS 工作正常。
If you then try http://localhost/nosuchpage.htmyou will see a 403 error (as long as you didnt specify to allow directory browsing). In the standard IIS error page you should be able to see
如果您然后尝试http://localhost/nosuchpage.htm,您将看到 403 错误(只要您没有指定允许目录浏览)。在标准的 IIS 错误页面中,您应该能够看到
Physical Path D:\inetpub\wwwroot
物理路径 D:\inetpub\wwwroot
or wherever IIS thinks your web root is. When you then install CF to use IIS (rather than standalone) it will use this path as your web root.
或者 IIS 认为您的 Web 根目录在哪里。当您随后安装 CF 以使用 IIS(而不是独立的)时,它将使用此路径作为您的 Web 根目录。
Rename your index.html file as index.cfm and connect to it on
将您的 index.html 文件重命名为 index.cfm 并连接到它
http://localhost:8500/index.cfm
http://localhost:8500/index.cfm
If vanilla html pages are working from the directory but .cfm pages are not then you probably need an CFIDE mapping (I think one quick workaround is simply to copy your CFIDE folder and drop it into web root).
如果 vanilla html 页面在目录中工作,但 .cfm 页面不在,那么您可能需要一个 CFIDE 映射(我认为一种快速解决方法是复制您的 CFIDE 文件夹并将其放入 Web 根目录)。
回答by Michael BW
What happens if you try typing this in as a url: http://{your i.p. address}:8500/CFIDE/administrator/index.cfm
如果您尝试将其作为 url 输入会发生什么:http://{your ip address}:8500/CFIDE/administrator/index.cfm
I bet it works
我打赌它有效