psql -h localhost -U postgres -d postgres
pg_ctl restart -D $PGDATA
配置pg_hba.conf md5然后进行重启
测试:
Postgresql配置创建密码复杂度检查模块
原文:https://blog.51cto.com/lishiyan/2581496