![](/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.