切换到pg用户
su postgres
启动
pg_ctl start
重启
pg_ctl restart
停止
pg_ctl stop
登录
psql postgres
退出登录
\q
切换到pg用户
su postgres
启动
pg_ctl start
重启
pg_ctl restart
停止
pg_ctl stop
登录
psql postgres
退出登录
\q