ubuntu uninstall redis code example

Example 1: ubuntu uninstall redis

sudo apt-get purge --auto-remove redis-server

# Check if there is any packages left
apt list --installed | grep redis

Example 2: install redis ubuntu

sudo apt update
sudo apt install redis-server

sudo systemctl restart redis.service

sudo systemctl status redis

redis-cli

Example 3: restart redis ubuntu

# restart redis service
sudo service redis-server restart

# stop redis service
sudo service redis-server stop

Example 4: uninstall redis ubuntu terminal

apt-get purge --auto-remove redis-servers
# check if the package is present or not
apt-cache policy redis-server

Example 5: locate redis.conf on ununtu / linux

sudo micro /etc/redis/redis.conf