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>