加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

当从Postgresql 9.1升级到9.3时,linux – “无法写入日志文件pg_

发布时间:2020-12-13 16:27:04 所属栏目:百科 来源:网络整理
导读:当我通过postgres用户运行以下命令时,我会继续收到上述错误. /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 cannot
当我通过postgres用户运行以下命令时,我会继续收到上述错误.
/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

cannot write to log file pg_upgrade_internal.log Failure,exiting

我使用的是Ubuntu 13.10. Postgresql 9.1和9.3都正常运行.

确保从postgres用户可写的目录(如/ tmp或/ var / lib / postgresql)运行此命令:
$cd /tmp
$usr/lib/postgresql/9.3/bin/pg_upgrade ...

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读