如何打开80端口的Apache,previously由Visual Studio的服务器占用? [英] How to open port 80 for Apache, previously occupied by Visual Studio's servers?
问题描述
我安装了Visual Studio 2010年后 WAMP ,不得不打开的 IIS 。现在,我想用我的WAMP,但我的Apache还没有启动即使我已经禁用IIS甚至卸载我的Visual Studio 2010。
I installed Visual Studio 2010 after WAMP and had to turn on IIS. Now I want to use my WAMP but my Apache is not turning on even after I have disabled IIS and even uninstalled my Visual Studio 2010.
推荐答案
您可以设置Apache服务器的的httpd.conf
配置文件的端口号。
You can set the port number in httpd.conf
configuration file of Apache server.
通常Apache的安装文件夹的CONF文件夹内。 (喂, C:\\ WAMP \\ Apache2的\\的conf \\ httpd.conf文件
)
Usually inside the "conf" folder of Apache installation folder. (Say, c:\wamp\Apache2\conf\httpd.conf
)
然后换行 80收听
到收听8081
。重新启动Apache服务器。
Then change the line Listen 80
to Listen 8081
. Restart your Apache server.
的提示:您可以安装IIS和Apache在一起,你可以在同一时间在两个工作。所有你需要的是什么,Apache和IIS设置不同的端口号。的
在默认情况下,他们都使用端口80,但正如上文所说,你可以改变它。
By default, both of them use Port 80, but you can change it as said above.
的我忘了提,当你使用的端口号以外的其他80,您必须更改浏览器的地址栏为的http://本地主机:8081 /
或 http://127.0.0.1:8081/
的
I forgot to mention, when you're using a port number other than 80, you MUST change the browser addressbar as http://localhost:8081/
or http://127.0.0.1:8081/
这篇关于如何打开80端口的Apache,previously由Visual Studio的服务器占用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!