Created
July 1, 2021 19:44
-
-
Save filipechagas/b6823f1f1325905504e20417841be928 to your computer and use it in GitHub Desktop.
Setting up PostgreSQL in Manjaro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pacman -S postgresql postgis | |
sudo su postgres -l # or sudo -u postgres -i | |
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/' | |
exit | |
sudo systemctl enable --now postgresql.service | |
sudo su postgres -c psql | |
CREATE USER deployer WITH PASSWORD 'eldeployerloco'; | |
ALTER ROLE deployer WITH CREATEDB; | |
\q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment