前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >安装nginx出现的问题

安装nginx出现的问题

作者头像
运维小白
发布2018-02-07 10:52:38
1.1K0
发布2018-02-07 10:52:38
举报
文章被收录于专栏:运维小白运维小白
  1. 问题一
  • 初始化的时候,提示没有这个文件
代码语言:javascript
复制
[root@localhost src]# ./configure --prefix=/usr/local/nginx
-bash: ./configure: 没有那个文件或目录
  • 解决方法:
    • 因为目录路径错了,导致无法初始化,需要切换到nginx-1.12.1目录下初始化
代码语言:javascript
复制
[root@localhost src]# cd nginx-1.12.1
[root@localhost nginx-1.12.1]#
  1. 问题二
代码语言:javascript
复制
初始化的时候,遇到的
checking for C compiler ... not found

./configure: error: C compiler cc is not found
  • 解决办法:
    • 安装包yum -y install gcc
  1. 问题三
代码语言:javascript
复制
初始化的时候,遇到的
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
  • 解决办法:
    • 安装包yum install -y pcre-deve
    • 安装包yum install -y openssl openssl-devel

  • 初始化成功的标志
代码语言:javascript
复制
Configuration summary
  + using system PCRE library
  + OpenSSL library is not used
  + using system zlib library

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档