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

在centos系统中,如果/sbin目录下没有service这个命令,就会出现

bash: service: command not found

解决办法:

安装initscripts

yum list | grep initscripts
yum install initscripts -y
原文地址:https://www.cnblogs.com/John-2011/p/14985788.html