Skip to content

Instantly share code, notes, and snippets.

@filipechagas
Created July 1, 2021 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipechagas/b6823f1f1325905504e20417841be928 to your computer and use it in GitHub Desktop.
Save filipechagas/b6823f1f1325905504e20417841be928 to your computer and use it in GitHub Desktop.
Setting up PostgreSQL in Manjaro
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