问题
执行service
命令提示如下:
# service xxxx restart
bash: service: command not found
定位
# ls /sbin/service
ls: cannot access '/sbin/service': No such file or directory
发现service没有安装
解决
安装service
# yum install initscripts
执行service
命令提示如下:
# service xxxx restart
bash: service: command not found
# ls /sbin/service
ls: cannot access '/sbin/service': No such file or directory
发现service没有安装
安装service
# yum install initscripts