phpPgAdmin 拒绝连接

发布于 2025-01-16 04:23:41 字数 2895 浏览 0 评论 0原文

我有 Ubuntu 18、php 7.4 并尝试安装 phpPgAdmin。我按照此说明执行了所有步骤: https ://www.rosehosting.com/blog/how-to-install-phppgadmin-on-ubuntu-18-04/

我的/etc/hosts文件:

#127.0.0.1  localhost
#127.0.1.1  site-1.loc
127.0.0.2   site-2.loc



# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

在地址http://127.0.0.1/phppgadmin/ 我只看到文本“127.0.0.1 拒绝连接”。

输入图片这里的描述

有什么想法如何修复 phpPgAdmin 连接吗?

更新:

❯ systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Tue 2022-03-22 12:08:41 EET; 47min ago
  Process: 905 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
  Process: 911 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 921 (apache2)
    Tasks: 11 (limit: 4915)
   CGroup: /system.slice/apache2.service
           ├─ 921 /usr/sbin/apache2 -k start
           ├─ 922 /usr/sbin/apache2 -k start
           ├─ 923 /usr/sbin/apache2 -k start
           ├─ 924 /usr/sbin/apache2 -k start
           ├─ 925 /usr/sbin/apache2 -k start
           ├─ 926 /usr/sbin/apache2 -k start
           ├─1019 /usr/sbin/apache2 -k start
           ├─1020 /usr/sbin/apache2 -k start
           ├─1491 /usr/sbin/apache2 -k start
           ├─1495 /usr/sbin/apache2 -k start
           └─1496 /usr/sbin/apache2 -k start

бер 22 12:08:41 dell systemd[1]: Starting The Apache HTTP Server...
бер 22 12:08:41 dell apachectl[911]: [Tue Mar 22 12:08:41.434563 2022] [alias:warn] [pid 915] AH00671: The Alias directive in /etc/apache2/sites-enabl
бер 22 12:08:41 dell apachectl[911]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.88.211. Se
бер 22 12:08:41 dell systemd[1]: Started The Apache HTTP Server.
❯ 
❯ service postgresql status
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2022-03-22 12:06:38 EET; 51min ago
  Process: 610 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 610 (code=exited, status=0/SUCCESS)

бер 22 12:06:38 dell systemd[1]: Starting PostgreSQL RDBMS...
бер 22 12:06:38 dell systemd[1]: Started PostgreSQL RDBMS.

I have Ubuntu 18, php 7.4 and trying to install phpPgAdmin. I did all steps from this instruction: https://www.rosehosting.com/blog/how-to-install-phppgadmin-on-ubuntu-18-04/

My /etc/hosts file:

#127.0.0.1  localhost
#127.0.1.1  site-1.loc
127.0.0.2   site-2.loc



# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

In the address http://127.0.0.1/phppgadmin/ I see just text "127.0.0.1 refused to connect."

enter image description here

Any ideas how to fix phpPgAdmin connection?

UPD:

❯ systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Tue 2022-03-22 12:08:41 EET; 47min ago
  Process: 905 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
  Process: 911 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 921 (apache2)
    Tasks: 11 (limit: 4915)
   CGroup: /system.slice/apache2.service
           ├─ 921 /usr/sbin/apache2 -k start
           ├─ 922 /usr/sbin/apache2 -k start
           ├─ 923 /usr/sbin/apache2 -k start
           ├─ 924 /usr/sbin/apache2 -k start
           ├─ 925 /usr/sbin/apache2 -k start
           ├─ 926 /usr/sbin/apache2 -k start
           ├─1019 /usr/sbin/apache2 -k start
           ├─1020 /usr/sbin/apache2 -k start
           ├─1491 /usr/sbin/apache2 -k start
           ├─1495 /usr/sbin/apache2 -k start
           └─1496 /usr/sbin/apache2 -k start

бер 22 12:08:41 dell systemd[1]: Starting The Apache HTTP Server...
бер 22 12:08:41 dell apachectl[911]: [Tue Mar 22 12:08:41.434563 2022] [alias:warn] [pid 915] AH00671: The Alias directive in /etc/apache2/sites-enabl
бер 22 12:08:41 dell apachectl[911]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.88.211. Se
бер 22 12:08:41 dell systemd[1]: Started The Apache HTTP Server.
❯ 
❯ service postgresql status
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2022-03-22 12:06:38 EET; 51min ago
  Process: 610 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 610 (code=exited, status=0/SUCCESS)

бер 22 12:06:38 dell systemd[1]: Starting PostgreSQL RDBMS...
бер 22 12:06:38 dell systemd[1]: Started PostgreSQL RDBMS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文