2017-05-30 82 views
0

我在一个服务器上我想要连接的套接字实际上是一个文件。确切地说是/var/opt/gitlab/postgresql/.s.PGSQL.5432使sonarqube连接到unix套接字

我发现覆盖sonarqube的dp连接的文档是https://jdbc.postgresql.org/documentation/80/connect.htmlhttps://docs.sonarqube.org/display/SONAR/Installing+the+Server会导致我相信连接到unix套接字是不可能的。

是否有可能,以及sonar.jdbc.url完成此操作的格式是什么?

这是sonarqube文档使用示例:我试图做这样的事情

sonar.jdbc.url=jdbc:postgresql://localhost/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance 

sonar.jdbc.url=jdbc:postgresql://var/opt/gitlab/postgresql/.s.PGSQL.5432/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance 

感谢您的时间。

回答

2

不幸的是,据我所知,通过Postgresql JDBC驱动程序连接到Unix套接字是不可能的。

您必须在postgresql配置中打开TCP/IP套接字服务器。

相关问题