Stoping nginx... nginx: [emerg] BIO_new_file("/usr/local/nginx/conf/cert/214291778530222.pem") faile

Stoping nginx... nginx: [emerg] BIO_new_file("/usr/local/nginx/conf/cert/214291778530222.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/nginx/conf/cert/214291778530222.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file) failed. Use force-quit



问题分析:只要写绝对路径,就会报错,无论windows还是linux,怀疑是对路径的处理有问题

解决办法
    windows下,将证书文件放到conf目录下,
    linux下,将证书文件放到nginx.conf所在的目录下

你可能感兴趣的:(Stoping nginx... nginx: [emerg] BIO_new_file("/usr/local/nginx/conf/cert/214291778530222.pem") faile)