与vagrant一??起使用时无法启动postgresql
发布时间:2020-12-13 16:22:00 所属栏目:百科 来源:网络整理
导读:尝试在由Vagrant管理的Virtualbox VM上启动 postgresql我有以下错误: LOG: could not link file "pg_xlog/xlogtemp.29" to "pg_xlog/000000010000000000000001" (initialization of log file): Operation not permittedFATAL: could not open file "pg_xlog
尝试在由Vagrant管理的Virtualbox VM上启动
postgresql我有以下错误:
LOG: could not link file "pg_xlog/xlogtemp.29" to "pg_xlog/000000010000000000000001" (initialization of log file): Operation not permitted FATAL: could not open file "pg_xlog/000000010000000000000001": No such file or directory “`
导致这种情况的根本原因是vboxsf不支持文件系统链接(既不是硬链接也不是符号链接).您可以通过在VirtualBox guest虚拟机中安装主机文件夹并尝试执行以下操作来重现此问题:
ln /path/to/mounted/share/existingfile.txt /some/path/link-to-file.txt 例如(将/ var / data挂载为vboxsf共享) jim @ a55a005fc5a5:/ ~ln /var/data/foo.txt~/ data / link-to-foo 在virtualbox.org(#818,#10085)上有很多门票,但看到它们可以追溯到7年前,它可能是另一个在它修复之前! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |