新浪云SAE Centos7 使用service 命令报错bash: service: command not found

今天使用新浪云SAE  报bash: service: command not found 错误

新浪云SAE Centos7 使用service 命令报错bash: service: command not found

解决方法

第一步: yum list | grep initscripts

新浪云SAE Centos7 使用service 命令报错bash: service: command not found

第二步:yum install initscripts -y

安装initscripts

新浪云SAE Centos7 使用service 命令报错bash: service: command not found

第三步 测试service命令是否可用,如果可用会出现以下信息

新浪云SAE Centos7 使用service 命令报错bash: service: command not found