ALTER USER postgres ENCRYPTED PASSWORD 'postgres123';
10、开放端口
firewall-cmd --query-port=5432/tcp
firewall-cmd --add-port=5432/tcp
firewall-cmd --add-port=5432/tcp --zone=public --permanent
11、重新启动
systemctl restart postgresql-11
标签:5432,PostgreSQL,--,数据库,cmd,tcp,Centos7,firewall,port From: https://www.cnblogs.com/chuangsi/p/17401731.html