postgresql修改端口后无法通过psql连接psql: error: could not connect to server: No such file or directory_GIS数据共享

postgresql修改端口后无法通过psql连接psql: error: could not connect to server: No such file or directory

2024-07-06 16:30:13  浏览:608  作者:管理员
在修改postgrsql端口后,使用psql登陆postgrsql报错如下:psql: error: could not connect to server: No such file or directory Is the server running locally and...

在修改postgrsql端口后,使用psql登陆postgrsql报错如下:

psql: error: 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"?

解决办法:在psql后加端口号

psql -p 新端口号

image.png

扫码查看

上一篇: Linux安装postgresql

下一篇:已经是最后一篇

评论区

共 0 条评论
  • 这篇文章还没有收到评论,赶紧来抢沙发吧~

【随机内容】

返回顶部