Installation and configuration under Windows Redis Precautions

Windows under Redis installation configuration and use precautions

 

 

One: Download

download link:

https://github.com/microsoftarchive/redis/releases

File Description:

In this paper 3.2.100 for example
Redis-x64-3.2.100.msi under windows, the easiest installation files, convenient, direct Redis will write windows services.
Redis-x64-3.2.100.zip is a need to extract the installation, mainly about this installation and handling piece.

 

 

II: Installation

Extracting installation:

Redis-x64-3.2.100.zip unzip the downloaded to a custom folder: here to E: \ Redis A Case Study

 

 

Start command:

Redis assigned to the directory by cmd.

Use the command: redis-server.exe to start the service 

Figure:

 

 

This effect appears on the map, indicating successfully start the service. 

Start another cmd, redis in the directory, use the command: redis-cli.exe start the client, the server is connected

 

This effect appears indicating start of customer success.

 

 

Three: deployment

Installation Redis is Windws service:

Although the above start redis service, however, as long as a close cmd window, redis service shut down. Therefore, the redis set a windows service.

Installation command: redis-server.exe --service-install redis.windows-service.conf using a command, the installation is successful, as shown: 

 

 

 

 

 

Commonly used Redis service command:

 

Uninstall service: redis-server.exe --service-uninstall

Open service: redis-server.exe --service-start

Stop Service: redis-server.exe --service-stop

Rename Service: redis-server.exe --service-name name

 

Four: Test

Open the unpacked folder: redis-cli.exe

Write, read and delete operations

 

Installation and testing has been successfully

Five: Configure remote login and password link

Configuring Redis Password:

Open Services Redis, right, find the red box redis.windows-service.conf file, as shown:

 

After finding redis.windows-service.conf file open,

After finding # requirepass foobared written requirepass your password directly under

Figure:

 

 

After modifying the configuration file, be sure to restart Redis service,

After rebooting, open the file again redis-cli.exe, test writing, access and delete operations,

Figure:

 

1. After the write password can be seen from the figure, access and unauthorized deletion will prompt tips

2. to log in via password auth

3. Test password authorization

 

 

 

Configuring Redis remotely connected:

1. Open the file redis.windows-service.conf

2. Locate 127.0.0.1 127.0.0.1 before you can add the # sign, here is the # comment character, as shown:

 

 3. Locate the back of the protected-mode yes to no, as shown:

 

4. Add the server port and to rule out station Redis added to the rule currently in use which, in FIG.

 

 

5. Note: If you are using Ali cloud server security group policy you need to add Ali cloud console, use the port Redis added to the security policy

6. Test remote link to open cmd to the next Redis extract the folder, enter the following command:

redis-cli.exe -h remote ip -p password -a port

Figure:

 

Testing by remote links.

Six: desktop management tools

Recommended Tools:

Redis Desktop Manager

 

 

Seven: .Net using Redis

NuGet StackExchange.Redis found in the following installation, as shown:

 

 

 

After installation can be developed to deal with.

 

So far the document is completed, there is a need for improved large coffee please leave a message. . . . . . . . . Common progress.

Guess you like

Origin www.cnblogs.com/LMJBlogs/p/11550170.html