詳細(xì)配置流程如下:
(學(xué)習(xí)視頻分享:編程視頻)
1、下載SSL證書
2、兩個證書放在cert目錄上然后放到nginx 與nginx.conf同目錄下
3、去nginx解壓目錄下執(zhí)行
./configure?--with-http_ssl_module
如果報錯 ./configure: error: SSL modules require the OpenSSL library.則執(zhí)行
yum?-y?install?openssl?openssl-devel ./configure ./configure?--with-http_ssl_module
4、執(zhí)行 make(切記不能 make install 會覆蓋安裝目錄)
5、將原來 nginx 備份
cp?/usr/local/nginx/sbin/nginx?/usr/local/nginx/sbin/nginx.bak
6、將新的 nginx 覆蓋舊安裝目錄
cp?objs/nginx?/usr/local/nginx/sbin/nginx
如果報錯,執(zhí)行
cp?-rfp?objs/nginx?/usr/local/nginx/sbin/nginx
完成。
相關(guān)推薦:編程視頻
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦