美文网首页
nginx编译

nginx编译

作者: zwaspire | 来源:发表于2018-05-07 16:43 被阅读0次

一:安装包

http://nginx.org/en/download.html

http://nginx.org/download/

二:编译

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


正确

四:链接未验证

centos7-install-php72

centos7-new-nginx

相关文章

网友评论

      本文标题:nginx编译

      本文链接:https://www.haomeiwen.com/subject/pglvrftx.html