Home >Backend Development >PHP Problem >How to modify the port in php
php修改端口的方法:1、使用编辑器打开httpd.conf配置文件;2、修改配置【Listen 8080】;3、保存修改,并重启服务器即可。
具体方法如下:
(视频教程推荐:java视频教程)
1、打开httpd.conf配置文件
\\apache\\conf\\httpd.conf
2、在配置文件中找到Listen 80
# 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
将其修改为Listen 8080
3、重启服务器。
相关推荐:php培训
The above is the detailed content of How to modify the port in php. For more information, please follow other related articles on the PHP Chinese website!