How to change the port number of apache

步履不停
Release: 2019-07-23 10:07:59
Original
9232 people have browsed it

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!