im getting below error when try to start the nginx

June 16, 2018 343 views
Nginx CentOS

Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2018-06-16 10:02:39 UTC; 13s ago

Process: 30246 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE) Process: 30245 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Main PID: 1665 (code=exited, status=0/SUCCESS)

Jun 16 10:02:39 ip-172-17-247-243.atom.sbx.loc systemd[1]: Starting The nginx HTTP and reverse proxy server... Jun 16 10:02:39 ip-172-17-247-243.atom.sbx.loc nginx[30246]: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (13: Permission denied) Jun 16 10:02:39 ip-172-17-247-243.atom.sbx.loc nginx[30246]: nginx: configuration file /etc/nginx/nginx.conf test failedcode

Be the first one to answer this question.