vacuumdb: error: could not connect to database template1: 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"?
原因:
因为服务还没起来
方法:
换好端口号,起服务
pg_ctl start -D /pg/pg13/data
然后再跑sh