See “systemctl status nginx.service” and “journalctl -xe” for details.

See 昨天从apache换到了nginx,添加了几个网站也都没问题。等到添加最后一个网站的时候,重启nginx出现提示Reloading nginx configuration (via systemctl): Job for nginx.service invalid. 百度了一下,有人说是Centos7问题,有人说是配置问题,一直没找到解决方法。
使用/etc/init.d/nginx reload 或nginx -s reload 都无效。
后来仔细看了一下,错误提示, Failed to start SYSV: NGINX is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
nginx -s reload
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/usr/local/nginx/conf/ssl/"
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/usr/local/nginx/conf/ssl/") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)



:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: