![](/img/trans.png)
[英]What is the difference between “systemctl restart” and “systemctl start”?
[英]Difference between Service and Systemctl
systemctl命令主要用於使服務在啟動時啟動。
systemctl 啟用 service_name ,該服務將在啟動時自動啟動。
service start service_name 有什么用
這兩個命令都用於在 GNU/Linux 中啟動和關閉服務。
但是, service
命令由 sysvinit 使用,而systemctl
由 systemd 使用。
在 systemd 中, service
命令還存在,但只是為了與舊的 sysvinit 腳本兼容
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.