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

边栏推荐
- Chinese font Gan: zi2zi
- empirical study and case study
- Vhost kick & call principle
- Sorting out tcp/udp communication problems
- Latex table
- Li Kou daily question - Day 32 -1822 Symbol of array element product
- How to use layui to display the data in the database in the form of tables
- 0 basic introduction to single chip microcomputer: how to use digital multimeter and precautions
- PHP laravel wechat payment
- PWN攻防世界int_overflow
猜你喜欢
![[introduction] approximate value](/img/6b/597178d848dd21110f36601fc31092.png)
[introduction] approximate value

IMDB practice of emotion classification (simplernn, LSTM, Gru)

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

Latex formula code

LM08丨网格系列之网格反转(精)
![[getting started] input n integers and output the smallest K of them](/img/b8/20852484f10bc968d529e9c1ff5480.png)
[getting started] input n integers and output the smallest K of them

Eigen matrix operation Library

Software testing methods and techniques - overview of basic knowledge

The triode is a great invention

Vhost kick & call principle
随机推荐
【网站架构】一招搞定90%的分布式事务,实打实介绍数据库事务、分布式事务的工作原理应用场景
2022.6.30 省赛+蓝桥国赛记录
【mysql学习笔记25】sql语句优化
Li Kou daily question - day 31 -202 Happy number
2022 tea master (intermediate) recurrent training question bank and answers
【入门】输入n个整数,输出其中最小的k个
Teach you how to apply for domestic trademark online step by step
[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions
[untitled]
【mysql学习笔记27】存储过程
Php laraver Wechat payment
Cmake I two ways to compile source files
The Windows C disk is full
【批处理DOS-CMD命令-汇总和小结】-Cmd窗口中常用操作符(<、<<、&<、>、>>、&>、&、&&、||、|、()、;、@)
【入门】截取字符串
Array: question brushing record
Wang Yingqi, founder of ones, talks to fortune (Chinese version): is there any excellent software in China?
Missing API interface actual development series (14): ID card real name authentication verification
Aardio - Method of self constructed geticonhandle
Access report realizes subtotal function