当前位置:网站首页>[redis] it takes you through redis installation and connection at one go
[redis] it takes you through redis installation and connection at one go
2022-07-01 08:05:00 【Lu Yaoye】
Catalog
Redis Installation and use of :Window edition
It's not easy to create , Might as well give the thumbs-up Comment on ️ Collection once
Author's brief introduction : Hello, everyone ! I am a Luyao leaf , You can call me leaf Oh !️
Personal home page :【 Lu Yao Ye's blog 】
Blogger information : Four seasons rotate leaves , Swagger all the way !I hope you can support and make progress together !~️
If it helps , Please 【 Follow the likes collection 】, If I can't, I'll try again !
————————————————
We look forward to more small partners and leaves to enrich the community and grow together 【 Luyao YeYe community 】
Preface
What is? Redis?
Redis Yes, it is C An open source high performance key value pair for language development (key-value) database . It can meet the storage requirements of different scenarios by providing a variety of key data types , So far, Redis The supported key value data types are as follows :
String type string
Hash type hash
List the type list
Collection types set
Ordered set type sortedset
redis Application scenarios of
cache ( Data query 、 Short connection 、 News content 、 Product content and so on ).( Use... At most )
A list of online friends in a chat room .
Task queue .( seckill 、 Rush purchase 、12306 wait )
Application ranking .
Website visit statistics .
Data expiration processing ( It can be accurate to milliseconds )
In distributed cluster architecture session Separate .

Redis Installation and use of :Window edition
The government advocates the use of Linux Version of Redis, So the official website value provides Linux Version of Redis download
If you use window Version of , Need from GitHub Upload and download
What we are going to talk about now is window edition :Redis-x64-3.2.100【 Please contact the blogger if necessary , You can also link and download by yourself 】
1. install
window The installation of version is very simple , decompression Redis The installation of the compressed package is completed

2. Redis Directory structure of
decompression Redis After compressing the package , See the following directory organization :

| Directory or file | effect |
|---|---|
| redis-benchmark | Performance testing tools |
| redis-check-aof | AOF File repair tool |
| redis-check-dump | RDB File checking tool ( Snapshot persistence file ,2.8.9 edition ) |
| redis-cli | Command line client |
| redis-server | redis Server start command |
| redis.windows.conf | redis Core profile |
3. start-up
- Start and shut down : double-click Redis Directory
redis-server.exeYou can start redis service

Redis The port occupied by the service is 6379
4. Common mistakes
error 1: Double click the black window to close it directly , You can use the following solution
Possible causes : Memory is too small , modify redis.window.conf file

error 2: Because the target computer actively refuses , Unable to connect .
5. Registered as window service , It is more convenient
double-click redis-server.exe File open black window , Indicates that the service is running .
If you close the black window , The service was shut down , It is very inconvenient to use .
take redis Registered as window service , You can start it when you start it .
- Installation services : With Administrators Run the command
redis-server --service-install redis.windows.conf
notes : Default service name Redis, uppercase R; If you want to change the service name , Please run the following command :
redis-server --service-install redis.windows.conf --service-name redis

- Remove the service
redis-server --service-uninstall

- Start the service
net start redis

- Out of Service
net stop redis

6. View will Redis Registered as window Whether the service is successful


- Can be found in the service Redis, The statement will Redis Registered as window Service successfully
7. start-up Redis In three ways
- take Redis Registered as window Before service :
- double-click Redis Directory
redis-server.exeYou can start redis service
- double-click Redis Directory
- take Redis Registered as window After the service :
- Command to start :net start redis
- Start in the service

7. Client connection redis
double-click
redis-cli: If you executepingcommand , The output content isPONG, Express redis Connected

install GUI( Graphic tool )
1. Introduce
Use redis-cli Client tools , You must use commands to operate , Low efficiency .
You will use graphical tools to redis Manage the data in the database
redis-desktop-manager-0.9.3.817.exe

2. install
Step one : The wizard

Step two : The license

Step three : Choose where to install

Step four : After installation , Click Finish
3. Connect
Step one : The interface after successful operation

Step two : Connect local redis service

Step three : View the data , as follows , Successful connection

4. common problem
Local redis The service did not start

start-up redis service

Common command
| command | describe |
|---|---|
| ping | redis Client pass ping, Determine whether the service is connected , Server response PONG |
| set | Set string data , set name value |
| get | Get data , get name |
| del | Delete data , del name |

Wrote last
The seasons rotate , There are countless withers , May we walk towards our hearts in the future , Swagger all the way !
Your support is the driving force of my creation
It's not easy to create , Might as well give the thumbs-up Comment on ️ Collection once
Thank you for your support , Welcome to generous with your criticism

边栏推荐
- 图扑软件通过 CMMI5 级认证!| 国际软件领域高权威高等级认证
- Keithley 2100 software 𞓜 Keithley2400 test software ns SourceMeter
- Five combination boxing, solving six difficult problems on campus and escorting the construction of educational informatization
- Deep learning systematic learning
- PWN攻防世界int_overflow
- 【入门】取近似值
- Lm08 mesh series mesh inversion (fine)
- 【mysql学习笔记28】存储函数
- SharePoint - modify web application authentication using PowerShell
- 2022 electrician (intermediate) recurrent training question bank and answers
猜你喜欢

2022 electrician (intermediate) recurrent training question bank and answers

Android screen adaptation (using constraintlayout), kotlin array sorting

【入门】取近似值

Introduction to kubernetes resource objects and common commands (II)

base64

【入门】输入n个整数,输出其中最小的k个

Erreur de hauteur du clavier souple
![[kv260] generate chip temperature curve with xadc](/img/fc/e5e4648b09b1123b2d494b75a9f8f7.png)
[kv260] generate chip temperature curve with xadc

Office365 - how to use stream app to watch offline files at any time

She is the "HR of others" | ones character
随机推荐
事务方法调用@Transactional
[question brushing] character statistics [0]
Connect timed out of database connection
【批处理DOS-CMD-汇总】扩展变量-延迟变量cmd /v:on、cmd /v:off、setlocal enabledelayedexpansion、DisableDelayedExpansion
The H5 page has set the font thickness style, but the wechat access style in Huawei mobile phone doesn't take effect?
2022 electrician (intermediate) recurrent training question bank and answers
uni 热更新
凸印的印刷原理及工艺介绍
【力扣10天SQL入门】Day9 控制流
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
2022 operation of refrigeration and air conditioning equipment operation of national question bank simulated examination platform
QT -- 1. QT connection database
【mysql学习笔记27】存储过程
She is the "HR of others" | ones character
[getting started] extract non repeating integers
[untitled]
5大组合拳,解决校园6大难题,护航教育信息化建设
Aardio - Method of self constructed geticonhandle
程序员养生宝典
Instead of houses, another kind of capital in China is rising