1、获取安装文件

wget http://download.redis.io/redis-stable.tar.gz

 

2、解压文件

tar xzvf redis-stable.tar.gz

 

3、进入目录

cd redis-stable

 

4、编译

make

 

5、安装

make install

 

6、设置配置文件路径

mkdir -p /etc/redis

cp redis.conf /etc/redis

 

7、修改配置文件

vi /etc/redis/redis.conf
仅修改: daemonize yes 

 

8、启动

/usr/local/bin/redis-server /etc/redis/redis.conf

 

9、查看启动

ps -ef | grep redis  

 

10、使用客户端

redis-cli

>set name dana

OK

>get name

"dana"

 

相关文章:

  • 2021-10-01
  • 2021-08-13
  • 2021-07-12
  • 2022-02-09
  • 2021-05-22
  • 2021-05-22
  • 2021-06-17
  • 2021-09-20
猜你喜欢
  • 2021-10-02
  • 2021-08-01
  • 2021-11-06
  • 2021-05-03
  • 2021-09-16
  • 2021-07-01
相关资源
相似解决方案