centos系统service command not found解决办法

centos系统中使用service命令提示【先确认用户权限】:

解决步骤:

1.输入:yum list | grep initscripts 【给出可安装的yum源版本】

2.service命令找不到显然是除了错误,可以直接更新或者安装initscripts

yum install initscripts

安装完毕,测试下可以使用了。

猜你喜欢

转载自www.cnblogs.com/itwlp/p/9287888.html