首页 新闻 搜索 专区 学院

ubuntu安装redis报错

0
悬赏园豆:15 [待解决问题]

正在设置 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)


然后我把bind改成127.0.0.1,再启动redis。又报错:
Job for redis-server.service failed because a timeout was exceeded.
See "systemctl status redis-server.service" and "journalctl -xe" for details.

输入redis-cli能进入到
127.0.0.1:6379>

啊图啊的主页 啊图啊 | 初学一级 | 园豆:188
提问于:2020-04-09 10:08
< >
分享
所有回答(1)
0

检查一下ip6是否禁用了:

(ip6需要启用)

vim /etc/sysctl.conf

#net.ipv6.conf.all.disable_ipv6 = 1 #注释这条。

net.ipv6.conf.eth0.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

悟行 | 园豆:12328 (专家六级) | 2020-04-09 12:43
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册