

It is useful for maintaining multiple copies of aįile in many places at once without using up storage for the copies'' instead, a link points'' to the original copy. The ln utility creates a new directory entry (linked file) which has the same modes as the original file. alternatively, pg_stop stops your database service.Ĭonnect to your postgres with the command: psqlĬreateuser -s postgres - fixes role "postgres" does not existĭetails What is this ln command I ran in my Terminal?.Use this comment to start your database service. Run the alias you just created: pg_start. They could look something like this: alias pg_start="launchctl load ~/Library/LaunchAgents"Īlias pg_stop="launchctl unload ~/Library/LaunchAgents" Run the command: ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgentsĬreate two new aliases to start and stop your postgres server. In your command-line run the command: brew install postgres In your command-line run the following commands:
