1.yum安装 2.初始化数据库 3.修改配置文件监听地址/端口,修改pg_hba配置文件增加远程登陆 4.切换到系统用户postgres执行psql登陆 5,创建库用户名等: create user testpg with password 'testpg'; create database succezbi with encoding='utf8' owner=testpg;