都是管理系统服务的命令。service和chkconfig是SysVInit命令,systemctl是Systemd命令。

 

service
说明:Ubuntu的默认命令
功能:Check/Start/Stop services

示例:service --status-all、service tomcat stop

 

chkconfig
说明:CentOS 7之前的默认命令
功能:Check/Start/Stop services + Enable/Disable services + Register/Deregister services

示例:chkconfig --list、chkconfig tomcat stop

 

systemctl
说明:CentOS 7('15~)及之后版本的默认命令,兼容了service命令
功能:Check/Start/Stop services + Enable/Disable services

示例:systemctl list-units、systemctl stop tomcat

 

扩展资料:https://blog.csdn.net/liumiaocn/article/details/89074418

 

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-11-21
  • 2021-09-25
  • 2021-05-03
猜你喜欢
  • 2021-08-28
  • 2022-01-04
  • 2021-09-08
  • 2022-01-23
  • 2022-12-23
  • 2022-02-17
  • 2021-08-11
相关资源
相似解决方案