Blogger Information
Blog 61
fans 1
comment 0
visits 69577
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
0725-redis安装
我的博客
Original
998 people have browsed it

1、redis.io 官网复制下载链接,用wget 下载 到home文件夹

2、解压 tar -zxvf

3、redis数据存储在内存,由于redis 是用C语言写的,所以用make命令进行编译 才会出现安装包

4、进入./src 启动./redis-server ../redis.conf 启动服务,后者是配置文件,可以修改配置文件来安装redis-server服务,redis-cli是redis程序,可以执行redis命令

5、 修改配置文件 https://blog.csdn.net/qq_42403743/article/details/81358676  ,让redis-server可以后台运行


6、 set name liangwei EX 10   设置变量name 值为 liangwei ,且存在时间为10秒

      get name  获取数据

      del name 删除数据

1.png

Correction status:qualified

Teacher's comments:步骤完整
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post