linux安装nginx -------------make && make install报错

报错:

make: *** No rule to make target `build', needed by `default'. Stop.

解决:

跟新yum:

yum update

删除原先解压的nginx重新解压一份

添加依赖的库:

yum install -y gcc pcre pcre-devel openssl openssl-devel gd gd-devel

参数编译:

./configure --prefix=/opt/nginx --sbin-path=/usr/bin/nginx

安装:

make && make install

转载:https://blog.csdn.net/cailongbiaoyuli/article/details/84348866

你可能感兴趣的:(spring-cloud)