如何设置哪个将使用本地主机端口 [英] How to set that which one will use localhost port

查看:177
本文介绍了如何设置哪个将使用本地主机端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装WAMP,APPServ 但是当我转到 http://localhost 时,它会进入XAMPP,该XAMPP先前已安装在计算机上. 如何选择要在本地主机上使用的主机.

I have tried to install WAMP, APPServ but when i go to http://localhost it go into XAMPP which is previously install on the computer. how to select that which one i am going to use on localhost.

推荐答案

在通常位于C:\ wamp \ Apache2 \ conf的记事本中编辑http.conf文件.

Edit http.conf file in notepad usually located in C:\wamp\Apache2\conf .

然后执行CTL + F或从记事本菜单栏转到EDIT/FIND.这将打开查找"窗口.

then do either CTL+F or go to EDIT/FIND from the notepad menubar. this will open FIND window.

在查找内容"框中键入80,然后单击查找下一个".将80替换为要Apache听的端口. 您可能必须更改为两个或更多位置,具体取决于您的配置.然后重新启动您的apache服务器. Apache应该侦听您在http.conf文件中设置的端口.希望这会有所帮助

type 80 in the 'Find What' box and click find next. replace 80 to whichever port to want apache to listen to. you may have to change to two or more places depending on your configuration. and then restart your apache server. Apache should listen to the port you set in the http.conf file. Hope this helps

这篇关于如何设置哪个将使用本地主机端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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