0
点赞
收藏
分享

微信扫一扫

在已有nginx上添加模块以及在已有安装包上编译nginx


a:复制已有的安装包

1,拷贝已有的安装包
scp  -r /root/soft  root@192.168.60.xxx:/root/joeyon
2,编译pcre与zlib需要编译安装
./configure  --prefix=/var/local/nginx1.8.0 --user=nginx --group=nginx --sbin-path=//var/local/nginx1.8.0/nginx --conf-path=/var/local/nginx1.8.0/nginx.conf --pid-path=/var/local/nginx1.8.0/nginx.pid --with-pcre=/root/joeyon/soft/pcre-8.36 --with-zlib=/root/joeyon/soft/zlib-1.2.8 --with-openssl=/root/joeyon/soft/openssl-1.0.1e --add-module=/root/joeyon/soft/nginx-gridfs-0.8 --with-http_realip_module --with-http_image_filter_module  --with-http_stub_status_module
3,创建用户即可

b:增量添加nginx模块
1,在源码中编译,注意之make不要make install
2,copy生成的nginx文件,替换已有nginx文件




举报

相关推荐

0 条评论