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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 00:01:53  来源:igfitidea点击:

Where is Postgres 9.1 log located by default in Ubuntu

postgresqlloggingubuntu

提问by Evl-ntnt

Where I can find startup log of of my postgres 9.1 server. I'm using Ubuntu. postgres restartgets failed. find / -name pg_logfounds 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.logor look for the variable PGLOGin 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/.