Want to subscribe to topics you're interested in?
Become a Member

Hi all + Q:can not restart nginx

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

  1. Peih

    Peih New Member

    24
    2
    3
    Mar 2, 2016
    Ratings:
    +2
    Local Time:
    5:21 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 domain.com]# 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 domain.com]# 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 sv1.domain.com systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse ...r...
    Mar 30 08:42:42 sv1.domain.com nginx[29466]: Starting nginx: nginx: [emerg] unknown directive "pagespe...nf:1
    Mar 30 08:42:42 sv1.domain.com nginx[29466]: [FAILED]
    Mar 30 08:42:42 sv1.domain.com systemd[1]: nginx.service: control process exited, code=exited status=1
    Mar 30 08:42:42 sv1.domain.com systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) r...ver.
    Mar 30 08:42:42 sv1.domain.com systemd[1]: Unit nginx.service entered failed state.
    Mar 30 08:42:42 sv1.domain.com systemd[1]: nginx.service failed.

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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