0

我正在尝试将我的 AWS RDS postgres 数据库连接到在 ec2 实例上运行的可远程访问的 phpPgAdmin。我能够访问 phpPhAdmin 页面,并编辑了 phpPgAdmin 文件夹中的 config.inc.php 文件,使其包含 RDS 服务器的端点。

这是 config.inc.php 的相关部分。

    /**
     * Central phpPgAdmin configuration.  As a user you may modify the
     * settings here for your particular configuration.
     *
     * $Id: config.inc.php-dist,v 1.55 2008/02/18 21:10:31 xzilla Exp $
     */

    // An example server.  Create as many of these as you wish,
    // indexed from zero upwards.

    // Display name for the server on the login screen
    $conf['servers'][0]['desc'] = 'Visionmap';

    // Hostname or IP address for server.  Use '' for UNIX domain socket.
    // use 'localhost' for TCP/IP connection on this computer
    $conf['servers'][0]['host'] = '*myRDSendpoint*';

    // Database port on server (5432 is the PostgreSQL default)
    $conf['servers'][0]['port'] = 5432;

问题是当我尝试登录服务器时,它需要永远然后说登录失败。我已经使用相同的用户名和密码连接到带有 pgAdminIII 的 RDS 服务器,没有任何问题。我也多次重启了httpd。phpPgAdmin 超时

4

1 回答 1

0

Serverfault.com 上的这个帖子提供了答案。

https://serverfault.com/questions/402127/cant-login-to-phppgadmin

我没有启用来自 EC2 的公共 IP 地址的 TCP 入站流量。

于 2016-08-15T20:41:01.093 回答