当前位置:网站首页>Redis installation
Redis installation
2022-07-19 04:57:00 【dzl84394】
get set
yum install gcc gcc-c++ automake autoconf libtool
Official installation
$ 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
see rejson and seach Of moudle.json file , View the appropriate version , Maximum 6.0.8
wget https://download.redis.io/releases/redis-6.0.6.tar.gz
newspaper Hint: It’s a good idea to run ‘make test’
function
make test
newspaper You need tcl 8.5 or newer in order to run the Redis test error
download
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
start-up
$ 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
- download
https://redis.com/redis-enterprise-software/download-center/modules/
To log in
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
- explain
https://oss.redis.com/redisjson/ - install zip decompression
yum install -y unzip zip - Unzip the file
unzip rejson.Linux-rhel7-x86_64.2.0.6.zip
obtain module.json,rejson.so2 File
mkdir -p /usr/local/redis/{bin,etc,db,log,modules}
make
make PREFIX=/usr/local/redis install
make clean Just clear the previously compiled executable and configuration files .
and make distclean To clear all generated files .
Put the downloaded file inside conf Copy the file to the destination
cp /usr/local/redis-5.0.3/redis.conf /usr/local/redis/bin/
Add inside
loadmodule /usr/local/redis/modules/module-enterprise.so
loadmodule /usr/local/redis/modules/rejson.so
View installed 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
边栏推荐
猜你喜欢

Introduction to redis

Project team summer vacation summary 02
![[Lipschitz] simulation of Lipschitz Lipschitz exponent based on MATLAB](/img/72/c69ed6e5538169c362b7b4bab36d5e.png)
[Lipschitz] simulation of Lipschitz Lipschitz exponent based on MATLAB

Hightec new aurix tc37x demo project

UE-插件 ElectronicNodes 5.0.0/4.23-4.27

Tasking new aurix tc37x demo project

Learn about scheduled tasks in one article

shardingsphere的核心概念和快速实战

Emqx pressure test tread pit for your reference
[email protected]: `node install.js` 的问题"/>解决[email protected]: `node install.js` 的问题
随机推荐
2022 latest version of campus errand applet source code
知识图谱de构建与应用(六):知识图谱的存储、服务与质量
Mongo Db单机版的安装和快速使用
DSL search results processing, including sorting, paging, highlighting
[论文精读]BERT
Construction and application of knowledge atlas de (V): knowledge reasoning
thinkphp 官网教程
Tidb performance analysis and optimization
UE plug-in electronicnodes 5.0.0/4.23-4.27
Add SSL certificate for load balancing
sleuth入门
JS中substr与substring的区别
Emqx pressure test tread pit for your reference
Conception finale: système distribué de gestion de la santé pour la prévention des épidémies hautement simultanées basé sur vue + socket + redis
面临的挑战和优势,并预测NeRF最终将取代Deepfake
Tidb learning
高等数学笔记:复合函数的二阶导数与参数方程求解曲率
高等数学笔记:关于等价无穷小替换的一个猜想
Basic operations of index library operation
根据日期重新排列数据js