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!