当前位置:网站首页>redis 安装
redis 安装
2022-07-17 05:02:00 【dzl84394】
预备
yum install gcc gcc-c++ automake autoconf libtool
官方安装
$ wget https://download.redis.io/releases/redis-6.2.6.tar.gz
$ tar xzf redis-6.2.6.tar.gz
$ cd redis-6.2.6
$ make
看rejson和seach的moudle.json文件,查看适合版本,最大6.0.8
wget https://download.redis.io/releases/redis-6.0.6.tar.gz
报 Hint: It’s a good idea to run ‘make test’
运行
make test
报You need tcl 8.5 or newer in order to run the Redis test 错误
下载
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
tar -zxvf tcl8.6.1-src.tar.gz
cd tcl8.6.1/
cd unix/
./configure
make
make install
启动
$ src/redis-server
./redis-server redis.conf
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"
json
yum install gcc gcc-c++ automake autoconf libtool
- 下载
https://redis.com/redis-enterprise-software/download-center/modules/
要登录
https://redismodules.s3.amazonaws.com/rejson/rejson.Linux-rhel7-x86_64.2.0.6.zip
https://s3.amazonaws.com/redismodules/redisearch/redisearch.Linux-rhel7-x86_64.2.2.6.zip
- 说明
https://oss.redis.com/redisjson/ - 安装zip解压
yum install -y unzip zip - 解压文件
unzip rejson.Linux-rhel7-x86_64.2.0.6.zip
得到module.json,rejson.so2个文件
mkdir -p /usr/local/redis/{bin,etc,db,log,modules}
make
make PREFIX=/usr/local/redis install
make clean仅仅是清除之前编译的可执行文件及配置文件。
而make distclean要清除所有生成的文件。
把下载过来的文件里面的conf文件复制到目标地
cp /usr/local/redis-5.0.3/redis.conf /usr/local/redis/bin/
里面添加
loadmodule /usr/local/redis/modules/module-enterprise.so
loadmodule /usr/local/redis/modules/rejson.so
查看已经装的module
module list
JSON.SET foo1 . ‘“bar”’
JSON.get foo1
https://www.xttblog.com/?p=1606
https://segmentfault.com/a/1190000041208585
https://www.jianshu.com/p/f5ae8a79bd68
https://oss.redis.com/redisearch/Quick_Start
FT.CREATE i_index1 ON JSON PREFIX 1 “doc:” SCHEMA $.a TEXT SORTABLE $.b TEXT SORTABLE
JSON.SET doc:001 $ ‘{“a”:2, “b”: 301}’
JSON.SET doc:002 $ ‘{“a”:3, “b”: 302}’
FT.CREATE i_index1 ON JSON LANGUAGE chinese SCHEMA $.title TEXT
FT.CREATE idx:movie ON hash PREFIX 1 “movie:” SCHEMA title TEXT SORTABLE release_year NUMERIC SORTABLE
边栏推荐
- 数据库与开源的未来
- TiDB 性能分析和优化
- 【英雄哥七月集训】第 16天:队列
- Database learning notes (I) retrieval data
- Only when the data analysis report is written in this way can we really understand the data
- ThinkPHP official website tutorial
- Unit UMP Packaging Black Screen issue Summary
- Multiple connections will be maintained for each provider instance
- Rk1126 realizes picture in picture function picture in picture for rk 1126
- [vuforia] simple logic of image recognition
猜你喜欢

TiDB 性能优化概述
![[FPGA tutorial case 27] realize dual port RAM ping-pong structure through Verilog](/img/64/211c5a6d6e0a8701136fa969d6d9e4.png)
[FPGA tutorial case 27] realize dual port RAM ping-pong structure through Verilog

Only when the data analysis report is written in this way can we really understand the data

Easyexcel easy to use

Extreme video compression using the pellet toolbox

数据库与开源的未来
![Fudan micro fmql (domestic zynq) [PS of IAR bare metal development] - non byte aligned access](/img/e7/8349da2c240ac8f51524e5e51bd4d6.png)
Fudan micro fmql (domestic zynq) [PS of IAR bare metal development] - non byte aligned access

赚钱大师小程序【最新版5.9.9】商城/佣金即时提现/分销推广/话费充值/美团饿了么外卖

Virtual lab basic experiment tutorial -7 Polarization (3)

C language dynamic memory development and flexible array
随机推荐
Blessing for the elderly popular short video wechat applet source code download support traffic master
Pytorch image models (Timm) library
Quickly master Mipi development strategy
Hightec new aurix tc37x demo project
知识图谱de构建与应用(七):大规模知识图谱预训练
复旦微FMQL(国产Zynq) 【IAR裸机开发之PS】——非字节对齐访问
Water and electricity meter reading and recharge management system in Colleges and universities in property community
Only when the data analysis report is written in this way can we really understand the data
Base64与文件互转
Overview of CKA core knowledge points
记录一次存储过程批量修改表结构
Unity UMP打包黑屏問題總結
Real time Bi (IV) low cost data quasi real time processing idea
Introduction to redis
知识图谱de构建与应用(六):知识图谱的存储、服务与质量
快速掌握MIPI开发攻略
shardingsphere内核原理
Usage scenarios and usage of judgment and rounding down in MySQL
Summary of black screen problems in unity UMP packaging
Wechat applet source code of high imitation Netease cloud music UI