nginx配置https時,重啓報錯:nginx
nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:67
複製代碼
緣由: nginx缺乏http_ssl_module模塊bash
說明:個人nginx的安裝目錄是/usr/local/nginx這個目錄,個人源碼包在/usr/local/src/nginx-1.16.1目錄ui
cd /usr/local/src/nginx-1.16.1
複製代碼
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
複製代碼
make
複製代碼
注: 這裏不要make install
,不然就是覆蓋安裝spa
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.back
複製代碼
cp -f ./objs/nginx /usr/local/nginx/sbin/
複製代碼
提示是否覆蓋,輸入yes便可code
/usr/local/nginx/sbin/nginx -V
複製代碼