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

How to change the port number of apache

藏色散人
Release: 2019-10-02 17:21:29
Original
5362 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template