Centos 啓動關閉postgresql

#查看正在運行的服務
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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章