- 安装相关依赖
yum -y install gcc pcre-devel zlib-devel openssl openssl-devel
- 下载nginx
wget https://nginx.org/download/nginx-1.16.1.tar.gz
- 解压
tar -zxvf nginx-1.16.1.tar.gz
- 指定安装位置
./configure --prefix=/usr/local/nginx
- 编译和安装
make && make install
- 展示目录
yum install tree # 安装
tree
标签:tar,nginx,gz,devel,Nginx,install,相关,安装
From: https://www.cnblogs.com/feel-myself/p/17067137.html