redis的各种配置都是在redis.conf文件中进行配置的. 有关其每项配置的中文详细解释如下: 附redis.conf英文原版: # Redis configuration file example # Note on units: when memory size is needed, it is possible to specify # it in the usual form of 1k 5GB 4M and so forth: # # 1k => 1000 bytes # 1kb
一.离线部署redis 由于博主部署的虚拟机没有网络也没有gcc编译器,所以就寻找具备gcc编译器的编译环境把redis编译安装好,Copy Redis安装目录文件夹到目标虚拟机的目录下.copy时redis-sentinel文件要先复制到安装目录外的其他目录,才能复制到编译环境外部,直接从安装目录复制到编译环境外会失败. 1.1 环境 l Linux-EulerOS_CSP_19.1.0.B068 l Redis-3.0.7.tar.gz l 虚拟机无网络连接 1.2
解读下 redis.conf 配置文件中常用的配置项,为不显得过于臃长,已选择性删除原配置文件中部分注释. # Redis must be started with the file path as first argument: # ./redis-server /path/to/redis.conf ## redis中的度量单位只支持bytes,不支持bit,大小写不敏感,且 k/kb.m/mb.g/gb 代表的单位大小有所不同. # 1k => 1000 bytes # 1kb => 1
# 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启动命令 # # ./redis-server /path/to/redis.conf # Note on units: when memory size is needed, i