重启tengine

问答中心分类: Nginx重启tengine
catch asked 8 年 ago
一重启就提示Restarting nginx (via systemctl): Job for nginx.service failed because the control proces
s exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. [FAILED]
如何解决?
 
 

2 Answers
catch answered 8 年 ago
nginx status:
service nginx status
● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 p
roxy server   Loaded: loaded (/etc/rc.d/init.d/nginx)
   Active: failed (Result: exit-code) since Sun 2016-11-27 08:23:00 CST; 3min 27s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3295 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=0/SUCCESS)
  Process: 3425 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
 Main PID: 2823 (code=exited, status=0/SUCCESS)

Nov 27 08:23:00 233boy-network systemd[1]: Starting SYSV: Nginx is an HTTP(S) server,.....
Nov 27 08:23:00 233boy-network nginx[3425]: Starting nginx: nginx: [emerg] SSL_CTX_us...h)
Nov 27 08:23:00 233boy-network nginx[3425]: [FAILED]
Nov 27 08:23:00 233boy-network systemd[1]: nginx.service: control process exited, cod...=1
Nov 27 08:23:00 233boy-network systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) ...r.
Nov 27 08:23:00 233boy-network systemd[1]: Unit nginx.service entered failed state.
Nov 27 08:23:00 233boy-network systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

oneinstack answered 8 年 ago
nginx -t  检查下语法吧