步驟如下:
$ sudo vim /var/lib/pgsql/data/pg_hba.conf local all all trust $ sudo service postgresql restart