首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu20.04.4LTS上安装pgAdmin - Conf pgadmin4不存在

在Ubuntu20.04.4LTS上安装pgAdmin - Conf pgadmin4不存在
EN

Stack Overflow用户
提问于 2022-04-27 10:16:44
回答 1查看 703关注 0票数 0

我运行这些命令在Ubuntu20.04.4LTS上安装pgAdmin

代码语言:javascript
复制
#
# Setup the repository
#

# Install the public key for the repository (if not done previously):
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add

# Create the repository configuration file:
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

#
# Install pgAdmin
#

# Install for both desktop and web modes:
sudo apt install pgadmin4

# Install for desktop mode only:
sudo apt install pgadmin4-desktop

# Install for web mode only: 
sudo apt install pgadmin4-web 

# Configure the webserver, if you installed pgadmin4-web:
sudo /usr/pgadmin4/bin/setup-web.sh

https://www.pgadmin.org/download/pgadmin-4-apt/

在我启动这个命令之前,一切都进行得很顺利:

sudo /usr/pgadmin4/bin/setup-web.sh

它产生这个输出:

代码语言:javascript
复制
Creating configuration database...
pgAdmin 4 - Application Initialisation
======================================

Creating storage and log directories...
We can now configure the Apache Web server for you. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. Do you wish to continue (y/n)? y
ERROR: Conf pgadmin4 does not exist!

我错过了什么?

EN

回答 1

Stack Overflow用户

发布于 2022-10-09 06:53:04

我通过跑步解决了这个问题:

代码语言:javascript
复制
sudo apt install libgmp3-dev libpq-dev libapache2-mod-wsgi-py3

然后再设置:

代码语言:javascript
复制
sudo /usr/pgadmin4/bin/setup-web.sh
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72027054

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档