問題
執(zhí)行service
命令提示如下:
# service xxxx restart
bash: service: command not found
定位
# ls /sbin/service
ls: cannot access '/sbin/service': No such file or directory
發(fā)現(xiàn)service沒有安裝
解決
安裝service
# yum install initscripts
執(zhí)行service
命令提示如下:
# service xxxx restart
bash: service: command not found
# ls /sbin/service
ls: cannot access '/sbin/service': No such file or directory
發(fā)現(xiàn)service沒有安裝
安裝service
# yum install initscripts