centos -bash: service: command not found
时间: 2023-09-05 11:12:56 浏览: 129
bash scp command not found的解决方法
As an AI language model, I don't have access to the environment or server you are using. However, the error message "command not found" usually indicates that the command or utility you are trying to use is not installed on your system, or it is not included in your system's PATH environment variable.
To resolve this issue, you can try installing the missing command or utility using the package manager available on your system. For CentOS, you can use the yum package manager to install the missing utility. For example, if you are trying to use the "service" command, you can install it by running the following command as the root user:
```
sudo yum install -y systemd
```
This will install the systemd package, which provides the "service" command on CentOS. Once the installation is complete, you should be able to use the "service" command without any issues.
阅读全文