阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

如何在UBUNTU 16.04上安装桌面模式中的PGADMIN 4

33次阅读
没有评论

共计 1067 个字符,预计需要花费 3 分钟才能阅读完成。

导读 PgAdmin 4 是 PostgreSQL 数据库流行的 pgAdmin3 管理工具的重写。PgAdmin 是 PostgreSQL 领先的图形化开源管理,开发和管理工具。下面我哦简单的说说怎么在 UBUNTU 16.04 上安装 PGADMIN 4。

如何在 UBUNTU 16.04 上安装桌面模式中的 PGADMIN 4

步骤 1. 安装安装包
# sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev
步骤 2. 创建虚拟环境
# cd /opt/
# mkdir enviromentpy
# cd enviromentpy/
# virtualenv pgadmin4
# cd pgadmin4
# source bin/activate
步骤 3. 下载并安装 PGAdmin 4
# wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl
# pip install pgadmin4-1.3-py2.py3-none-any.whl
步骤 4. 创建 PGAdmin 4 的本地配置文件
# cd /lib/python2.7/site-packages/pgadmin4
# touch config_local.py

编辑 config_local.py 并添加任何所需的配置选项(使用 config.py 文件作为参考 – config_local.py 中重复的任何设置将覆盖 config.py 中的设置)。要将 PGAdmin 4 配置为在单用户模式下运行,请添加以下行:

# echo "SERVER_MODE = False" >> lib/python2.7/site-packages/pgadmin4/config_local.py
步骤 4. 运行 PGAdmin 4
# python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py
.
 Enter the email address and password to use for the initial pgAdmin user account:

        Email address: lotfi@yallalabs.com

您将提示它添加一个电子邮件地址和密码来访问 PGAdmin 4,现在访问 http:// localhost:5050 并连接您的 PostgreSQL 服务器。

阿里云 2 核 2G 服务器 3M 带宽 61 元 1 年,有高配

腾讯云新客低至 82 元 / 年,老客户 99 元 / 年

代金券:在阿里云专用满减优惠券

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2024-07-24发表,共计1067字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中