我在我的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上不起作用 –