Home  >  Article  >  Operation and Maintenance  >  How to modify the running port of nginx

How to modify the running port of nginx

王林
王林forward
2020-08-27 16:22:234873browse

How to modify the running port of nginx

How to modify the running port if you don’t want nginx to use port 80?

Specific method:

(Recommended tutorial: nginx tutorial)

Modify the nginx configuration file, for example, if the version is nginx-1.11.10 Modify the nginx-1.11.10\conf\nginx.conf file

Modify the value corresponding to http -> server -> listen, as shown in the figure:

How to modify the running port of nginx

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

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete