logo
  • 教程列表
  • SO官方文檔
  • 管理服務
    • 診斷服務問題
    • 啟動和停止服務
    • 獲取服務的狀態
  1. StackOverflow 文件
  2. GNU/Linux 教程
  3. 管理服務
  4. 啟動和停止服務

啟動和停止服務

Created: November-22, 2018

在使用 System-V 樣式的 init 指令碼的系統上,例如 RHEL / CentOS 6:

service <service> start

service <service> stop

在使用 systemd 的系統上,例如 Ubuntu(伺服器和桌面)> = 15.04,以及 RHEL / CentOS> = 7:

systemctl <service> dnsmasq

systemctl <service> dnsmasq

  • 獲取服務的狀態
  • 診斷服務問題

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明