Nginx configure error: the HTTP rewrite module requires the PCRE library
Issue
When configure nginx 1.19.0, run the commands.
But the following error occurs.
Solution
You need to install pcre.
1. Mac OS
Download pcre
in the official website http://www.pcre.org/, such as pcre-8.44.zip
, and run:
Copy your unzip path of pcre-8.44.zip
, configure nginx again.
2. Ubuntu/Debian
- Use the method from step 1 above.
- On the https://pkgs.org/search/?q=libpcre webpage, find the
libpcre
andlibpcre-dev
packages that match your operating system, download and install. - Use the
apt-get
command.
3. RHEL/CentOS
- Use the method from step 1 above.
- On the https://pkgs.org/search/?q=pcre webpage, find the
pcre
andpcre-devel
packages that match your operating system, download and install. - Use the
yum
command.
分类:
linux
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
2021-11-07 linux下大于2T硬盘格式化方法
2021-11-07 查看修改Linux时区和时间
2019-11-07 python 脚本备份mssql数据库并删除数据库
2019-11-07 python 脚本bak文件还原mssql数据库
2019-11-07 python3 爬虫利用Requests 实现下载进度条
2018-11-07 解决phpmyadmin 遇见的问题