为什么即使postgresql.service正在运行,我也不能运行`psql`命令?

mnemlml8  于 2023-08-04  发布在  PostgreSQL
关注(0)|答案(1)|浏览(124)


的数据




文本格式错误:

psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
    Is the server running locally and accepting connections on that socket?

字符串
此外,我在尝试注册一个新的服务器时,在pgadmin中得到这个错误:


文本格式错误:

Unable to connect to server: connection failed: :1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost (127.0.0.1), port 5432 failed: Connection ref used Is the server running on that host and accepting TCP/IP connections?


由于sudo systemmctl status postgresqlsudo systemmctl status 'postgresql*'显示活动状态,我希望pgadmin能够顺利运行。

相关问题