php如何设置访问端口
- 建站笔记
- 2022-05-16
- 610
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:修改后的端口号” 即可。
本文由白琉璃于2022-05-16发表在白琉璃源码网,如有侵权或疑问,请联系我们,谢谢。
本文链接:https://www.bailiuli.com/t/2441.html
发表评论