When connecting to the server redis locally, it was found that the connection failed. This is because redis on the server is running in protected mode, and remote connections cannot be made in this mode. Just modify the redis.conf file in the redis directory, find protected-mode yes , and change yes to no to successfully connect.
By the way,
1. Comment out bind 127.0.0.1, and start the connection to the outside world.
2. When daemonize is set to yes, open redis to run in the background