Linux下正确开启关闭redis的命令是什么

 4650

Linux下正确开启关闭redis的命令是什么


首先连接xshell,然后执行如下命令即可:

  1. service network restar         #重启网络
  2. ip addr       #查找ip
  3. [root@localhost ~]# cd /usr/local/redis
  4. [root@localhost redis]# ./bin/redis-server ./redis.conf 
  5. [root@localhost redis]# ./bin/redis-cli 
  6. 127.0.0.1:6379> exit
  7. [root@localhost redis]# ./bin/redis-cli shutdown
  8. [root@localhost redis]# ps -ef | grep -i redis



TAG标签:
本文网址:https://www.zztuku.com/index.php/detail-8605.html
站长图库 - Linux下正确开启关闭redis的命令是什么
申明:如有侵犯,请 联系我们 删除。

评论(0)条

您还没有登录,请 登录 后发表评论!

提示:请勿发布广告垃圾评论,否则封号处理!!

    编辑推荐