Redis installation and configuration

Table of Contents of Series Articles

Chapter 1 Application of Java Thread Pool Technology
Chapter 2 Application of CountDownLatch and Semaphone
Chapter 3 Introduction to Spring Cloud< a i=3>Chapter 4 Spring Cloud Netflix - EurekaChapter 5 Spring Cloud Netflix - RibbonChapter 6 Spring Cloud - OpenFeign< a i=6>Chapter 7 Spring Cloud's GateWayChapter 8 Spring Cloud Netflix's HystrixChapter 9 Code Management GitLab UsageChapter 10 Nacos discovery of Spring Cloud AlibabaChapter 11 Nacos Config of Spring Cloud AlibabaChapter 12 Sentinel of Spring Cloud AlibabaChapter 17 Installing Redis and configuring environment variables on Windows systemsChapter 16 spring-cloud-streamChapter 15 RabbitMQ Delay QueueChapter 14 RabbitMQ ApplicationChapter 13 JWT













Recommend an artificial intelligence learning website:AI artificial intelligence
Insert image description here
Insert image description here



Preface

The full name of Redis is Remote Dictionary Server (remote dictionary service). It is a memory-based key-value non-relational (NoSQL) database written in C language by Italian Salvatore Sanfilippo.
Different from SQL-type databases, Redis does not provide the operation of creating a new database because it comes with 16 (0-15) databases (0 database is used by default). In the same library, the key is the only one that exists and no duplication is allowed.
The Redis system architecture is mainly divided into two parts:

  • Redis server
  • Redis client
    Redis is used to cache some frequently accessed hot data or content that requires a lot of resources. By putting this content into Redis, applications can Read them quickly.

1. Download and windows installation

https://github.com/tporadowski/redis/releases/download/v5.0.14.1/Redis-x64-5.0.14.1.zip
Download and extract to D drive redis directory
Insert image description here

1.1. Start the server program

Double-click redis-server.exe
Insert image description here

1.2. Start the client program

Double-click redis-cli.exe
Insert image description here

1.3. Create redis service

Register service
redis-server.exe --service-install redis.windows.conf --loglevel verbose
Insert image description here
Log level: warning: warning message notice: Applicable to production mode. verbose (verbose): Contains a lot of less useful information, but is simpler than debug.
debug: will print out a lot of information, suitable for development and testing phases.


1.4. Start the service

redis-server --service-start
Insert image description here

1.4.1. Configure environment variables and start the client

Insert image description here
Insert image description here
Uninstall the service: redis-server --service-uninstall
Start the service: redis-server --service-start
Stop the service: redis- server --service-stop

Summarize

To install Redis under Windows system, download the releases installation package directly from the official website or github, then register the service and configure Windows environment variables. Finally, you can start the service through the [redis-server --service-start] command, [redis-server --service- stop] command to stop the service.

Guess you like

Origin blog.csdn.net/s445320/article/details/134361033