Databases

Install Redis

Redis running locally for caching, queues and sessions.

  1. Install Redis
    Terminal
    brew install redis
  2. Start it now and on every login
    Terminal
    brew services start redis

Check it worked

  1. Ping it
    Terminal
    redis-cli ping

    You should see PONG.

Undo it
  1. Stop and uninstall
    Terminal
    brew services stop redis && brew uninstall redis
  1. Install RedisNeeds sudo
    Terminal · Ubuntu / Debian
    sudo apt install -y redis-server
  2. Start it now and on every bootNeeds sudo
    Terminal · Ubuntu / Debian
    sudo systemctl enable --now redis-server

Check it worked

  1. Ping it
    Terminal · Ubuntu / Debian
    redis-cli ping

    You should see PONG.

Undo it
  1. Uninstall RedisNeeds sudo
    Terminal · Ubuntu / Debian
    sudo apt remove -y redis-server
  1. Run Redis in Docker
    PowerShell
    docker run --name redis -p 6379:6379 -d redis

    Redis has no official Windows version, so Docker is the easy way. Install Docker first.

Check it worked

  1. Ping it
    PowerShell
    docker exec -it redis redis-cli ping

    You should see PONG.

Undo it
  1. Remove the container
    PowerShell
    docker rm -f redis