Mac上Postgresql连接不上

brew安装的postgresql, 一直好好的,突然连不上。

$ brew services stop postgresql
$ rm /usr/local/var/postgres/postmaster.pid # adjust path accordingly to your install
$ brew services start postgresql
For example, "name@something.com". If someone replies to you it will be via email.
For example, "http://someaddress.com"