nginx - How to open port 80 in Mac OS IDEA
给我你的怀抱
给我你的怀抱 2017-05-16 17:07:05
0
3
742

During the development process, port 80 needs to be used
The method of using nginx pfctl has failed
nginx cannot use port 80. Is there any other way to use port 80

给我你的怀抱
给我你的怀抱

reply all(3)
伊谢尔伦

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...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template