PostgreSQL数据库设置远程连接

1. 修改 data/postgresql.conf 文件

#listen_addresses = 'localhost'		
listen_addresses = '*'

2. 修改 data/pg_hba.conf 文件,最后一行添加

host    all             all             0.0.0.0/0               md5

3. 重启数据库服务

猜你喜欢

转载自blog.csdn.net/wml00000/article/details/108786496