banxian-yi

Linux下停止和启动redis

1.停止redis (进入redis安装目录)

[root@JDu4e00u53f7 redis]# ./bin/redis-cli shutdown

2. 启动redis

[root@JDu4e00u53f7 redis]# ./bin/redis-server /usr/local/redis/etc/redis.conf

3.使用redis

[root@JDu4e00u53f7 redis]# ./bin/redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> keys*
(error) ERR unknown command \'keys*\'
127.0.0.1:6379> 



分类:

技术点:

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-12-06
猜你喜欢
  • 2022-02-09
  • 2021-08-21
  • 2021-09-17
  • 2022-12-23
  • 2022-01-31
  • 2021-04-27
  • 2021-11-25
相关资源
相似解决方案