Pgadmin - 无法访问站点错误
Pgadmin - Site can't be reached error
我正在尝试在 ubuntu 16.04(python、nginx)上设置 pgadmin,步骤详述如下,我在 url 中收到成功消息以访问 localhost:5050。我在想我可能必须在某处指定 url 但我不确定在哪里执行此操作。有人知道或者我在下面犯了错误吗?
wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl
pip install pgadmin4-1.4-py2.py3-none-any.whl
gedit lib/python3.5/site-packages/pgadmin4/config_local.py
LOG_FILE = '/var/log/pgadmin4/pgadmin4.log'
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db'
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions'
STORAGE_DIR = '/var/lib/pgadmin4/storage'
CSRF_SESSION_KEY = 'sample'
SECRET_KEY = 'sample'
SECURITY_PASSWORD_SALT = 'sample'
cd ~/pgadmin4
source bin/activate
python lib/python3.5/site-packages/pgadmin4/pgAdmin4.py
它与以下内容一起工作,出于某种原因设置默认服务器在我第一次尝试时不起作用,但现在可以,但不确定哪些设置有冲突。无论如何,希望它能帮助别人。
virtualenv pgadmin4
cd pgadmin4
source bin/activate
sudo apt install wget
wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl
pip install pgadmin4-1.4-py2.py3-none-any.whl
gedit lib/python3.5/site-packages/pgadmin4/config_local.py
**add to config_local.py**
LOG_FILE = '/var/log/pgadmin4/pgadmin4.log'
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db'
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions'
STORAGE_DIR = '/var/lib/pgadmin4/storage'
CSRF_SESSION_KEY = 'sample'
SECRET_KEY = 'sample'
SECURITY_PASSWORD_SALT = 'sample'
DEFAULT_SERVER = '**your ip here**'
cd ~/pgadmin4
source bin/activate
python lib/python3.5/site-packages/pgadmin4/pgAdmin4.py
我正在尝试在 ubuntu 16.04(python、nginx)上设置 pgadmin,步骤详述如下,我在 url 中收到成功消息以访问 localhost:5050。我在想我可能必须在某处指定 url 但我不确定在哪里执行此操作。有人知道或者我在下面犯了错误吗?
wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl
pip install pgadmin4-1.4-py2.py3-none-any.whl
gedit lib/python3.5/site-packages/pgadmin4/config_local.py
LOG_FILE = '/var/log/pgadmin4/pgadmin4.log'
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db'
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions'
STORAGE_DIR = '/var/lib/pgadmin4/storage'
CSRF_SESSION_KEY = 'sample'
SECRET_KEY = 'sample'
SECURITY_PASSWORD_SALT = 'sample'
cd ~/pgadmin4
source bin/activate
python lib/python3.5/site-packages/pgadmin4/pgAdmin4.py
它与以下内容一起工作,出于某种原因设置默认服务器在我第一次尝试时不起作用,但现在可以,但不确定哪些设置有冲突。无论如何,希望它能帮助别人。
virtualenv pgadmin4
cd pgadmin4
source bin/activate
sudo apt install wget
wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl
pip install pgadmin4-1.4-py2.py3-none-any.whl
gedit lib/python3.5/site-packages/pgadmin4/config_local.py
**add to config_local.py**
LOG_FILE = '/var/log/pgadmin4/pgadmin4.log'
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db'
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions'
STORAGE_DIR = '/var/lib/pgadmin4/storage'
CSRF_SESSION_KEY = 'sample'
SECRET_KEY = 'sample'
SECURITY_PASSWORD_SALT = 'sample'
DEFAULT_SERVER = '**your ip here**'
cd ~/pgadmin4
source bin/activate
python lib/python3.5/site-packages/pgadmin4/pgAdmin4.py