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 的結(jié)果
- 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