一,linux下安装postgresql PostgreSQL: Linux downloads (Red Hat family)https://www.postgresql.org/download/linux/redhat/二,设置管理员密码
1,通过ps -aux|grep postgres 命令查询pg库安装地址,安装好后可以在安装目录中找到init.log文件找到管理员账号,一般为postgres
2,进入data目录
a),修改pg_hba.conf文件:
host all all 127.0.0.1/32 md5 修改为 host all all 127.0.0.1/32 trust
b),修改