{ nginx} Nginx平稳升级
2016-08-03 本文已影响0人
nealma
upgrade nginx for Centos 6.x
- yum install gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools-devel
- wget http://nginx.org/download/nginx-1.9.1.tar.gz
- tar xvf nginx-1.9.1.tar.gz
- cd nginx-1.9.1
- .configure --arguments && make(不要make install)
- arguments为 nginx -V 的结果
- mv /usr/sbin/nginx /usr/sbin/nginx.old
- cp objs/nginx /usr/sbin/nginx
- nginx -s reload
问题
nginx: [alert] version 1.9.1 of nginx.pm is required, but 1.0.15 was found