systemctl
#啓動,停止,重啓服務
systemctl start postgresql-9.4.service
systemctl stop postgresql-9.4.service
systemctl restart postgresql-9.4.service
#查看一個服務的狀態
systemctl status postgresql-9.4.service
#開機時啓用一個服務
systemctl enable postgresql-9.4.service
#開機時關閉一個服務
systemctl disable postgresql-9.4.service
#查看服務是否開機啓動
systemctl is-enabled postgresql-9.4.service