为这篇长文道歉,但我很难让 Pgpool 为我工作。
运行 Centos7 我有两个 Postgres 实例在主复制模式的不同端口上运行。
我已经成功安装了 pgpool-II。
启动 pgpool 我得到输出:
[root@PLHSISRV035 pgpool-II-96]# pgpool -n
2018-02-07 16:21:54: pid 118373: LOG: Setting up socket for 0.0.0.0:9999
2018-02-07 16:21:54: pid 118373: LOG: Setting up socket for :::9999
2018-02-07 16:21:54: pid 118373: LOG: find_primary_node_repeatedly: waiting for finding a primary node
2018-02-07 16:21:54: pid 118373: LOG: find_primary_node: checking backend no 0
2018-02-07 16:21:54: pid 118373: LOG: find_primary_node: primary node id is 0
2018-02-07 16:21:54: pid 118373: LOG: pgpool-II successfully started. version 3.7.1 (amefuriboshi)
所以从这里我应该能够使用:
psql -l -p 9999 (default settings)
相反,我得到标准未运行 Postgres 错误:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.9999"?
任何人都可以帮忙。?
谢谢,