I found an error when I went to use Jedis to connect my redis server today.
After Baidu let me go to Redis to set the password, and then
Auth Password
How to get into Redis server
In the Redis Bin folder, Redis-cli can go in. How to set a password for Redis server
Enter redis.conf with VI
And then
/requirepassword
Press N to find the next, you can find the following image of this line, open the # number to set the password
Actually, it's not here.
I didn't get out of the question either, listening to people say it was because of the cache.
Then I restarted the Redis server and canceled the setup password, and the connection was successfully restarted Redis server
Ps-ef | grep redis
Kill PID * * * * *
redis-server. /redis.conf
Basically this is the three commands, first kill the process is launched, and then start on the line, because I have more than one configuration file, so each boot it is best to specify which configuration file, to avoid errors.
From: http://blog.csdn.net/bug_moving/article/details/60462846