Install Redis in windows8.1 and windows8.1redis

Source: Internet
Author: User

Install Redis in windows8.1 and windows8.1redis
Something to say

Nowadays, the Internet is playing with distributed caching or distributed databases. When I go to the interview, I will also ask some related knowledge and application scenarios, and I will leave it out before I start. Redis officially only provides the Linux version for download. For windows, you need to go to github for download. By default, github does not seem to be able to open and download windows. I use chrome and it is particularly slow to open the page, in addition, I have installed the red apricot vpn. If you cannot open it, please do not be surprised.

 

1. Download and install

1. https://github.com/downloads/dmajkic/redis/redis-2.4.5-win32-win64.zip. Based on whether your system is 32-bit or 64-bit.

2. decompress the package and create a new Redis folder on drive D. Copy the unzipped files to the folder. There are 7 files in total. The most common ones are redis.conf?redis-server.exe=redis-cli.exe.

 

3. Add the directory where Redis is located to the environment variable so that you can switch the judgment and enter the full path at each command prompt.

 

2. Start the server and client

1. Open the command prompt and enter the command redis-server.exe can also enter redis-server.exe redis. conf. If this parameter is not entered, the redis. conf configuration file is used by default. If yes, the server is enabled and no client connection is available.

2. Open the client and enter redis-cli.exe-h 127.0.0.1-p 6379. The default port is 6379.

 

3. After the client is opened, the server displays the current number of client connections.

 

4. insert value and get value.

 

 

Summary

In the past, there was no application environment to use redis. Now the environment has changed, so you should change your environment and learn and strengthen redis. Another problem is that the doscommand is used to start the server. Every time you need to open a command prompt, how can you use the windows service to open the redis service?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.