正在设置 redis-server (5:4.0.9-1ubuntu0.2) ...
Job for redis-server.service failed because a timeout was exceeded.
See "systemctl status redis-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript redis-server, action "start" failed.
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: timeout) since Thu 2020-04-09 09:58:28 CST; 6ms ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: 14535 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
dpkg: 处理软件包 redis-server (--configure)时出错:
installed redis-server package post-installation script subprocess returned error exit status 1
正在处理用于 libc-bin (2.27-3ubuntu1) 的触发器 ...
正在处理用于 systemd (237-3ubuntu10.33) 的触发器 ...
正在处理用于 man-db (2.8.3-2ubuntu0.1) 的触发器 ...
正在处理用于 ureadahead (0.100.0-21) 的触发器 ...
在处理时有错误发生:
redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
输入redis-cli能进入到
127.0.0.1:6379>
检查一下ip6是否禁用了:
(ip6需要启用)
#net.ipv6.conf.all.disable_ipv6 = 1 #注释这条。
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1