Ubuntu服务器无法运行PostgreSQL

时间:2018-10-24 17:16:13

标签: postgresql ubuntu

我在Ubuntu 18.10上使用Brew安装后尝试运行PostgreSQL。 我正面临这个问题:

brew services start postgresql
sh: 1: list: not found
sh: 1: list: not found
Error: Failure while executing; `'' load -w /home/demo/Library/LaunchAgents/homebrew.mxcl.postgresql.plist` exited with 1.

无法解决。我在线尝试了许多解决方案,但是PostgreSQL不想运行。

1 个答案:

答案 0 :(得分:0)

也许您应该尝试在Ubuntu上使用apt。

根据digitalocean的tutorial,您可以像这样在ubuntu上安装它:

sudo apt update
sudo apt install postgresql postgresql-contrib