1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu でローカルのDBをpgAdminで参照する方法

Posted at

概要

postgres をGUIで扱えるツールであるpgAdminでローカルにあるDBを参照する方法を記載します。

手順

  1. pgAdmin の install の為に以下のコマンドを実行
sudo apt install curl
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
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'
sudo apt update
sudo apt install pgadmin4
sudo /usr/pgadmin4/bin/setup-web.sh
  1. ログイン用の Email address , Password を入力する

  2. ポート80を8080に変更し443の設定を無効にする。
    sudo vi /etc/apache2/ports.conf

#Listen 80
Listen 8080
#<IfModule ssl_module>
#       Listen 443
#</IfModule>
#<IfModule mod_gnutls.c>
#       Listen 443
#</IfModule
  1. apacheの再起動
    sudo systemctl restart apache2

  2. ブラウザで以下を開く
    http://127.0.0.1:8080/pgadmin4/browser/

  3. 2で設定したEmailとPasswordでログイン

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?