前言:
当前大家对“centosbash补全”大体比较注重,姐妹们都需要学习一些“centosbash补全”的相关文章。那么小编在网上搜集了一些有关“centosbash补全””的相关内容,希望同学们能喜欢,你们一起来学习一下吧![root@bogon ~]# service rsyslog restart
-bash: service: command not found
----------------------------------------------------------------
如提示:-bash: service: command not found
则表明CentOS7系统中,/sbin目录下没有service命令,解决办法如下:
[root@localhost ~]# yum list|grep initscripts
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
initscripts.x86_64 9.49.46-1.el7 base
[root@localhost ~]# yum install initscripts -y
----------------------------------------------------------------
[root@bogon ~]# service rsyslog restart
Redirecting to /bin/systemctl restart rsyslog.service
如果是docker容器里安装的CentOS 7,可能会提示Failed to get D-Bus connection: Operation not permitted
(云渺书斋)
标签: #centosbash补全