Ich habe 16,04 according to the answer here PostgreSQL 9.6 und pgadmin4 auf Ubuntu installiert.PostgreSQL 9.6: pgadmin4 nicht auf localhost Eröffnung: 5050 (Ubuntu 16.04)
Ich versuche es mit diesem zu starten:
cd ~/pgadmin4
source bin/activate
python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py
In Terminal sehe ich diese zurück:
Starting pgAdmin 4. Please navigate to http://localhost:5050 in your browser.
jedoch in Browser funktioniert es nicht - im Grunde Browser sagt, es kann es t verbinden.
Ich habe /etc/postgresql/9.6/main/postgresql.conf
zu dieser Änderung:
listen_addresses = '*'
meine /etc/postgresql/9.6/main/pg_hba.conf
wie folgt aussieht:
# Database administrative login by Unix domain socket
local all postgres md5
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
host all all 0.0.0.0/0 md5
und ich habe config_local.py (in "pgAdmin4" -Ordner), modifiziert diese haben :
SERVER_MODE = True
DEFAULT_SERVER = os.environ.get('PGADMIN_SERVER_IP', '0.0.0.0')
DEFAULT_SERVER_PORT = int(os.environ.get('PGADMIN_SERVER_PORT', '5050'))
Wie kann ich das beheben, damit pgadmin4 in localhost: 5050 funktioniert?