日期:2014-05-16 浏览次数:20634 次
tar -zxvf nginx-{version}.tar.gz
cd nginx-{version}
./configure --prefix=/lym/server/nginx --with-http_stub_status_module --without-http-cache --with-http_ssl_module
make make install
chmod 775 /lym/server/nginx/logs chmod -R 775 /lym/wwwroot chmod 755 /lym/server/nginx/sbin/nginx
/lym/server/nginx/sbin/nginx -t
/lym/server/nginx/sbin/nginx
/lym/server/nginx/sbin/nginx -s reload
yum -y install pcre-devel openssl openssl-devel
groupadd -f www useradd -g www www