安装完成postgresql 后,启动大象pgAdmin4 报the application server could not be contect 错误

  • Post author:
  • Post category:其他


运行pgAdmin出现”pgAdmin 4  the application server could not be contant“ 窗口。

转自 : https://www.cnblogs.com/geovindu/p/8108962.html

解决方式:

1. c:\Users\your_name\AppData\Roaming\pgAdmin 之内的删除所有文件和文件夹

2.C:\Program Files\PostgreSQL\10\pgAdmin 4\web 找到

config_distro.py文件

添加:

MINIFY_HTML=False

DATA_DIR = “C:/Data/pgAdmin” # set non-ascii path here

则为:


SERVER_MODE


=


False

HELP_PATH


=


'../../../docs/en_US/html/'

MINIFY_HTML


=


False

DATA_DIR


=


"C:/Data/pgAdmin"


# set non-ascii path here

DEFAULT_BINARY_PATHS


=


{


"pg"


:


"C:\\Program Files\\PostgreSQL\\10\\bin"


,

"ppas"


: ""

}