当前位置: 首页 > 工具软件 > script-server > 使用案例 >

dpkg: error processing package redis-server (--configure): installed redis-server package post-inst

尚恩
2023-12-01

阿里云 Ubuntu18 安装Redis报错如下:

dpkg: error processing package redis-server (--configure):  installed redis-server package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:  redis-server E: Sub-process /usr/bin/dpkg returned an error code (1)

原因:redis默认启用IPv6,但是普通的阿里ECS是不支持的

解决:sudo vim /etc/redis/redis.conf

Simply remove the ::1 IPv6 loopback address from the bind config option:

- bind 127.0.0.1 ::1
+ bind 127.0.0.1

 

 类似资料: