nginx编译增加模块

查看当前编译
nginx -V
增加 --with-http_stub_status_module 监控nginx状态
进入我们之前的解压包路径
./configure --prefix=/data/nginx --with-stream --with-http_stub_status_module
make
进入编译后的目录../objs
拷贝nginx程序至/data/nginx/sbin/nginx (先停用后备份原先nginx程序)
查看当前编译
nginx -V

猜你喜欢

转载自www.cnblogs.com/kylingx/p/13186602.html