文章目录 1. 错误描述 2. 解决方案 1. 错误描述 使用命令psql登录数据库时候,收到错误的日志提示信息: [root@omiday ~]# psql -U postgres 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"