./configure:error:the HTTP rewrite module requires the PCRE library. 离线安装pcre-CSDN博客

参考第一个链接安装  首先安装pcre下面有下载链接 麒麟只缺这一个依赖,其他的gcc出厂就有

 对应下载地址:

pcre:PCRE Activity

Nginx安装步骤——离线安装与在线安装详解_nginx离线安装-CSDN博客

修改nginx的配置文件 先执行 whereis nginx查看安装目录,不然容易改成解压后包里面的

安装成功:

安装redis会报错

51537:C 18 Jun 2025 17:41:34.598 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[系统未激活][root@localhost redis-7.2.0]# sysctl vm.overcommit_memory=1
直接执行这个命令

sysctl vm.overcommit_memory=1

注意事项:一定要修改bind 为0.0.0.0 不然连接不上

CentOS 7下载安装Redis(超详细,亲测可行)_centos 安装redis-CSDN博客

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐