After my server rebooted, my Laravel app suddenly crashed, and upon checking the logs, I discovered that the app couldn’t connect to the Redis server.
It’s worth noting that the app was installed on a bare-metal server, not a Docker container, and Redis was installed using apt install redis
.
To confirm Redis installation, I ran apt-cache policy redis
:
As seen, Redis is installed. However, running systemctl status redis
returned:
After researching, I found this post that mentioned:
The problem is that symlink redis-server.service to redis.service was deleted.
So the solution is running the command below:
This created a symlink. Despite this, Redis still didn’t start:
To resolve this, a simple start was needed:
After restarting, checking the status showed that everything was running smoothly: