美文网首页
centos解决bash: service: command n

centos解决bash: service: command n

作者: Way_Kwok_Chu | 来源:发表于2021-04-23 11:52 被阅读0次

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