在已经安装好的Nginx上增加新模块
在现有的web服务器上增加新的模块实现更为丰富的功能,Nginx算是比较常用的web服务器, nginx不仅仅可以做web服务器,只要安装对应的插件还可作反向代理、即时通讯、文件下载、流媒体服务等功能,有时候我们已经安装好了Nginx,改变用途或者发现缺少用到没有安装的模块,可是我们又不想重新安装覆盖已经安装的nginx,我们该如何新增模块呢?下面通过安装--with-mail_ssl_module作为示例进行说明,安装其他模块也是同样的道理。
1、 当前nginx:
/usr/local/nginx-1.6.3/sbin/nginx –V
configure arguments: --prefix=/usr/local/nginx-1.6.3 --with-http_ssl_module --with-http_spdy_module --with-http_stub_status_module --with-pcre --with-http_realip_module --add-module=/root/ngx_cache_purge-1.3
2、 安装:
解压相同版本的nginx源码包(以前安装时的源码包)
tar zxf nginx-1.6.3.tar.gz
cd nginx-1.6.3
./configure (原来的参数) --prefix=/usr/local/nginx-1.6.3 --with-http_ssl_module --with-http_spdy_module --with-http_stub_status_module --with-pcre --with-http_realip_module --add-module=/root/ngx_cache_purge-1.3 --with-mail_ssl_module
编译:make
但是不要make install,这样会覆盖原程序。
mv /usr/local/nginx-1.6.3/sbin/nginx /usr/local/nginx-1.6.3/sbin/nginx_bak
cp objs/nginx /usr/local/nginx-1.6.3/sbin/
3、 验证,查看一下nginx的模块情况
/usr/local/nginx-1.6.3/sbin/nginx –V
configure arguments: --prefix=/usr/local/nginx-1.6.3 --with-http_ssl_module --with-http_spdy_module --with-http_stub_status_module --with-pcre --with-http_realip_module --add-module=/root/ngx_cache_purge-1.3 --with-mail_ssl_module
- 在已经安装的nginx上,增加ssl模块
- 在已经安装Nginx的基础上增加新Nginx-echo模块
- 在已经安装好的Nginx上增加新模块
- 在已经安装的nginx上,增加ssl模块
- 原已经安装好的nginx,现在需要添加一个未被编译安装的模块:
- centos6.5生产环境编译安装nginx-1.11.3并增加第三方模块ngx_cache_purge、nginx_upstream_check、ngx_devel_kit、lua-nginx
- ubunut,已经安装nginx,开启SSL模块
- 给已经编译安装了的nginx 添加http_ssl_module模块
- centos6.5生产环境编译安装nginx-1.11.3并增加第三方模块ngx_cache_purge、nginx_upstream_check、ngx_devel_kit、lua-nginx
- 在已经安装Nginx的基础上增加新Nginx-echo模块
- apt-get 方式安装nginx后,增加模块--with-http_perl_module
- 升级nginx,查看已经安装的模块,并隐藏或者修改版本号
- centos中安装nginx与新增加https模块支持
- 原已经安装好的nginx,现在需要添加一个未被编译安装的模块--echo-nginx-module-0.56
- Centos6.5,安装nginx,包含ssl模块,如果已经安装nginx则配置即可
- 已经安装php后,再增加扩展模块(不重新编辑php)
- 已经安装好的nginx,需要添加一个未被编译安装的模块,需要怎么弄呢
- Nginx在已安装的情况下新增 echo 模块
- nginx编译安装的一些模块简单介绍,请根据实际环境进行部署
- python程序来获取当前已经的安装模块