Current location - Quotes Website - Collection of slogans - How to modify the default web port of apache
How to modify the default web port of apache
1. Find the httpd.conf file (that is, d:\Apache\conf\httpd.conf) in the conf directory under the Apache installation directory. Open it.

2. Find "Listen80", and the number immediately after Listen is the port number. Let's change it to "listen to 8080". It is also possible to change to other port numbers that are not used.

3. Restart Apache for the new configuration to take effect. You can start Apache by using "apache Serive Monitor" in the status bar in the lower right corner.

You can also click start > run > enter cmd> enter > navigate to the apache installation directory to the bin directory, and then enter.

“httpd–k start”.