Start and stop postgresql services
In this tutorial I will show you how to start and stop postgresql services on mac.
I have installed postgresql using brew so I will use brew to start and stop services of postgres.
You might also like: How to install postgresql on mac
Start postgresql services
I will use brew to start the services of postgresql on mac. Just execute the following command to start the service.
# brew services start postgres
==> Successfully started `postgresql` (label: homebrew.mxcl.postgresql)
So now our postgresql service has been started.
Stop postgresql services
Again I will use brew to stop the services of postgresql.
# brew services stop postgres
Stopping `postgresql`... (might take a while)
==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
If you got some issue started and stopping services of postgresql please feel free to comment below.
Read Also: How to install postgresql 9.6 on centos 7
Read Also: How to backup postgresql database
Leave a Reply