WAMP:无法连接到localhost [英] WAMP: Cannot Connect To Localhost

查看:448
本文介绍了WAMP:无法连接到localhost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是停留在这里,但这里一个小东西是我迄今所做利用网站和视频教程(注:我是运行在Windows 10和使用Microsoft边缘作为一个WAMP浏览器)。

I'm just stuck on one little thing here but here is what I've done so far using websites and video tutorials (Note: I'm Running on Windows 10 and using Microsoft Edge as a browser for WAMP).


  • 禁用的Skype

  • Disabled Skype

我走进小WAMP菜单/阿帕奇/ httpd.conf中,改变了LISTEN
到端口81。

I went into the little WAMP menu/apache/httpd.conf and changed LISTEN to port 81.

它仍然表示,80端口是被Windows使用IIS 10.0于是我走进了命令提示符进行管理和使用IISRESET /停止。现在WAMP是绿色和网上,耶。

It still said port 80 was being used by Windows IIS 10.0 so I went into the Command Prompt as admin and used "iisreset /stop". Now WAMP is green and online, yay.

我在WAMP菜单顶部输入localhost和它带给我的网页说:请确保您有正确的网址: HTTP://本地主机

I enter localhost at the top of the WAMP menu and it brings me to a webpage saying "Make sure you’ve got the right URL: http://localhost".

我已经进入(C:)/ WAMP / www和变线code在指数$燮press_localhost = FALSE ;.什么都没有改变。

I have gone into (C:)/Wamp/www and changed a line of code in "index" to $suppress_localhost = false;. Nothing changed.

现在我在(C:本)/ Windows / System32下/驱动器/等,并编辑hosts文件。编辑简直是在取消我的IP地址,这将揭示所谓WAMP的地方应该去。它不会让我保存它,除非我给自己完全控制这是通过右键单击文件并选择属性来完成。然而,当我试图挽救失败,并表示该文件请检查该文件是在另一个程序中打开。这就是我被困在。

Now I'm in (C:)/Windows/System32/drivers/etc and editing the "hosts" file. The edit is simply uncommenting my ip address which will supposedly reveal where WAMP should be going. It will not allow me to save it unless I give myself full control which is done by right clicking the file and selecting properties. However, when I try to save the file it fails and says "Please check if this file is open in another program". This is what I am stuck on.

有谁知道如何检查什么其他程序正在使用此文件或者是有连接到本地主机到WAMP的另一种方法?

Does anyone know how to check what other programs are using this file or is there another method of connecting to localhost to WAMP?

在此先感谢!

推荐答案

首先返回Apache的侦听端口80。

First return Apache's listening port to 80.

这样做的IISRESET / STOP的只会停止IIS直到下一次重新启动。因此,最好是完全卸载IIS,如果你不使用它。

Doing this "iisreset /stop" will only stop IIS until the next reboot. So it is better to uninstall IIS completely if you are not using it.

此的我在WAMP菜单顶部输入localhost和它带给我的网页说:请确保您有正确的网址的可能是由于这一事实,有超过一旦地方,你需要更改apache的侦听端口,所以当你把它回

This I enter localhost at the top of the WAMP menu and it brings me to a webpage saying "Make sure you’ve got the right URL is probably due to the fact that there is more than once place where you need to change the listening port in apache, so when you put it back to

Listen 0.0.0.0:80
Listen [::0]:80

这可能会消失。

SKYPE:您可以配置SKYPE为不使用端口80或443,但据我所知,你不能这样对瓷砖SKYPE,使卸载,然后安装SKYPE应用程序(从Skype网站)。这可以被重新配置是这样的: -

SKYPE: You can configure SKYPE to not use port 80 or 443, but as far as I know you cannot do this to the tiles SKYPE, so uninstall that and then install the SKYPE App (from the SKYPE website). This can be reconfigured like this :-

启动Skype,
菜单工具 - >选项 - >高级 - >连接
在该对话框中,取消选中该复选框

Start SKYPE, Menu Tools -> Options -> Advanced -> Connection On this dialog, Uncheck the checkbox labeled

Use port 80 and 443 for additional incoming connections
and add a number to the `use port` field, something like `33333`

SKYPE不应该再尝试使用端口80。

SKYPE should no longer attempt to use port 80.

的HOSTS文件被Windows保护,并有可能您的防病毒还试图保护它。修改hosts文件,你必须elavate您的privilages到管理员,你说以前你是,你是不是。使用以管理员身份运行选项打开一个命令窗口。

The HOSTS file is protected by Windows, and possibly your Anti Virus also tried to protect it. To amend the HOSTS file you have to elavate your privilages to Administrator, and before you say you are, you are not. Start a command windows using the "Run as Administrator" option.

光盘插入 C:\\ WINDOWS \\ SYSTEM32 \\ drivers \\ etc下

运行记事本主机

进行更改,然后将其保存

Make your changes and save them

主机文件应该至少包含

127.0.0.1  localhost
::1  localhost

这篇关于WAMP:无法连接到localhost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆