阿里云 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