gitlab 登錄數據庫psql -d gitlabhq_production 報錯

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 .

即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章