Windows下对postgre开启远程链接权限

前言:Windows下对postgre开启远程链接权限,下面是实际操做过程当中的手顺

 

1.找到postgresql.conf文件,注意安装路径html

Java代码   收藏代码
  1. D:\Program Files (x86)\PostgreSQL\9.3\data  

2.打开该文件,注意如下内容,确认为下面内容后,进行下一步sql

Java代码   收藏代码
  1. listen_addresses = '*'  

3.打开pg_hba.conf文件,注意如下内容post

Java代码   收藏代码
  1. # IPv4 local connections:  
  2. host    all             all             127.0.0.1/32            md5  
  3. host    all             all             xxx.xxx.xxx.xxx/32            md5  

 xxx.xxx.xxx.xxx即为须要登陆的IP地址spa

4.在Windows的服务中从新启动postgre服务.net

 

再次尝试从新链接就OK了postgresql

相关文章
相关标签/搜索