1. 简介

REmote DIctionary Server(Redis) 是一个由Salvatore Sanfilippo写的key-value存储系统.

2. 安装

安装方法如下:

# yum install redis hiredis hiredis-devel

3. 启动

先要修改启动文件

# vi /usr/lib/systemd/system/redis.service ExecStart=/usr/bin/redis-server /etc/redis.conf --daemonize no ==> ExecStart=/bin/redis-server /etc/redis.conf --daemonize no ExecStop=/usr/bin/redis-shutdown ==> ExecStop=/bin/redis-shutdown

 

# systemctl start redis
# systemctl enable redis

 

启动失败解决办法

# chown redis:redis -R /var/log/redis/

4. 命令

Redis 客户端的基本语法为

$ redis-cli

 

参考:
<
Redis教程>
<redis基础知识汇总>

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-10-01
  • 2021-04-01
猜你喜欢
  • 2021-04-25
  • 2022-01-06
  • 2022-02-09
  • 2022-12-23
  • 2021-04-12
相关资源
相似解决方案