需求:
已经安装好的nginx,根据业务的需求动态的添加一个模块
具体配置:
步骤一:查看nginx当前安装的模块
[root@lvsweb1 nginx-1.10.3]# ls
auto CHANGES CHANGES.ru conf configure contrib html LICENSE Makefile man objs README src
[root@lvsweb1 nginx-1.10.3]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.10.3
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module
步骤二:重新编译时候,使用--add-module=/root/nginx-push-stream-module指定添加模块。我的新下载的模块是存放在服务器上的/root/下的。
[root@lvsweb1 nginx-1.10.3]# ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --add-module=/root/nginx-push-stream-module
[root@lvsweb1 nginx-1.