Unable to connect to PostgreSQL server: could not connect to server: Permission denied

后端 未结 3 917
逝去的感伤
逝去的感伤 2020-12-15 00:27

Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Permission denied Is the server running on host \"10.0.1.201\" and accepting TCP/

3条回答
  •  悲&欢浪女
    2020-12-15 01:04

    One more possible scenario/solution that worked for me (for the very same problem) is here:

    service httpd stop
    service postgresql stop
    
    setsebool -P httpd_can_network_connect 1
    
    service httpd start
    service postgresql start
    

提交回复
热议问题