日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

nginx重新编译添加ssl模块

發布時間:2024/4/14 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 nginx重新编译添加ssl模块 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

https://www.cnblogs.com/zhming26/p/6278667.html

?

https nginx配置

?

?

找到安裝nginx的源碼根目錄,如果沒有的話下載新的源碼

http://nginx.org

tar xvzf nginx-1.3.2.tar.gz

查看ngixn版本極其編譯參數

/usr/local/nginx/sbin/nginx -V

進入nginx源碼目錄

cd nginx-1.3.2

以下是重新編譯的代碼和模塊

./configure --prefix=/usr/local/nginx--with-http_stub_status_module --with-http_ssl_module --with-file-aio --with-http_realip_module

make 千萬別make install,否則就覆蓋安裝了

make完之后在objs目錄下就多了個nginx,這個就是新版本的程序了

備份舊的nginx程序

cp /usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx.bak

把新的nginx程序覆蓋舊的

cp objs/nginx /usr/local/nginx/sbin/nginx

測試新的nginx程序是否正確

/usr/local/nginx/sbin/nginx -t

nginx: theconfiguration file /usr/local/nginx/conf/nginx.conf syntax is ok

nginx:configuration file /usr/local/nginx/conf/nginx.conf test issuccessful

平滑重啟nginx

/usr/local/nginx/sbin/nginx -s reload

查看ngixn版本極其編譯參數

/usr/local/nginx/sbin/nginx -V

這是我重新編譯的代碼:

./configure --prefix=/usr/local/nginx --with-google_perftools_module --user=www --group=www --with-http_stub_status_module --with-http_gzip_static_module --with-openssl=/usr/ --with-pcre=/mydata/soft/pcre-8.31

轉載于:https://www.cnblogs.com/chen-msg/p/8582374.html

總結

以上是生活随笔為你收集整理的nginx重新编译添加ssl模块的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。