1 安装相关组件
yum install -y gcc gcc-c++ autoconf automake\
yum install -y zlib zlib-devel opennsll openssl-devel pcre pcre-devel
2 下载 nginx 1.2.3
http://nginx.org/en/download.html
3配置编译
./configure
make && make insta
转载于:https://blog.51cto.com/moonstar419/997767