Setting up Redis, Postgres, and Node on Ubuntu
In this section, we will install our main requirements onto our Linux server. We already covered the setup and configuration of Redis in Chapter 13, Setting Up a Session State Using Express and Redis, but let's do it one final time since we will now all have the same underlying OS.
Setting up Redis
In this section, we will install our Redis server and configure it for our application:
- On your terminal, log in to the server and run these two commands:
sudo apt update sudo apt install redis-server
Apt
is a software dependency packaging tool for Linux distributions such as Ubuntu and Debian. Its roughly comparable to NPM. So here, we are updating ourapt
to the latest version and then using it to install Redis. - Once the installation is complete, open the
redis.conf
file like this:sudo nano /etc/redis/redis.conf
- Find the
requirepass
entry, uncomment it, and then add your own password.Warning
The password in the source...