When the project starts, a redis connection exception is reported
Then check that the redis connection is rejected by the computer
Solution
Open the redis installation folder
First open redis-servce.exe hangs, and then open redis-cli.exe will not pop up the problem of being rejected. And this method does not need to enter commands in cmd every time.