1、在centos系统中,如果/sbin目录下没有service这个命令,就会出现bash: service: command not found
2、解决步骤如下:
3、输入yum list | grep initscripts
会出现:initscripts.x86_64
(其实一共有三个信息,但是后面根据版本不同,显示的信息也不同)
4、上面给出了可安装软件的yum源版本,然后执行yum install initscripts -y
5、此时service命令就可用了
1、在centos系统中,如果/sbin目录下没有service这个命令,就会出现bash: service: command not found
2、解决步骤如下:
3、输入yum list | grep initscripts
会出现:initscripts.x86_64
(其实一共有三个信息,但是后面根据版本不同,显示的信息也不同)
4、上面给出了可安装软件的yum源版本,然后执行yum install initscripts -y
5、此时service命令就可用了
本文标题:centos解决bash: service: command n
本文链接:https://www.haomeiwen.com/subject/lghcrltx.html
网友评论