Home >Operation and Maintenance >Apache >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:
2, then ctrl f to quickly find Listen Keyword, locate the position where the keyword is changed:
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:
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!