Apache2 如何避免PostGreSQL13和PGADMIN4出现404NotFound错误
我正试图用PostgreSQL数据库启动PGadmin4,但当我访问Apache2 如何避免PostGreSQL13和PGADMIN4出现404NotFound错误,apache2,pgadmin-4,postgresql-13,Apache2,Pgadmin 4,Postgresql 13,我正试图用PostgreSQL数据库启动PGadmin4,但当我访问http://localhost/pgadmin4,我一直在飞机上着陆 127.0.0.1拒绝连接 Postgresql之后,我启动了数据库,服务器似乎正常工作: ~ sudo systemctl status postgresql ● postgresql.service - PostgreSQL RDBMS Loaded: loaded (/lib/systemd/system/postgresql.servi
http://localhost/pgadmin4
,我一直在飞机上着陆
127.0.0.1拒绝连接
Postgresql之后,我启动了数据库,服务器似乎正常工作:
~ sudo systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor pr>
Active: active (exited) since Wed 2021-05-05 17:44:13 CEST; 11min ago
Process: 8826 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 8826 (code=exited, status=0/SUCCESS)
mai 05 17:44:13 hysterio-Zephyrus-G-GU502DU-GA502DU systemd[1]: Starting Postgr>
mai 05 17:44:13 hysterio-Zephyrus-G-GU502DU-GA502DU systemd[1]: Finished Postgr>
标准端口5432正在通过正确的进程进行侦听:
sudo lsof -i tcp:5432
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
postgres 10886 postgres 5u IPv4 134729 0t0 TCP *:postgresql (LISTEN)
postgres 10886 postgres 6u IPv6 134730 0t0 TCP *:postgresql (LISTEN)
PGadmin4的安装需要安装apache web服务器,并且运行正常:
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
The Apache web server is running and must be restarted for the pgAdmin 4 installation to complete. Continue (y/n)?
Apache successfully restarted. You can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin4
我试图编辑pg_hba.conf文件和postgresql.conf文件,以确保数据库正在本地主机(127.0.0.1)上侦听5432,但它没有做任何事情
有什么想法吗?您确定Apache安装正确吗?如果您访问
http://localhost
你看到通用登录页了吗?我收到本地主机拒绝连接的错误。但是我在上看到了通用Apache2登录页http://localhost:8080
好了。在http://localhost:8080/pgadmin4
?就在那里。我现在觉得自己很笨。谢谢