我在我的 Ubuntu 上安装 Postgresql:
brew install postgres
我现在有:
psql --version
psql (PostgreSQL) 9.5.0
如何自动启动服务?
在我的带有自制软件的 Mac 上,我可以这样做:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
但是在带有 Linuxbrew 的 Ubuntu 上怎么样?
我尝试:
brew services start postgresql
但它说:
sh: 1: list: not found
Error: Could not read the plist for `postgresql`!
该怎么办?