![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
redis数据库
阿斌001
这个作者很懒,什么都没留下…
展开
-
redis安装
redis官网:https://redis.io/ redis中文网:http://www.redis.cn/ Linux版安装 下载获得redis-5.0.5.tar.gz后将它放入我们的Linux目录/opt /opt目录下,解压命令:tar -zxvfredis-5.0.5.tar.gz 解压完成后出现文件夹:redis-5.0.5 进入目录:cdredis-5.0.5 在...原创 2019-06-23 10:21:21 · 95 阅读 · 0 评论 -
Linux下的gcc安装(从ios的镜像中安装gcc)
虚拟机这3项选对(选完之后要重启系统) 右键光驱在终端打开 进入光驱里面安装几个rpm包 安装光驱里的rpm包 安装完之后执行命令:gcc -v原创 2019-06-23 10:17:05 · 2089 阅读 · 0 评论 -
redis数据库的基本操作
redis默认是16个数据库 查看配置文件:vim /MyRedis/redis.conf select切换数据库 在客户端可以用select + 数字选择第几个数据库 Dbsize查看当前数据库的key的数量 127.0.0.1:6379> SELECT 15 #切换到第15+1个数据库 OK 127.0.0.1:6379> select 0 #切换到第0+1个数...原创 2019-06-23 13:58:40 · 383 阅读 · 0 评论 -
redis类型
redis数据类型很重要 面试常考的有string,list,hash redis常用的五大数据类型 string(字符串) 1.1 string是redis最基本的类型,你可以理解成与Memcached一模一样的类型,一个key对应一个value。 1.2 string类型是二进制安全的。意思是redis的string可以包含任何数据。比如JPG图片或者序列化的对...原创 2019-06-23 14:42:15 · 120 阅读 · 0 评论 -
redis常见数据类型操作命令
redis常见数据类型操作命令: http://redisdoc.com/ http://doc.redisfans.com/ redis键(key)中常用(红色字体是小常用) DEL key #该命令用于在key存在时删除key key * #查看当前数据库的所有key TYPE key #查看key是什么类型 EXISTS key #检查给定...原创 2019-06-23 17:00:34 · 177 阅读 · 0 评论 -
解析redis的配置文件(linux)
标红的是生成环境中经常会遇到的 # Redis comfiguration file example # Redis配置文件样例 # Note on units: when memory size is needed, it is possible to specifiy # it in the usual form of 1k 5GB 4M and so forth: # # 1k =&g...原创 2019-06-24 09:12:16 · 1007 阅读 · 0 评论 -
redis.conf 文件redis-5.0.5版本
# Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argument: # # ./redis-server /path/to/redis.conf # Note ...原创 2019-06-24 11:16:10 · 748 阅读 · 0 评论 -
redis视频
redishttps://www.bilibili.com/video/av47423174/?p=18原创 2019-06-24 12:10:01 · 577 阅读 · 0 评论