我很惊讶在 ubuntu 上安装 postgresql 并没有立即给我一个有效的 postgres 服务器设置:它需要额外的步骤:
Setting up postgresql-common (154) ...
* No PostgreSQL clusters exist; see "man pg_createcluster"
Setting up postgresql-9.3 (9.3.4-1) ...
update-alternatives: using /usr/share/postgresql/9.3/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
* No PostgreSQL clusters exist; see "man pg_createcluster"
Setting up postgresql (9.3+154) ...
Run Code Online (Sandbox Code Playgroud)
我过去见过类似的行为,安装程序无法创建默认集群(我认为),因为缺少某些语言环境设置,但我认为我正确设置了这些设置。
在 Ubuntu 14.04 上需要额外的步骤是新的(因此是正确的)吗?或者有什么东西(悄悄地)坏了?
所有这一切都发生在全新的 DigitalOcean 14.04 VPS 上。