我已经在Ubuntu Trusty 64 Vagrant框中安装了PostgreSQL 9.4。 PostgreSQLconfiguration文件位于Windows主机上,通过Vagrantfile链接到Vagrant框中。
PostgreSQL的configuration文件都有stream浪汉:stream浪者作为stream浪者箱内的所有者。 这阻止PostgreSQL运行:
root@internal:/etc/postgresql/9.4/main# service postgresql restart * Restarting PostgreSQL 9.4 database server * Error: Config owner (vagrant:1000) and data owner (postgres:112) do not match, and config owner is not root...fail!
我试图chown -h来更改符号链接的所有权(它确实发生了变化),但PostgreSQL足够聪明,可以查看原始文件而不是链接。
我应该能够更改Vagrantfile中的文件权限,但想知道任何人有更好的解决scheme吗?