php如何设置访问端口

php如何设置访问端口,第1张

php如何设置访问端口

php设置访问端口的方法:1、找到并打开httpd.conf配置文件;2、在配置文件中找到Listen 80配置;3、根据需要修改端口号即可,如Listen 8080。

本文 *** 作环境:windows10系统、php 7、thinkpad t480电脑。

设置访问端口的具体步骤如下所示:

首先使用编辑工具打开 \apache\conf\httpd.conf 文件;

然后在文件中找到如下配置:

# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80 #修改这里

最后根据需要修改端口号即可,如8080。

访问的时候在浏览器中输入 ”http:/localhost:修改后的端口号” 即可。

推荐学习:php培训

以上就是php如何设置访问端口的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/680690.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-20
下一篇 2022-04-20

发表评论

登录后才能评论

评论列表(0条)

保存