nginx安装

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz
 tar zxvf pcre-8.13.tar.gz
 wget http://nginx.org/download/nginx-1.0.8.tar.gz
 tar zxvf nginx-1.0.8.tar.gz
 cd nginx-1.0.8
 ./configure 
--with-pcre=../pcre-8.13
默认安装的路径是/usr/local/nginx

更多的安装配置 
./configure --prefix=/usr/local/nginx 
--with-openssl=/usr/include (启用ssl) 
--with-pcre=/usr/include/pcre/ (启用正规表达式) 
--with-http_stub_status_module (安装可以查看nginx状态的程序) 
--with-http_memcached_module (启用memcache缓存)
--prefix=/usr/local/nginx --with-http_realip_module --with-http_sub_module --with-http_flv_module --with-http_dav_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_addition_module --with-pcre=/usr/local/pcre-8.36 --with-openssl=/usr/local/openssl-1.0.1j --with-http_ssl_module --with-zlib=/root/zlib-1.2.10

相关推荐