asdf在哪里安装postgres



我想确认我没有在同一个地方有多个版本,所以我想知道在Mac上asdf在哪里存储postgres。当我点击pg_ctl start时,它看起来在哪里?

您是否尝试过asdf where postgres,它将显示当前版本的安装路径?

它将其放入$HOME/.asdf中指定版本的安装目录中。它们不在同一位置。

我不知道mac,但对于linux,它在你的家庭支架中,当你安装了3个版本的postgres时,它看起来像:

~/.asdf/installs/postgres/11.12
~/.asdf/installs/postgres/10.14
~/.asdf/installs/postgres/9.5.25

pg_ctl存在于bin/pg_ctl

如果你想启动一个postgres实例,你应该:

  1. 切换到包含postgres 9.5.25.tool-versions所在的文件夹
  2. pg_ctl --version#=>9.5.25
  3. pg_ctl start#=>将启动9.5.25版本的postgres

最新更新