yum -y install gcc gcc-c++
yum -y install pcre-devel zlib-devel
yum install pcre pcre-devel
yum install gcc gcc-c++ cmake ncurses-devel bison
yum install openssl openssl-devel –y
yum install pcre pcre-devel –y
yum install openssl openssl-devel –y
yum install pcre pcre-devel –y
cd /home/sun/tools/
tar zxvf nginx-1.6.2.tar.gz
cd nginx-1.6.2
./configure --user=nginx --group=nginx --prefix=/application/nginx1.6.2 --with-http_stub_status_module --with-http_ssl_module
make
make install
echo $?
ln -s /application/nginx1.6.2/ /application/nginx
useradd -s /sbin/nologin -M nginx
/application/nginx/sbin/nginx -t
/application/nginx/sbin/nginx
netstat -lntup|grep nginx
curl 192.168.0.110
本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/articles/8681693.html