導語:
已經將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 Ex: 265556 /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#service
相關推薦:
redis資料庫教學以上是linux下重啟redis的方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!