使用命令
nginx -c nginx2.conf
nginx: [emerg] BIO_new_file("./conf/cert/nginx.pem") failed (SSL: error:02001003:system library:fopen:No such process:fopen(’./conf/cert/nginx.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx配置文件中配置了ssl协议,但nginx确没有相应的证书文件,创建对应的文件,或暂时注释掉#listen 80 ssl及其它ssl的配置。
nginx: [alert] could not open error log file: CreateFile() “logs/error.log” failed (3: The system cannot find the path specified)
2021/03/23 22:21:33 [emerg] 9268#7948: CreateDirectory() “F:\project\shop/temp/client_body_temp” failed (3: The system cannot find the path specified)
命令需要到安装Nginx目录下输入cmd,然后输入对应的命令,解决