当前位置:网站首页>Installation and startup of redis
Installation and startup of redis
2022-06-26 00:56:00 【Software testing Xiaobai】
One 、redis brief introduction :
Concept :Redis yes One Open source ( Free of charge ) High performance key-value ( A name corresponds to a value , For example, a name corresponds to a person ) Of database .reids Born in 2009 year .
Redis Application scenarios : Hot data ( Microblog hot search , hot news ), Count ( Statistics of likes , Click count ), Message queue ( Commodity seckill , Rush purchase ), Ranking List , The shopping cart , Luck draw , User recommendation, etc
Redis characteristic :
1、 High performance
2、 Support multiple data structures
character string string
list list
Hash hash
aggregate set
Sortable sets sorted_set
3、 Data persistence , Data recovery can be done
Two 、Redis Download and install (linux)
1、 Official website https://redis.io/ Download the corresponding version , use xftp Upload to linux On
2、 adopt wget download :
http://download.redis.io/releases/, Select the version and right-click the copy link

3、 Enter a command on the server :
wget
http://download.redis.io/releases/redis-6.0.0.tar.gz

4、 decompression :tar -zxvf redis-6.0.0.tar.gz

5、 Get into redis Catalog , compiling :make ( If an error :gcc:not found , You need to install gcc, perform :yum -y install gcc )

6、redis Execute under directory :make install ( Add commands to environment variables /usr/local/bin in )


3、 ... and 、Redis Startup and shutdown
start-up :
1、 The front desk starts :redis-server
2、 Background start :redis-server & ( recommend )

3、 Specify profile startup redis service :
redis-server redis.conf &
close :
1、kill Order to kill the process

2、redis-cli shutdown

Four 、Redis client
redis-cli yes Redis Built in client program , Connect to Redis The server , The implementation and Redis Server interaction . We use the client to execute redis The order of .
1、 Start command :redis-cli ( Default connection 127.0.0.1, Port number 6379 Of redis service )

2、 Specify the port start command :redis-cli -p Port number
3、 Appoint ip The address specifies the start command of the port number :redis-cli -h ip Address -p Port number
4、 Exit client :exit

After entering the client, you can use the command to redis operation .
welfare

边栏推荐
- Flex & Bison 开始
- 认识map
- Redisson 3.17.4 发布
- How to deliver a shelter hospital within 48 hours?
- Dynamic verification code
- Compile the telegraph desktop side (tdesktop) using vs2022
- 1-10Vmware构建自定义的网络架构
- "Seamless" deployment of paddlenlp model based on openvinotm development kit
- Leetcode 513. Find the value in the lower left corner of the tree
- 4 key points to help the product manage the project well
猜你喜欢

11.1.1 overview of Flink_ Flink overview

JS逆向案例:破解登录密码

Compiler Telegram Desktop end (tdesktop) en utilisant vs2022

Example: use C # Net to teach you how to develop wechat official account (21) -- using wechat to pay online collection: H5 method

Leetcode 513. Find the value in the lower left corner of the tree

DPVS fullnat mode management

Idea view unit test coverage

【图像检测】基于高斯过程和Radon变换实现血管跟踪和直径估计附matlab代码

随便画画的

Stream data
随机推荐
Penetration tool -burpsuite
The development context of Ba Kong Yuan universe industry
[机缘参悟-30]:鬼谷子-内揵篇-同理心,站在对方的立场,拉近与对方的心理距离
Typescript for Web Learning
Send mail tool class
What training brings happiness
"Method not allowed", 405 problem analysis and solution
Why is it best to use equals for integer comparisons
1-9Vmware中网络配置
Reentrant functions must be used within signal processing functions
Leetcode 513. Find the value in the lower left corner of the tree
About EF page turning query database
Endnote IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS/TIE/TPEL 参考文献格式模板
Typescript for Web Learning
jarvisoj_ level2_ x64
mongodb
ASP.NET cache缓存的用法
How to deliver a shelter hospital within 48 hours?
【图像检测】基于高斯过程和Radon变换实现血管跟踪和直径估计附matlab代码
Web学习之TypeScript