安装Nginx-1.1.x-John Steven
1、安装必须软件包yum -y install gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel
2、安装pcre库
[*]tar zxvf pcre-7.9.tar.gz
[*]cd pcre-7.9
[*]./configure
[*]make && make install
[*]cd ../
3、安装Nginx
[*]useradd -s /sbin/nologin www
[*]wget http://www.nginx.org/download/nginx-1.0.0.tar.gz
[*]tar zxvf nginx-1.0.0.tar.gz
[*]cd nginx-1.0.0/
[*]./configure --user=www --group=www --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module
[*]make && make install
页:
[1]