centOS安装nginx的一些常见问题

centOS安装nginx的常见问题

./configure:error:c compile cc is not found

当执行命令

./configure

编译安装nginx时报error:c compile cc is not found

解决:

执行命令

yum -y install gcc gcc-c++ autoconf automake make

等待系统安装gcc完毕后再次执行

./configure

nginx编译安装错误:error: the HTTP gzip module requires the zlib library.

You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib= option.

在nginx中我们执行“./configure” 会提示 error: the HTTP gzip module requires the zlib library意思是告诉我们没有zlib library的支持, 碰到此类问题我们只要安装这个库就可以了

执行命令

yum install -y zlib-devel

等待安装完毕后再次执行即可

./configure

猜你喜欢

转载自www.cnblogs.com/zzzqi/p/13176086.html