Skip to main content
 Web开发网 » 操作系统

CentOS7.X service -all命令失效的问题

2021年10月13日6670百度已收录

[root@VM-0-10-centos ~]# service -allThe service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.翻译:服务命令只支持基本的LSB操作(启动、停止、重启、尝试重启、重载、强制重载、状态)。对于其他操作,请尝试使用systemctl命令

CentOS 7.x开始,CentOS开始使用systemd服务来代替daemon,原来管理系统启动和管理系统服务的相关命令全部由systemctl命令来代替。service命令只保留下了极少部分使用,大部分命令都要改用systemctl使用

评论列表暂无评论
发表评论
微信