1.下载nginx
wget http://nginx.org/download/nginx-1.13.7.tar.gz
2.安装依赖
yum install gcc-c++ yum install -y pcre pcre-devel yum install -y zlib zlib-devel yum install -y openssl openssl-devel
3.解压缩
tar -xvf nginx-1.13.7.tar.gz
4.安装
cd nginx-1.13.7/ ./configure make make install
5.运行
cd /usr/local/nginx/sbin ./nginx
6.停止
#强制停止 ./nginx -s stop #处理完请求后停止 ./nginx -s quit #重启 ./nginx -s reload #查看是否启动 ps -ef | grep nginx
标签:1.13,tar,devel,nginx,yum,install,Linux,安装 From: https://www.cnblogs.com/uip001/p/17067805.html