一、安装nginx
1.1、安装依赖包
yum -y install gcc-c++ yum -y install pcre pcre-devel yum -y install zlib zlib-devel yum -y install openssl openssl-devel libssl-dev
二、下载nginx
wget http://nginx.org/download/nginx-1.9.12.tar.gz tar -zxvf nginx-1.9.12.tar.gz
2.1、编译安装
使用默认配置
./configure
make make install
2.2、如果没报错的话,查看是否安装成功
whereis nginx
2.3、启动nginx