我在我的Ubuntu与安装PostgreSQL:Linuxbrew,安装的Postgres并自动启动服务
brew install postgres
现在我有:
psql --version
psql (PostgreSQL) 9.5.0
我怎样才能自动启动服务?
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
,但如何与Linuxbrew在Ubuntu:
我的Mac上使用自制软件,我可以做到这一点?
我尝试:
brew services start postgresql
但它说:
sh: 1: list: not found
Error: Could not read the plist for `postgresql`!
怎么办?
他说的是linuxbrew,而不是mac os brew – dvnguyen
@dvnguyen其实这是正确的。 OP并没有将使用linux brew酿造的mac os brew弄糊涂。它只是用于postgres(linux brew安装)的brew服务在Linux上不起作用 –