我正在尝试psql
在我的Vagrant机器上运行,但出现此错误:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting connections on
Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
注意:流浪者1.9.2邮箱:ubuntu / trusty64,https ://atlas.hashicorp.com/ubuntu/boxes/trusty64
我用于安装和运行postgres的EDIT命令:
sudo apt-get update
sudo apt-get install postgresql
sudo su postgres
psql -d postgres -U postgres