Centos上安装nginx报错

[vagrant@localhost Nginx-1.7.0]$ ./configure --prefix=/usr/local inx --with-pcre= agrant/download/pcre-8.35 这样就不报错了。  以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统...
Centos上安装nginx报错
系统大全为您提供
编译时候如下错误:
 
./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.
重新编译,指定 --with-pcre, 其中 --with-pcre=
agrant/download/pcre-8.35 是pcre是的源码目录,不是安装目录
 
 
[vagrant@localhost Nginx-1.7.0]$ ./configure --prefix=/usr/local
inx --with-pcre=
agrant/download/pcre-8.35
这样就不报错了。 
 以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统大全官网吧。
本文来自系统大全http:///如需转载请注明!推荐:win7纯净版2024-12-24
mengvlog 阅读 33 次 更新于 2025-09-10 20:57:54 我来答关注问题0
  •  一袭可爱风1718 centos下安装nginx出错,怎么办?

    第1步: 下载阿里源的配置文件 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 第2步: 更新镜像源 清除yum缓存 yum clean all 生成yum缓存 yum makecache 报错:已加载插件:langpacks, product-id, subscription-manager This system is not...

  •  杭州基点科技有限公司 centos安装nginx错误

    出现这个错误是因为nginx的安装目录和解压缩目录选择了同一个,并且参数没有配置好。举例说明:在centos 7.2 环境下,我把nginx-1.12.2.tar.gz压缩文件放在/opt/目录下,tar -zxvf nginx-1.12.2.tar.gz 解压以后出现nginx-1.12.2文件夹,mv nginx-1.12.2 nginx更改文件夹名为nginx,cd ngin...

  •  阳光的雷咩咩 安装好centos6.5在搭建nginx配置环境时出现这种情况应该怎么解决?

    解决办法:关于yum 源更新过程如下 我这里以我目前正在使用的yum 源为例,你也可以参照我的来进行设置。[root@svn ~]# vim /etc/yum.repos.d/CentOS6-Base-163.repo 编辑好以后,清理yum缓存。[root@svn ~]# yum clean all 建立数据缓存 [root@svn ~]# yum makecache 通过上述操作,基本上...

  • anonymous 为什么 centos 7 安装 nginx 后显示 Welcome to nginx on Fedora

    最小化安装centos:关闭selinuxsed–i‘s/SELINUX=enforcing/SELINUX=disabled/g’/etc/selinux/config开始安装nginx1.7.8创建群组groupaddpilerccisnotfound解决方法:yuminstallgccgcc-c++如果有错误提示:./configure:error:theHTTPrewritemodulerequiresthePCRElibrary.Youcaneitherdisablethemodulebyusing–wi...

  • anonymous centos 安装完Nginx后,为什么访问不了

    在centos下尝试使用$curl http://127.0.0.1命令访问nginx。确定是否可以访问。Nginx ("engine x") 是一个高性能的HTTP和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。

檬味博客在线解答立即免费咨询

报错相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部