Nginx won't start. Permission denied
When trying to start Nginx, the user gets the permission denied error.
The full error text is as follows:
local]# /opt/workfusion/apps/nginx/nginx.service start
Starting nginx: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /opt/workfusion/apps/nginx/etc/nginx.conf:2
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
[FAILED]
Repair Nginx
Run the following command:
setcap 'cap_net_bind_service=+ep' ${INSTALL_DIR}/lib/nginx/nginxStart the Nginx server:
nginx-server start