首页 > 技术文章 > centos解决bash: service: command not found 错误

liangliangzz 2020-05-16 17:28 原文

bash: service: command not found

解决步骤如下:
1、 输入

yum list | grep initscripts

会出现:

initscripts.x86_64

2、 上面给出了可安装软件的yum源版本,然后执行

yum install initscripts -y

3、 此时service命令就可用了

 

本解决方法借鉴于

https://blog.csdn.net/qq_14847537/article/details/78400333

 

推荐阅读