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
- On your terminal, log in to the server and run these two commands:
sudo apt update sudo apt install redis-server
Aptis a software dependency packaging tool for Linux distributions such as Ubuntu and Debian. Its roughly comparable to NPM. So here, we are updating our
aptto the latest version and then using it to install Redis.
- Once the installation is complete, open the
redis.conffile like this:
sudo nano /etc/redis/redis.conf
- Find the
requirepassentry, uncomment it, and then add your own password.
The password in the source...