gitlab 登录数据库psql -d gitlabhq_production 报错:
$ psql -d gitlabhq_production
psql: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
cd /tmp
ln -s /var/opt/gitlab/postgresql/.s.PGSQL.5432 .
即可