Home » Install postgresql and pgAdmin4 on Ubuntu 20.04

Install postgresql and pgAdmin4 on Ubuntu 20.04

by Salman Chawhan
0 comment

Install Postgresql

sudo apt install postgresql postgresql-client

sudo su - postgres
psql

ALTER USER postgres PASSWORD 'postgres';
ALTER SYSTEM SET listen_addresses TO '*';
exit
exit

Install PgAdmin4

If Curl Command not Install run
sudo apt install curl

curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add

sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

sudo apt install pgadmin4

sudo /usr/pgadmin4/bin/setup-we.sh

You may also like

Leave a Comment

18 − four =

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
-
00:00
00:00
Update Required Flash plugin
-
00:00
00:00