What are the steps to install Redis on Ubuntu?
The steps to install Redis are as follows:
- Open the terminal and use the following command to update the system software package list:
sudo apt update
- Install Redis using the following command:
sudo apt install redis-server
- After installation is complete, the Redis service will automatically start. You can check the status of the Redis service using the following command.
sudo systemctl status redis-server
- If the Redis service is not running, you can manually start Redis using the following command:
sudo systemctl start redis-server
- To automatically start the Redis service when the system boots up, you can run the following command:
sudo systemctl enable redis-server
After installation, Redis will listen on the default port 6379 and can be accessed for operations through the command line or other client tools.