切换到pg用户
su postgres
启动
pg_ctl start
重启
pg_ctl restart
停止
pg_ctl stop
登录
psql postgres
退出登录
\q
这篇文章介绍了在PostgreSQL系统中切换到pg用户以及进行数据库服务的启动、重启、停止的操作,同时提到了使用psql登录和退出的方法。
切换到pg用户
su postgres
启动
pg_ctl start
重启
pg_ctl restart
停止
pg_ctl stop
登录
psql postgres
退出登录
\q
2022

被折叠的 条评论
为什么被折叠?