Redis installation failed on version 24.04, how to resolve it?

First, you can resolve the software source issue mentioned in the previous question: Slow software source installation - Other Technical Issues - openEuler Forum.
Then, simply run dnf install -y redis.