Systemd基础篇: Systemd与SysVinit对比
发布时间
阅读量:
阅读量

Systemd在当前系统中已逐步替代SysV的Init,本文将从多个角度归纳总结Systemd与Init在实际应用过程中的差异之处。
命令比较: SysVinit vs Systemd
| 命令用途 | SysVInit命令 | Systemd命令 |
|---|---|---|
| 服务启动 | service 服务名 start | systemd start 服务名.service (.service可省略,后同) |
| 服务停止 | service 服务名 stop | systemctl stop 服务名 |
| 服务重启 | service 服务名 restart | systemctl restart 服务名 |
| 服务重新加载 | service 服务名 reload | systemctl reload 服务名 |
| 服务状态确认 | service 服务名 status | systemctl status 服务名 |
| 服务开机启动设定 | chkconfig 服务名 on | systemctl enable 服务名 |
| 取消服务开机启动设定 | chkconfig service off | systemctl di |
全部评论 (0)
还没有任何评论哟~
