Bash: service: command not found (service command not found) Error Solution

Source: Internet
Author: User

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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.