Nginx的安装
Nginx的安装:
author :headsen chen at 2017-11-30 16:49:06
个人原创,经典中的经典
1,前期环境准备
yum -y install gcc* openssl* pcre* zlib zlib-devel
2,上传Nginx的安装包:
tar fx nginx-1.9.3.tar.gz
cd nginx-1.9.3
./configure --prefix=/usr/local/nginx --with-pcre --with-http_ssl_module --with-http_stub_status_module
make && make install
3,nginx的启动,重载,停止,检测配置文件等操作:
/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reload
pkill -9 nginx