centos解决bash: service: command not found 错误

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

猜你喜欢

转载自www.cnblogs.com/liangliangzz/p/12901389.html