How to install pgadmin4 — PostgreSQL management tool
How to install pgadmin4 — PostgreSQL management tool
Below are the table of Contents
- One download
2. Two installation
3. Three configuration
4. Four summary statement
Pip is similar to yum in RedHat. It is very convenient to install the Python package.
1.One download
1.1-Install pgadmin4, first make sure you have a python environment (all versions are available), install pip:
sudo apt install python-pip
1.2-Go to postgresql official website to download .whl package
Two installation
2.1-Install pgadmin4 using pip:
pip2 install pgadmin4–1.0-py2-none-any.whl
Three configuration
3.1-Find the installation directory (mine is /usr/local/lib/python2.7/dist-packages/pgadmin4)
3.2-Open pgadmin4:
python pgAdmin4.py
Configure pgadmin4 for the first time: set email/password (for login)
3.3-Visit pgadmin4: http://localhost:5050
4. Summary & Statement
4.1-When installing at (2.1), the config_local.py file may not be found, just rename config.py to config_local.py.
4.2-The installation location at (3.1), depending on the operating system version and python Versions are slightly different.
4.3-Opening at (3.2) requires python pgAdmin4.py again, but no need to configure email&pwd again.
Reference: https://pgadmin.org/docs4/dev/server_deployment.html