当前位置:网站首页>[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

边栏推荐
- Teach you how to apply for domestic trademark online step by step
- 源代码加密的意义和措施
- 2022 test question bank and simulation test of tea master (primary) operation certificate
- 2022 operation of refrigeration and air conditioning equipment operation of national question bank simulated examination platform
- SQL number injection and character injection
- Caesar
- Aardio - 阴影渐变文字
- Gdip - hatchbrush pattern table
- Significance and measures of source code encryption
- Oracle create auto increment ID
猜你喜欢

Gru of RNN

Software testing methods and techniques - overview of basic knowledge

Connect timed out of database connection

OJ输入输出练习
![[batch DOS CMD summary] extension variables - delay variables CMD /v:on, CMD /v:off, SETLOCAL enabledelayedexpansion, disabledelayedexpansion](/img/ce/6c9e4f2c54710610e8b1f68d6d8088.png)
[batch DOS CMD summary] extension variables - delay variables CMD /v:on, CMD /v:off, SETLOCAL enabledelayedexpansion, disabledelayedexpansion

Latex table

The triode is a great invention
![[question brushing] character statistics [0]](/img/cc/f5aaecd920c502180303d92447e54f.png)
[question brushing] character statistics [0]

How to make the two financial transactions faster

Gdip - hatchbrush pattern table
随机推荐
力扣每日一题-第31天-1502.判断能否形成等差数列
【入门】截取字符串
Set up file server Minio for quick use
golang中的正则表达式使用注意事项与技巧
Long way to go with technology
如何使用layui将数据库中的数据以表格的形式展现出来
[MySQL learning notes 26] view
PWN攻防世界int_overflow
web254
web254
postgresql源码学习(26)—— Windows vscode远程调试Linux上的postgresql
Cyclic neural network
[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions
Caesar
Differential: definition of total differential, partial derivative, gradient
Uni hot update
Vhost kick & call principle
【Redis】一气呵成,带你了解Redis安装与连接
【入门】提取不重复的整数
Missing API interface actual development series (14): ID card real name authentication verification