Current location - Quotes Website - Collection of slogans - How to change apache port number under linux
How to change apache port number under linux
Modify two places: listen 13578: 80, listen 80 to the port you set, I set the port to 82, listen 82, name virtual host *: 80 to the port you set, I set the port to 82, name virtual host *: 82, save the changes and exit.

The following is a detailed introduction of Apache configuration service http://. Or you can use servicehttpdrestart to restart.

We changed ServerAdmin to our own mailbox.

The port definition of Apache is located in the httpd.conf file in its directory.

Find the apache configuration file httpd.conf, modify the listening port, that is, Listen80, change 80 to the port number you want, and then restart apache.