0、安装依赖
1 | yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel |
1、下载并解压到 /usr/local/nginx-1.13.7
1 | curl -LO http://nginx.org/download/nginx-1.13.7.tar.gz |
2、安装
1 | ./configure |
3、修改端口配置文件路径 /usr/local/nginx/conf/nginx.conf
4、启动
1 | /usr/local/nginx/sbin/nginx |
5、检查
1 | ps aux | grep nginx |