Mac上postgresql突然启动不了
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
lsof -i tcp:5432查看端口啥都看不见
解决:
sudo rm -rf /usr/local/var/postgres/postmaster.pid
brew services restart postgresql