MacOS中禁止自啟服務(wù)
Note that with PostgreSQL 9.0 (and probably newer) on Mac OS 10.6.8 (and probably older), in order to prevent the PostgreSQL server from auto-starting, you have to:
Go to?
/Library/LaunchDaemons/
Open?
com.edb.launchd.postgresql-9.0.plist
?in an editor as?root
?(replace?9.0
?with your correct version number), e.g.?sudo vim com.edb.launchd.postgresql-9.0.plist
.Locate the line?
<key>RunAtLoad</key>
Change the next line from?
<true/>
?to?<false/>
Save and exit.
標(biāo)簽: