redis error is an error in the redis database and the components used in combination with it. There are many kinds of errors. Here are some examples:
Redis is configured to save database snapshots, but it cannot currently be persisted to disk. Commands used to modify collection data cannot be used. Please check the Redis log for detailed error information.
Reason: (Recommended learning:Redis video tutorial)
Forced closing of Redis snapshot results in failure to persist.
Solution:
127.0.0.1:6379> set name "hello" (error) NOAUTH Authentication required. 127.0.0.1:6379> (error) NOAUTH Authentication required. (error) ERR unknown command '(error)' 127.0.0.1:6379> auth "root"
After running the config set stop-writes-on-bgsave-error no command, turn off the configuration item stop-writes-on-bgsave-error to solve the problem.
root@ubuntu:/usr/local/redis/bin# ./redis-cli 127.0.0.1:6379> config set stop-writes-on-bgsave-error no OK 127.0.0.1:6379> lpush myColour "red" (integer) 1
Redis (error) NOAUTH Authentication required. Solution
127.0.0.1:6379> auth "yourpassword"
For example password It is 'root'. When authentication problems occur, enter "auth 'root'"
You can enter
127.0.0.1:6379> auth "root"
OK
creating server tcp listening socket 127.0.0.1:6379: bind No error
Error when installing redis under window:
creating server Tcp listening socket 127.0.0.1:6379: bind No error solution
Enter the following commands in order to connect successfully
1. redis-cli.exe
2. shutdown
3. exit
4. redis-server.exe redis.windows.conf
For more Redis related technical articles, please visitRedis database Use the Getting Started Tutorialcolumn to learn!
The above is the detailed content of What does redis error mean?. For more information, please follow other related articles on the PHP Chinese website!