我在 Ubuntu 16.04 上安装了 postgresql,当我运行psql命令时出现此错误:
psql
无法连接到服务器:没有这样的文件或目录。服务器是否在本地运行并接受 Unix 域套接字“/var/run/postgresql/.s.PGSQL.5432”上的连接?
我尝试重新启动并重新加载 postgres 服务,但每次都会显示错误。
postgresql ubuntu-16.04
postgresql ×1
ubuntu-16.04 ×1