nginx 添加 --with-http_stub_status_module
2021-01-20 00:17
标签:添加模块 安装nginx 路径 pen module arguments nts ble uil 重新添加:--with-http_stub_status_module --with-http_ssl_module cd nginx-1.18.0 ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module make #备份旧程序 #拷贝 #重启 /usr/local/nginx/sbin/nginx -V 如下是成功: nginx 添加 --with-http_stub_status_module 标签:添加模块 安装nginx 路径 pen module arguments nts ble uil 原文地址:https://blog.51cto.com/13293070/2511272
1)进入nginx原文件路径
2)重新编译,添加模块?--with-http_stub_status_module --with-http_ssl_module
3)编译 make? #不要 make install
4)备份&拷贝
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
cp -r objs/nginx /usr/local/nginx/sbin/nginx
5)重启nginx
/usr/local/nginx/sbin/nginx -s reload
6)检查模块是否加载
nginx version: nginx/1.18.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
文章标题:nginx 添加 --with-http_stub_status_module
文章链接:http://soscw.com/index.php/essay/44302.html