annonces mobile

jeudi 18 janvier 2018

How to install pgAdmin 4 in desktop mode on debian


Installation Packages
open a terminal
su root

mkdir /usr/src/pgadmin4/

cd /usr/src/pgadmin4

apt-get install mlocate wget build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev

Create the virtual environment for PY

mkdir /usr/src/pgadmin4/enviromentpy

cd /usr/src/pgadmin4/enviromentpy/

virtualenv pgadmin4

Download and install PGAdmin 4
wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl--2018-01-18 00:09:42-- https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl
virtualenv --python=/usr/bin/python2.7 pgadmin4



install && configure

pip install pgadmin4-1.4-py2.py3-none-any.whl

mlocate config_local.py

echo "SERVER_MODE = False" >>/usr/src/pgadmin4/config_local.py

cat /usr/src/pgadmin4/config_local.py

touch /usr/src/pgadmin4/config_local.py

python /usr/local/lib/python2.7/dist-packages/pgadmin4/pgAdmin4.py

result

The configuration database - '/root/.pgadmin/pgadmin4.db' does not exist.

Entering initial setup mode...
NOTE: Configuring authentication for SERVER mode.

Enter the email address and password to use for the initial pgAdmin user account:

Email address:

Password:

Retype password:

The configuration database has been created at /root/.pgadmin/pgadmin4.db

Starting pgAdmin 4. Please navigate to http://localhost:5050 in your browser.

Aucun commentaire:

Enregistrer un commentaire