Home  >  Article  >  Backend Development  >  How to modify the port in php

How to modify the port in php

王林
王林Original
2020-11-04 11:45:397890browse

php修改端口的方法:1、使用编辑器打开httpd.conf配置文件;2、修改配置【Listen 8080】;3、保存修改,并重启服务器即可。

How to modify the port in php

具体方法如下:

(视频教程推荐: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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn