Bash: service: commandnotfound (service command not found) error solution
Source: Internet
Author: User
Bash: service: commandnotfound (service command not found) error solution today encountered a problem, the problem is as follows: when starting the named service, the following error message appears: bash: service: commandnotfound, so I went to the Internet to search... bash: service: command not found (service command not found) error solution today encountered a problem, the problem is as follows: when starting the named service, the following error message appears: bash: service: command not found. so I searched the internet and found that there were a lot of people asking questions, but there were very few answers, or they were just a mess, most of the answer is that there is a problem with PATH, but what is the problem? They didn't make it clear. I think this is the reason. The service command is executed by the ROOT user, and the faulty user switches to the ROOT user with suroot. this command does not bring the environment to the system! Run the following command to avoid errors: su-root note: su is followed by a space and the horizontal line is followed by a space. do not omit it.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.