我已完成PG服务器的安装。我希望能够通过pgAdmin远程连接到它,但一直让服务器不听错误。允许远程连接postgresql
could not connect to server: Connection refused Is the server running on host "192.168.1.11" and accepting TCP/IP connections on port 5432?
这是在我的网络上,我知道我必须编辑pg_hba.config文件。我在读的地方,我必须添加一条线,
host all all ip address/mask md5
我的问题是,什么是/面具和如何/我在哪里得到它?我连接的IP是192.168.1.9。
非常感谢您的宝贵时间,我使用的是Ubuntu 16.04和Postgresql 9.4。
'主机\t所有\t \t所有\t 192.168.1.9/32 md5'并把它并不是结束,而是以“主机”部分的开头 - 刚刚在“当地” –
你可能有/ 24或/ 16子网。如果您选择/ 32,则表示只有该地址可以连接。 – jlandercy
根据你的错误信息,看看你的postgresql.conf listen_addresses ='*' –