During the development process, port 80 needs to be usedThe method of using nginx pfctl has failednginx cannot use port 80. Is there any other way to use port 80
First check if port 80 is occupied
lsof -nPiTCP -sTCP:LISTEN
If it is not occupied, ports below 1024 require root permissions, so you need to add sudo when starting nginx
sudo service nginx start
1, lsof -i:80 to check if it is occupied
2. Enable root user http://jingyan.baidu.com/arti...
First check if port 80 is occupied
If it is not occupied, ports below 1024 require root permissions, so you need to add sudo when starting nginx
sudo service nginx start
1, lsof -i:80 to check if it is occupied
2. Enable root user http://jingyan.baidu.com/arti...