Win7系统localhost打不开如何解决?

最近有Win7系统用户反映,在浏览器网址栏目中输入http://localhost想要打开本地主机,却发现localhost无法打开 。这到底是怎么回事呢?又该如何解决呢?其实,localhost打不开,大部分的原因都是因为wampserver没有在线 。下面,我们就一起来看看具体的解决办法 。

Win7系统localhost打不开如何解决?

文章插图
方法/步骤
1.地址栏输入 http://localhost,出现以下情况 。
Win7系统localhost打不开如何解决?

文章插图

Win7系统localhost打不开如何解决?

文章插图
2.这时就要去检查wampserver是否在线 。
Win7系统localhost打不开如何解决?

文章插图
3.如果没有在线,那就把它调为在线 。如果这样还是不能上线,你需要去看看服务了,通过“计算机”的“右键”,选择“管理”,打开服务 。
Win7系统localhost打不开如何解决?

文章插图
4.找这两个服务,如果有,就查看它是否已经启动,没启动就将它启动 。如果没有那就需要安装服务 。
Win7系统localhost打不开如何解决?

文章插图
5.这两个服务丢失的重新补救方法如下:左键单击任务栏的wampserver服务器图标,然后选择Apache,service--〉安装服务 。
Win7系统localhost打不开如何解决?

文章插图

Win7系统localhost打不开如何解决?

文章插图
6.使用同样的方法,安装mysql服务 。
Win7系统localhost打不开如何解决?

文章插图
7.然后重新启动所有服务 。
Win7系统localhost打不开如何解决?

文章插图
8.重新在浏览器打开http://localhost,就可以顺利打开了 。端口号这边设置的是80,朋友们要根据自己的机器服务端口而定 。
Win7系统localhost打不开如何解决?

文章插图
【Win7系统localhost打不开如何解决?】

    推荐阅读