nginx 시작 시 오류 기록

1654 단어
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.
...

문제 원인: 포트 충돌 해결 방법: 포트 변경

좋은 웹페이지 즐겨찾기