Home > Database > Redis > What does redis error mean?

What does redis error mean?

(*-*)浩
Release: 2022-06-07 13:40:29
Original
10987 people have browsed it

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:

What does redis error mean?

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"
Copy after login

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
Copy after login

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 Tutorial column 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template