一、启动服务

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2021-08-15
  • 2021-12-18
  • 2021-07-12
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-06-01
  • 2022-02-20
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案