Home  >  Article  >  Operation and Maintenance  >  How to change the port number of apache

How to change the port number of apache

藏色散人
藏色散人Original
2019-09-29 11:03:525279browse

How to change the port number of apache

The default is port 80. You can modify the port numbers in the following two places in the httpd.conf file to the predetermined ones, for example, modify it to port 8080

把httpd.conf  中Listen 80 改成Listen 8080
把ServerName localhost:80 改成了 ServerName localhost:8080

View all port status: netstat -ano

For more Apache related knowledge, please visit the Apache Usage Tutorial column!

The above is the detailed content of How to change the port number of apache. 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