我已经通过 yum 在 Centos 6.4 64 位上安装了 Postgres 8.4。我也想用 yun 安装的 phpPgAdmin-5.0.4-1 管理 Postgres 数据库(如 MySQL 和 phpMyadmmin) 安装 phpPgAdmin-5.0.4-1 后我无法通过访问 192.168.7.4/phpPgAdmin/ (192.168.7.4) 登录到 phpPgAdmin是我的 Centos 服务器),它总是说“登录失败”,尽管我确定我输入了正确的用户名(postgres)和密码这是我的信息,希望你能帮助:
netstat -tupln | grep postmaster
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 771/postmaster
tcp 0 0 :::5432 :::* LISTEN 771/postmaster
/etc/phpPgAdmin/config.inc.php
$conf['servers'][0]['desc'] = 'PostgreSQL';
$conf['servers'][0]['host'] = '192.168.7.4';
$conf['extra_login_security'] = false;
/var/lib/pgsql/data/postgresql.conf
listen_addresses = '*'
/var/lib/pgsql/data/pg_hba.conf
local all all ident
# IPv4 local connections:
host all all 127.0.0.1/32 ident
# IPv6 local connections:
host all all ::1/128 ident
提前致谢。