Download the PostgreSQL installer for Windows from the official PostgreSQL website: Download Link
Run the downloaded installer.
Follow the installation wizard instructions and select the components you want to install. Make note of the port number and password you set during the installation.
You have multiple options for installing PostgreSQL on macOS:
brew install postgresql
.Follow the installation instructions provided by the chosen method.
Update the package list on your system by running the following command:
sudo apt update
sudo dnf update
Install PostgreSQL using the package manager:
sudo apt install postgresql
sudo dnf install postgresql
Once the installation is complete, PostgreSQL should be up and running. Refer to the documentation for your specific Linux distribution on how to start or enable the PostgreSQL service.
Optionally, you can secure your PostgreSQL installation by setting a password for the database superuser account (postgres
).