Install postgres: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Laemmi (Diskussion | Beiträge) Die Seite wurde neu angelegt: „Category:Mac == Set up Postgres to run at startup == Check if the directory ~/Library/LaunchAgents exists. Create it if it doesn’t exist. Find the plis…“ |
(kein Unterschied)
|
Aktuelle Version vom 22. September 2021, 19:41 Uhr
Set up Postgres to run at startup
Check if the directory ~/Library/LaunchAgents exists. Create it if it doesn’t exist.
Find the plist file that came with the postgres install. I found mine at /usr/local/Cellar/postgresql/9.3.4/homebrew.mxcl.postgresql.plist.
Copy the plist file to the LaunchAgents directory.
cp /usr/local/Cellar/postgresql/9.3.4/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
Now use launchctl to load the file using this command:
launchctl load -w homebrew.mxcl.postgresql.plist