install redis on ubuntu code example
Example 1: how to install redis in ubuntu
sudo apt update
sudo apt install redis-server
sudo nano /etc/redis/redis.conf
supervised systemd
sudo systemctl restart redis.service
sudo systemctl status redis
redis-cli
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: redis ubuntu install
sudo add-apt-repository ppa:redislabs/redis
sudo apt-get update
sudo apt-get install redis-server
sudo systemctl enable redis-server
sudo systemctl daemon-reload
Example 4: redis install ubuntu
sudo apt update
sudo apt install redis-server
sudo systemctl status redis
sudo systemctl stop redis
sudo systemctl restart redis.service
redis-cli
127.0.0.1:6379> ping
PONG
set test "It's working!"
OK
get test
"It's working!"
>sudo nano /etc/redis/redis.conf
Scroll to the SECURITY section and look for a commented directive that reads:
Uncomment it by removing the
Login form redis cli
127.0.0.1:6379>auth your_redis_password
Example 5: redis ubuntu install
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
Example 6: redis install ubuntu
$ wget https://download.redis.io/releases/redis-6.2.3.tar.gz
$ tar xzf redis-6.2.3.tar.gz
$ cd redis-6.2.3
$ make