Failed to start Nginx Service

General support questions
Post Reply
dwayne112
Posts: 1
Joined: 2018/07/15 10:08:09

Failed to start Nginx Service

Post by dwayne112 » 2018/07/15 10:18:54

I am a noob and need some help with this error message I recieved when I installed nginx on Centos7, I'm unable to start the service :o :o :o :o

#service nginx start
Starting nginx (via systemctl): Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
[FAILED]

I ran this command systemctl status nginx.service -1

nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-07-15 10:12:56 UTC; 19s ago
Process: 12913 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 12912 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com nginx[12913]: nginx: [emerg] unknown directive "Server" in /etc/nginx/conf.d/codius.conf:1
Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com nginx[12913]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com systemd[1]: nginx.service: control process exited, code=exited status=1
Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com systemd[1]: Unit nginx.service entered failed state.
Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com systemd[1]: nginx.service failed.

User avatar
TrevorH
Forum Moderator
Posts: 23203
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Failed to start Nginx Service

Post by TrevorH » 2018/07/15 10:33:51

Jul 15 10:12:56 codiuscontracts.frequentlyconnected.com nginx[12913]: nginx: [emerg] unknown directive "Server" in /etc/nginx/conf.d/codius.conf:1
That's the problem.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply