一:安装包
http://nginx.org/en/download.html
二:编译
tar xzvf nginx-1.14.0.tar.gz
cd nginx-1.14.0
./configure --help
./configure --prefix=/opt/aspire/ums/nginx --with-stream
make & make install
三:出错解决
3.1
yum -y install pcre-devel
yum install -y zlib-devel
3.2 其他出错解决
像还有一些其它组件错误如:
You need a C++ compiler for C++ support
缺少c++编译器的原因
yum install -y gcc gcc-c++
make[1]: *** [/usr/local/pcre/Makefile] Error 127.pcre指向错误
指向源码包,不是编译安装后的包,所以
./configure –prefix=/export/lnmp/nginx-1.4.7 –with-pcre=../pcre-8.34
正确
四:链接未验证