What if a Windows service cannot be stopped and the server does not want to be restarted?

Source: Internet
Author: User

Once, a friend needs to restart a service to perform operations in a friend's environment. As a result, the Service reports an error, saying that the service cannot be stopped and has been in the stopping status.

 

Tell our friends that we may need to restart the machine. The result is the performance time of our friends.

 

He used the following two commands to kill the service process and restart the service in services. MSC.

Tasklist/svc
Taskkill/f/PID xxxx

 

The first command will list the service name and the ID of the process in which the service resides.

 

The second command killed the process with the specified ID.

Related Article

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.