To install Redis server on Ubuntu Linux 16.04, you can use the package manager apt-get
. Here’s the step by step guide:
-
Update the package index:
$ sudo apt-get update
-
Install Redis:
$ sudo apt-get install redis-server
-
Verify the installation:
$ redis-cli ping
PONG
If you receive a
PONG
response, the Redis server has been installed and is running. -
Start Redis service automatically on system boot:
sudo systemctl enable redis-server.service
Note: By default, the Redis server listens on port 6379 and can be configured by editing the /etc/redis/redis.conf
file. After making changes to the configuration file, you will need to restart the Redis service for the changes to take effect.