本文操作环境:windows10系统、PHP 7、thinkpad t480电脑。设置访问端口的具体步骤如下所示:首先使用编辑工具打开 \apache\conf\Httpd.conf 文件;然后在文件中找到如下配置:# Change thi
本文操作环境: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:修改后的端口号” 即可。
--结束END--
本文标题: php如何设置访问端口
本文链接: https://www.lsjlt.com/news/362.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2023-05-25
2023-05-25
2023-05-25
2023-05-25
2023-05-25
2023-05-25
2023-05-25
2023-05-25
2023-05-25
2023-05-25
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0