say again
1. Installation
1.1 Download the decompression package and decompress it directly to any path
Windows download address: ttps://github.com/MSOpenTech/redis/releases
2. Start
2.1 To start, you must first open a console as a server, start the service, and then reopen a console to connect to the service for operation.
redis-server.exe redis.conf //redis.conf configuration file can be omitted during testing and development, the decompression package downloaded by windows does not contain this file, you need to download it yourself
2.2 Re-open a console and just start connecting to the service. Because there is no password initially, 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 a password
3.1 Password operation
a. Command modification
config get requirepass // Get the current password
config set requirepass "yourpassword" //Set the current password, and it will be set to the default after the service is restarted, that is, no password; this method is not recommended
b. Configuration file modification <recommended>
Open redis.conf <If you don't have this file, you need to download it yourself and place it in the redis directory>, find the requirepass value and change the password, as follows
# requirepass foobared requirepass yourpassword //Note here that there can be no spaces before the line
3.2 After resetting the password, log in again to obtain the operation authority
redis-cli.exe -h 127.0.0.1 -p 6379 -a 123456 //The password parameter needs to be added
References:
1.http://www.runoob.com/redis/redis-install.html
2. http://www.cnblogs.com/langtianya/p/5189234.html