From the course: Apache Airflow Essential Training

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Installing PostgreSQL on WSL

Installing PostgreSQL on WSL

- [Instructor] Since Airflow only works on Linux-based devices, you can run Airflow on a MacOS device, a Linux distribution, or on Windows systems for Linux. I'm running WSL2 on my Windows machine, and I'm going to go to my Ubuntu distribution. The first thing I'm going to do here is run sudo apt update to make sure that my package management tool is up to date. Once this is done, I'm going to run sudo apt upgrade to ensure that I have the latest components, which I can then install on my Linux distribution. Installing PostgreSQL on any Linux distribution is super straightforward. I call sudo apt install PostgreSQL, and this will download and install the latest version of Postgres on my machine. Once PostgreSQL has been installed, let's check the status of the PostgreSQL service. Run sudo service PostgreSQL status. You can see that the service is down. Let's bring the service up and for that, you run a simple command sudo…

Contents