I installed nginx-extras
in order to use lua module.
I use mongroup to group and start services on my machine.
When I run nginx with this command:
exec nginx -c "$(pwd)/nginx.conf" -g "daemon off;"
I get:
2015/08/21 12:20:03 [debug] 24217#0: bind() 0.0.0.0:80 #5
2015/08/21 12:20:03 [emerg] 24217#0: bind() to 0.0.0.0:80 failed(13: Permission denied)
I have seen some post where it says that I have to launch nginx as root user because only root user can use port 80. So I added:
user root;
to my nginx.conf
. After this, nothing change and I still get this issue.
getenforce
into your question? Which user as you running theexec nginx
command as? Becoming root means more than just asking for it in a config file.