1.登陆数据库服务器
su - posrgres
2.登陆数据库
psql
3.修改密码
alter user postgres with password 'GEO4_post';
其中 postgres是数据库的用户名,GEO4_post是新的密码。