导语:
已经将redis加入到etc下,此时服务器启动redis也启动,但是却连不上redis,所有有了以下的过程。
(学习视频分享:redis视频教程)
查看redis 状态:systemctl status redis
● redis.service - redis-server
Loaded: loaded (/usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)
Active: inactive (dead)
发现没启动。
启动后再看看状态:systemctl start redis
[root@VM_0_2_centos /]# systemctl status redis
● redis.service - redis-server
Loaded: loaded (/usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2019-03-21 08:58:08 CST; 5s ago
Process: 26556 ExecStart=/usr/local/bin/redis-server /usr/local/yangsx/redis/redis-3.0.0/redis.conf (code=exited, status=0/SUCCESS)
Main PID: 26557 (redis-server)
CGroup: /system.slice/redis.service
└─26557 /usr/local/bin/redis-server *:6379
重启redis:systemctl restart redis.service
相关推荐:redis数据库教程
以上就是linux下重启redis的方法的详细内容,更多请关注自由互联其它相关文章!