systemd管理服务

systemd管理服务
systemd是centos7版本的服务管理的一个机制
#systemctl list-units --all --type=service //列出所有的service类型的
常用的几个服务相关的命令:
#systemctl enable crond.service //让服务开机启动
#systemctl disable crond.service //不/让服务开机启动
#systemctl status crond.service //查看状态
#systemctl stop crond.service //停止服务
#systemctl start crond.service //启动服务
#systemctl restart crond.service //重启服务
#systemctl is-enabled crond.service //检查服务是否开机启动

猜你喜欢

转载自blog.51cto.com/13669226/2115749