Postgres不写日志

时间:2017-05-08 11:12:31

标签: postgresql postgresql-9.5

重新启动PostgreSQL后,日志文件已停止写入。

仅显示以下日志。

FATAL:  lock file "postmaster.pid" already exists
HINT:  Is another postmaster (PID 1351) running in data directory "/var/lib/pipelinedb/9.5"?
FATAL:  lock file "postmaster.pid" already exists
HINT:  Is another postmaster (PID 1351) running in data directory "/var/lib/pipelinedb/9.5"?
LOG:  redirecting log output to logging collector process
HINT:  Future log output will appear in directory "log".
LOG:  redirecting log output to logging collector process
HINT:  Future log output will appear in directory "log".
LOG:  redirecting log output to logging collector process
HINT:  Future log output will appear in directory "log".

1 个答案:

答案 0 :(得分:0)

您好像已经有一个服务器实例在运行。尝试与composer update联系或使用psql进行检查。 如果其他服务器实例正在运行,请不要ps aux | grep -i postgres,因为您可能会损坏您的数据。而是做:

kill -9

在此之后,您应该正确启动服务器。