Postgresql.conf仍然在文件名中保留“.sample”?

时间:2016-05-26 13:26:13

标签: macos postgresql

我在Mac OSX上通过Docker容器映像运行Postgresql来启动我的Web应用程序。我的目标是使用PersistentManager将会话数据存储到数据库。

在打开调试日志以查看会话信息未保存到我创建的表的原因之后,我在日志中注意到以下错误:

SEVERE: A SQL exception occurred org.postgresql.util.PSQLException:      Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

这导致我检查/ usr / local / share / postgresql中的postgresql.conf以启用正确的TCP / IP侦听。但是,我很惊讶地看到,它和许多其他文件在最后只有一个“.sample”而不是简单地称为“postgresql.conf”。根据我的locate命令,它们是postgresql.conf的唯一版本。这是什么原因?我是否需要重新启动/重新安装服务器?

0 个答案:

没有答案