如何更改端口号在Apache的WAMP [英] How to change port number for apache in WAMP

查看:249
本文介绍了如何更改端口号在Apache的WAMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的WAMP的服务器,并安装它在我的系统上,但在安装后,当我转到本地主机URL这样检查的http://本地主机/ 中浏览器就无法工作。我得到一个 404错误和空白页即可。

I am new to WAMP server and installed it on my system but after installing it when I check it by going to localhost url like this http://localhost/ in the browser it is not working. I am getting a 404 error and blank page.

这是因为我的80端口默认情况下它在 WAMP服务器正在使用的IIS服务器。所以,请让我知道如何更改WAMP服务器端口号,并解决了这个问题。

This is because my 80 port which default in Wamp server is being used by IIS server. So please let me know how to change port number in Wamp server and solved this problem.

推荐答案

点击WAMP的服务器图标,然后从菜单下的配置文件的选择
的httpd.conf 。长文本文件将在记事本中打开。在这个文件中滚动
下降到读取的行 80端口并更改该读端口8080
保存文件并关闭记事本。一旦在WAMP的服务器图标,再次单击和
 选择重新启动所有服务。还有一个需要改变我们之前做
完成。在Windows资源管理器找到在哪里安装WAMP的服务器位置
这是由默认 C:\\ WAMP

Click on the WAMP server icon and from the menu under Config Files select httpd.conf. A long text file will open up in notepad. In this file scroll down to the line that reads Port 80 and change this to read Port 8080, Save the file and close notepad. Once again click on the wamp server icon and select restart all services. One more change needs to be made before we are done. In Windows Explorer find the location where WAMP server was installed which is by Default C:\Wamp.

更新:在WAMP的新版本,点击的 WAMP的服务器图标> 的Apache > 的httpd.conf ,然后换行 80收听收听8080 或你想要的任何端口。

Update : On a newer version of WAMP, click the WAMP server icon > Apache > httpd.conf, then change the line Listen 80 to Listen 8080 or any port you want.

这篇关于如何更改端口号在Apache的WAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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