1.安装基础库
yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel
2.安装 make命令
yum install make
3.nginx编译
./configure --prefix=/data/dddd/nginx --with-http_ssl_module --with-http_stub_status_module --with-http_v2_module
4.执行安装命令
make && make install
5.启动
/data/dddd/nginx/sbin/ngxin -c /data/dddd/nginx/conf/ngxin.conf
6.修改配置重新加载
/data/dddd/nginx/sbin/nginx -s reload