postgresql 默认情况下,Postgres 9.1 日志在 Ubuntu 中的位置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11137393/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is Postgres 9.1 log located by default in Ubuntu
提问by Evl-ntnt
Where I can find startup log of of my postgres 9.1 server.
I'm using Ubuntu.
postgres restart
gets failed.
find / -name pg_log
founds nothing
standard log at /etc/postgres/main/9.1/
is clear
在哪里可以找到我的 postgres 9.1 服务器的启动日志。我正在使用 Ubuntu。
postgres restart
失败。
find / -name pg_log
没有发现任何标准日志/etc/postgres/main/9.1/
是明确的
采纳答案by Clodoaldo Neto
In RedHat like distributions it would be in /var/lib/pgsql/pgstartup.log
or look for the variable PGLOG
in the init script in /etc/init.d/postgresql
在 RedHat 之类的发行版中,它会在 init 脚本中/var/lib/pgsql/pgstartup.log
查找或查找变量PGLOG
/etc/init.d/postgresql
回答by Thomas Obermüller
In Ubuntu it is one of the files in /var/lib/postgresql/9.3/main/pg_log/
.
在 Ubuntu 中,它是/var/lib/postgresql/9.3/main/pg_log/
.