文章目录 1. 问题描述 2. 解决方案 1. 问题描述 当尝试以postgres的用户身份登录PostgreSQL服务的时候,PostgreSQL报错提示如下: [root@omiday ~]# psql -U postgres psql: FATAL: Peer authentication failed for user "postgres" 在PostgreSQL的日志文件中,记录了更加详细的提示信息,如下: