Home  >  Article  >  Operation and Maintenance  >  How to change the apache port number

How to change the apache port number

藏色散人
藏色散人Original
2019-07-01 10:37:115686browse

How to change the apache port number

How to change the apache port number?

How to change the apache port number:

1. First enter the apache configuration file directory, double-click to open and edit the apache configuration file httpd.conf file:

How to change the apache port number

2, then ctrl f to quickly find Listen Keyword, locate the position where the keyword is changed:

How to change the apache port number

3. Go to the Listen 80 line and change 80 to another unoccupied port number, such as 90 , save the file and restart apache to complete.

The above is how to modify the default port 80 of Apache:

How to change the apache port number

For more Apache related knowledge, please visit the Apache usage tutorial column !

The above is the detailed content of How to change the apache port number. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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