1.列出安装的unit files
systemctl list-unit-files
2.设置开机启动
systemctl enable postgresql.service
3.禁用开机启动
systemctl disable postgresql.service
4.查看服务状态
systemctl status postgresql.service
5.停止服务
systemctl stop postgresql.service
6.开启服务
systemctl start postgresql.service
7.重启服务
systemctl restart postgresql.service
To be continued.....