使用“--with-http_stub_status_module”配置行重新编译NGINX

tar*_*eld 5 ubuntu configuration nginx apt

我已经安装了 NGINX,sudo apt-get install nginx现在我想用 configure 选项重新编译它--with-http_stub_status_module

我该怎么做,有没有办法不丢失所有/etc/nginx配置?

谢谢!汤姆。

Mar*_*ald 6

从 nginx.org 下载源代码并解压。使用/path/to/your/nginx/binary -V让您的当前配置行。

按照您认为合适的方式修改它,并使用新的配置行从 nginx 源运行配置文件。然后运行 ​​make、make install 和 make upgrade,你就全部更新了。