nginx编译

2018-05-07  本文已影响0人  zwaspire

一:安装包

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

上一篇 下一篇

猜你喜欢

热点阅读