CentOS 7設置開機啓動服務

  1. 在系統指定目錄下新建文件
    在這裏插入圖片描述
  2. 編輯文件內容
    在這裏插入圖片描述
  3. 重新加載和啓動

systemctl daemon- reload

  1. 啓動和停止服務

systemctl start sell
systemctl stop sell

  1. 設置開機啓動和取消開機啓動

systemctl enable sell
systemctl disable sell

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章