Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 如何在pg_hba.conf上放置多个ip_Postgresql - Fatal编程技术网

Postgresql 如何在pg_hba.conf上放置多个ip

Postgresql 如何在pg_hba.conf上放置多个ip,postgresql,Postgresql,我需要允许两个ip连接到我的数据库:127.0.0.1和10.10.10.1 我正在尝试使用:托管所有127.0.0.1/32,10.10.10.1 md5,但它不起作用 如何操作?将它们放在单独的行中: 这允许同时连接两个ip?它允许两个ip连接。 host all all 127.0.0.1/32 md5 host all all 10.10.10.1/32 md5

我需要允许两个ip连接到我的数据库:127.0.0.1和10.10.10.1

我正在尝试使用:托管所有127.0.0.1/32,10.10.10.1 md5,但它不起作用


如何操作?

将它们放在单独的行中:


这允许同时连接两个ip?它允许两个ip连接。
host   all   all   127.0.0.1/32   md5
host   all   all   10.10.10.1/32  md5