1、查看正在运行的服务 systemctl 2、启动服务 systemctl start foo.service 3、关闭服务 systemctl stop foo.service 4、重启服务 systemctl restart foo.service 5、查看一个服务的状态 systemctl status foo.service 6、开机时自动启动服务 systemctl enable foo.service 7、开机时不启动服务 systemctl disable foo.service 8、查看服务是否开机自动启动 systemctl is-enabled foo.service
Linux学习总结(27)——CentOS7及以上系统的systemctl命令使用介绍
关注
打赏