Systemd基础篇:systemd vs 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 disable 服务名
确认服务开机启动设定状态 chkconfig 服务名 systemctl is-enabled 服务名
加载服务配置文件 chkconfig 服务名 -add systemctl deamon-reload
关机 halt systemctl halt
关机(电源) poweroff systemctl poweroff
重启 reboot systemctl reboot
休眠 pm-hibernate systemctl hibernate
挂起 pm-suspend systemctl suspend

  • 6
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值