服务器ip:15.12.61.223
服务器pg安装目录,
打开$POSTSQL/data/pg_hdb.conf 找到
# IPv4 local connections:
host all all 127.0.0.1/32 md5
在下面添加一行代码:
host all all 15.12.61.223/32 md5
host all all 0/0 md5 //所有用户都能访问
本文详细介绍了如何修改 PostgreSQL 的 pg_hdb.conf 配置文件,以便特定 IP 地址(如 15.12.61.223)能够访问数据库。操作步骤包括在配置文件中添加访问权限设置,确保所有用户都能通过该 IP 进行连接。
服务器ip:15.12.61.223
服务器pg安装目录,
打开$POSTSQL/data/pg_hdb.conf 找到
# IPv4 local connections:
host all all 127.0.0.1/32 md5
在下面添加一行代码:
host all all 15.12.61.223/32 md5
host all all 0/0 md5 //所有用户都能访问

被折叠的 条评论
为什么被折叠?