"Microsoft version" Redis installation startup and setup password <windows>

Source: Internet
Author: User
Tags windows download

Redis

1. Installation

1.1 Download the unpacking package and unzip it directly to any path.

Windows:ttps://github.com/msopentech/redis/releases

  

2. Start

2.1 Boot to start a console as the server, launch the service, and then reopen a console to connect to the service.

Redis-server.exe redis.conf//redis.conf configuration file can be omitted during testing and development, the unpacked package of Windows download does not contain this file, you need to download it yourself

  

2.2 Reopen a console and just start the connection service because there is no password at the beginning, so you can connect to the service without entering it.

Login command:

Redis-cli.exe-h 127.0.0.1-p 6379//No need to add password parameters

3. Set the password

3.1 Password operation

A. Command modification

Config get Requirepass//Get current password
Config set Requirepass "YourPassword"//sets the current password, the service restarts and then defaults to no password;

  

B. Configuration file modification < recommendation >

Open redis.conf< If you do not have this file, you need to download, put to the Redis directory, and find the Requirepass value change password, as follows

# requirepass foobared requirepass yourpassword  //Note here that there must be no space before the line

  

3.2 After you reset your password, log in again to get operational permissions

Redis-cli.exe-h 127.0.0.1-p 6379-a 123456//need to add password parameters

Resources:

1.http://www.runoob.com/redis/redis-install.html

2.http://www.cnblogs.com/langtianya/p/5189234.html

3.https://redis.io/topics/config

4.http://download.redis.io/redis-stable/redis.conf

Category: Redis

"Microsoft version" Redis installation startup and setup password <windows>

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.