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

来源:互联网 发布:淘宝手机游戏 编辑:程序博客网 时间:2024/04/23 14:55
a:复制已有的安装包1,拷贝已有的安装包scp  -r /root/soft  root@192.168.60.xxx:/root/joeyon2,编译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_module3,创建用户即可b:增量添加nginx模块1,在源码中编译,注意之make不要make install2,copy生成的nginx文件,替换已有nginx文件


0 0
原创粉丝点击