centos下编译安装nginx

1,安装nginx依赖
yum -y install gcc pcre-devel zlib-devel openssl openssl-devel
如图:
centos下编译安装nginx
安装成功:
centos下编译安装nginx

2,下载nginx-1.9.9.tar.gz
地址:https://nginx.org/download/