nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

This is a problem with the port number. In Linux, the port number below 1024 requires root privileges to be used. Therefore, when the ordinary user starts the program binding, the permission problem will be reported.

 

Start nginx with the following command

$ sudo nginx  

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326306658&siteId=291194637