一、yum安装
yum -y install nginx
二、手动安装
1.安装依赖包:
yum install gcc-c++
yum install -y pcre pcre-devel
yum install -y zlib zlib-devel
yum install -y openssl openssl-devel
2.安装稳定版nginx
nginx下载版本wget -c https://nginx.org/download/nginx-1.12.2.tar.gz
3.解压
tar-zxvf nginx-1.12.2.tar.gz
4.使用默认配置
cd nginx-1.12.2.tar.gz
./configure
5.编译
make
6.安装
make install
7.
网友评论