linux笔记 bash: service: command not found

问题

执行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

你可能感兴趣的:(linux笔记 bash: service: command not found)