
先連接xshell,然後執行以下指令即可:
(學習影片分享:程式設計影片)
1 2 3 4 5 6 7 8 | service network restar #重启网络
ip addr #查找ip
[root@localhost ~]# cd /usr/local/redis
[root@localhost redis]# ./bin/redis-server ./redis.conf
[root@localhost redis]# ./bin/redis-cli
127.0.0.1:6379> exit
[root@localhost redis]# ./bin/redis-cli shutdown
[root@localhost redis]# ps -ef | grep -i redis
|
登入後複製
相關推薦:redis資料庫教學
以上是linux下正確開啟關閉redis的指令是什麼的詳細內容。更多資訊請關注PHP中文網其他相關文章!