Redis Server Setup Tutorial

Install and Config

  • sudo apt update
  • sudo apt install redis-server
  • sudo nano /etc/redis/redis.conf ↓

supervised no >> supervised systemd

  • save and exit
  • redis-server /etc/redis/redis.conf 

During the installation, can’t write redis-server.pid error may occur, but it’s OK. Just ignore it.

We can also install redis-server by the official tutorial:

https://redis.io/topics/quickstart >>

wget http://download.redis.io/redis-stable.tar.gz

tar xvzf redis-stable.tar.gz

cd redis-stable

make

  • sudo cp src/redis-server /usr/local/bin/ (or /usr/bin/ my default PATH environment is this one.)
  • sudo cp src/redis-cli /usr/local/bin/