“无法写入日志文件pg

编程入门 行业动态 更新时间:2024-10-25 14:24:28
本文介绍了“无法写入日志文件pg_upgrade_internal.log"从Postgresql 9.1升级到9.3时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

每当我通过postgres用户运行以下命令时,我都会不断遇到上述错误.

I keep on getting the above error whenever I run the following command via a postgres user.

/usr/lib/postgresql/9.3/bin/pg_upgrade \ -b /usr/lib/postgresql/9.1/bin/ \ -B /usr/lib/postgresql/9.3/bin/ \ -d /var/lib/postgresql/9.1/main \ -D /var/lib/postgresql/9.3/main

无法写入日志文件pg_upgrade_internal.log失败,退出

我正在使用Ubuntu 13.10. Postgresql 9.1和9.3都可以正常运行.

I'm using Ubuntu 13.10. Both Postgresql 9.1 and 9.3 are running properly.

推荐答案

确保从postgres用户可写的目录(例如/tmp或/var/lib/postgresql)运行此命令:

Make sure that you run this command from a directory that is writable by the postgres user, like /tmp or /var/lib/postgresql:

$ cd /tmp $ usr/lib/postgresql/9.3/bin/pg_upgrade ...

更多推荐

“无法写入日志文件pg

本文发布于:2023-10-18 12:45:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504267.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   日志   pg

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!