我试图在我的流浪机器上运行psql
,但我得到这个错误:
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的命令:
sudo apt-get update
sudo apt-get install postgresql
sudo su postgres
psql -d postgres -U postgres