1.BIO_new_file("/etc/nginx/../ssl/as.crt") failed
[root@ nginx]# systemctl start nginx
Job for nginx.service failed because the control process
exited with error code. See "systemctl status nginx.service"
and "journalctl -xe" for details.
[root@ nginx]# systemctl status nginx
...
Jul 08 15:33:48 datashare01 systemd[1]: Starting nginx - high performance web server...
Jul 08 15:33:48 datashare01 nginx[10680]: nginx: [emerg] BIO_new_file("/etc/nginx/../ssl/as.crt") failed (SSL: err...file)
Jul 08 15:33:48 datashare01 nginx[10680]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jul 08 15:33:48 datashare01 systemd[1]: nginx.service: control process exited, code=exited status=1
Jul 08 15:33:48 datashare01 systemd[1]: Failed to start nginx - high performance web server.
之前nginx.conf配置
...
http {
include mime.types;
default_type application/octet-stream;
ssl_certificate ../ssl/as.crt;
ssl_certificate_key ../ssl/as.key;
...
解决方法:相对路径改为绝对路径
...
ssl_certificate /etc/nginx/ssl/as.crt;
ssl_certificate_key /etc/nginx/ssl/as.key;
...
2.high performance web server
...
Jul 08 16:02:40 nginx systemd[1]: nginx.service start operation timed out. Terminating.
Jul 08 16:02:40 nginx systemd[1]: Failed to start nginx - high performance web server.
Jul 08 16:02:40 nginx systemd[1]: Unit nginx.service entered failed state.
Jul 08 16:02:40 nginx systemd[1]: nginx.service failed.
...
问题原因:端口冲突
解决方法:更改端口
网友评论