pgbouncer-1.4如何与PostgreSQL -9.0数据库集成

How to integrate pgbouncer-1.4 with PostgreSQL -9.0 database

enter link description here我是 pgbouncer 和 postgreSQL 数据库的新手。尝试将 pgbouncer 与 postgreSQL 数据库集成。 成功安装 pgbouncer 后,启动 pgbouncer 时出现错误。

bash-3.2$ ./pgbouncer -d /etc/pgbouncer.ini
2016-03-11 05:18:21.549 25831 ERROR broken auth file
2016-03-11 05:18:21.549 25831 LOG File descriptor limit: 1024 (H:1024), max_client_conn:1000, max fds possible 1010
2016-03-11 05:18:21.550 25831 FATAL @src/main.c:739 in function main(): unix socket is in use,cannot continue 

请在这里分享一些想法如何解决这个问题。

提前致谢 萨蒂亚

嗯 - 看起来你有两个问题。

  1. 您的授权文件有错误。
  2. 您尝试监听的套接字正在使用中。

您可能想要:

  1. 阅读 pgbouncer 文档了解配置格式
  2. 确保你的 pgbouncer 侦听与 PostgreSQL 不同的套接字(我假设这就是这里发生的事情)。