Ubuntu安装nginx
#nginx #ubuntu 以下是Ubuntut系统安装nginx,CentOS安装请查看[[Centos7源码安装Tengine]]
wget http://tengine.taobao.org/download/tengine-2.2.0.tar.gz
tar -zxf tengine-2.2.0.tar.gz
cd tengine-2.2.0/
apt update
apt install gcc libpcre3-dev libssl-dev zlib1g-dev libxml2-dev libxslt1-dev libgd-dev libgeoip-dev
./configure --prefix=/usr/local/nginx --enable-mods-static=all --with-ipv6make报错:
objs/Makefile:573: recipe for target 'objs/src/core/ngx_murmurhash.o' failed解决办法:
将对应的makefile文件夹中(在 /nginx/objs/Makefile) 找到 -Werror 并去掉 在重新make即可 
最后更新于