Get the most out of your Centmin Mod LEMP stack
Become a Member

Hi all + Q:can not restart nginx

Discussion in 'Introductions' started by Peih, Mar 30, 2016.

  1. Peih

    Peih New Member

    Mar 2, 2016
    Local Time:
    4:43 AM
    Hello all,
    i'm a newbie here and i like to use centminmod for all my vps. this script is very useful.
    But i have a issue that i can not restart nginx. i dont know what to do. Here it is:

    [root@sv1]# nprestart
    Restarting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. [FAILED]
    [root@sv1]# systemctl status nginx.service
    * nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
    Loaded: loaded (/etc/rc.d/init.d/nginx)
    Active: failed (Result: exit-code) since Wed 2016-03-30 08:42:42 UTC; 26s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 18439 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=0/SUCCESS)
    Process: 13417 ExecReload=/etc/rc.d/init.d/nginx reload (code=exited, status=0/SUCCESS)
    Process: 29466 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    Main PID: 8570 (code=exited, status=0/SUCCESS)

    Mar 30 08:42:42 systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse ...r...
    Mar 30 08:42:42 nginx[29466]: Starting nginx: nginx: [emerg] unknown directive "
    Mar 30 08:42:42 nginx[29466]: [FAILED]
    Mar 30 08:42:42 systemd[1]: nginx.service: control process exited, code=exited status=1
    Mar 30 08:42:42 systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) r...ver.
    Mar 30 08:42:42 systemd[1]: Unit nginx.service entered failed state.
    Mar 30 08:42:42 systemd[1]: nginx.service failed.
  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    8:43 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    welcome @Peih to Centmin Mod Community

    now that you can post, might want to post in relevant forum at Install & Upgrades or Pre-Install Questions | Centmin Mod Community :)

    Threads you might want to participate in ;)
    Threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod would include:
    Premium Membership