环境:
Ubuntu 16.04
postgres : apt-get install postgresql
9.5版本
sudo vim /etc/postgresql/9.5/main/pg_hba.conf
修改下面ipv4登录md5
为trust
.
local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all