背景
安装redis,进行相关配置文件修改后,重启失败。网上有很多修改配置信息再重启的方法对我无效,这里给出我最终的解决方案。
错误
Job for redis-server.service failed because a configured resource limit was exceeded. See "systemctl status redis-server.service" and "journalctl -xe" for details.
卸载重新安装,自启动时报错:
解决方案
(1)查看是否端口被占用
netstat -ntpl | grep 6379
(2)杀死6379端口的进程
sudo fuser -k -n tcp 6379
(3)重新安装redis
sudo apt-get install redis-server
(4)查看redis运行状态
systemctl status redis-server