Linux下安装nginx
1.检查和安装依赖包
/usr/local/nginx/sbin/nginx -v
yum -y install gcc gcc-c++ zlib-devel pcre-devel openssl openssl-devel
make&&make install
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx -s reload
/usr/local/nginx/sbin/nginx -v