Home > Article > Operation and Maintenance > How to change the port number of apache
Find the httpd.conf file in the conf directory under the Apache installation directory (i.e. d:\Apache\conf\httpd.conf). Open it.
Find "Listen80", the number immediately following Listen is the port number, we change it to "Listen 8080". You can also change it to another unused port number.
Restart Apache to make the new configuration take effect. You can start apache 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".
Extended information:
Apache is the world's number one Web server software. It can run on almost all widely used computer platforms and is widely used due to its cross-platform and security features. It is the most popular Web One of the server-side software. It is fast, reliable and can be expanded through simple API, and interpreters such as Perl/Python are compiled into the server. At the same time, Apache is transliterated as Apache, which is a tribe of North American Indians called Apache. clan, in the southwest of the United States. It is also the name of a foundation, an armed helicopter, etc.
For more Apache-related technical articles, please visit the Apache Tutorial column to learn!
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!