一、 nginx: [emerg] unknown directive " listen" in /usr/local/nginx/conf/nginx.conf:158 格式问题
二、 nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:158
参考这个 zhuanlan.zhihu.com/p/47928700
进行编译:
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
配置完成后,运行命令:
make
替换之后重启可以解决
三
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/nginx/conf/nginx.conf:160
抄的配置太老 ssl on 去掉就行
四
配置完之后没反应
要用restart
不能用reload
debug工具
netstat -antp | grep 443