Current location - Quotes Website - Collection of slogans - How to modify the web access port of LNMP
How to modify the web access port of LNMP
The following are all guesses! I haven't practiced, please back it up before modifying the configuration just in case! Edit the/usr/local/nginx/conf/nginx.conf or/usr/local/nginx/conf/vhost/yoursite configuration file and find: Copy the contents to the clipboard code: listen 80 Change "80" to the port number you need, save and exit, and then execute: Copy the contents to the clipboard code: kill-hup'