一、启动服务
systemctl start test.service
二、停止服务
systemctl stop test.service
三、重启服务
systemctl restart test.service
四、查看服务状态
systemctl status test.service
五、设置开机自启动服务
systemctl enable test.service
六、禁止开机自启动服务
systemctl disable test.service
七、查看是否开机自启动
systemctl is-enabled test.service
八、查看已启动服务列表
systemctl list-unit-files|grep enabled
九、查看启动失败服务列表
systemctl --failed