首页 > 其他 > 详细

centOS安装nginx的一些常见问题

时间:2020-06-22 12:39:05      阅读:57      评论:0      收藏:0      [点我收藏+]

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

centOS安装nginx的一些常见问题

原文:https://www.cnblogs.com/zzzqi/p/13176086.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!