The Windows port is occupied by the process but the process is closed

Source: Internet
Author: User

The Windows port is occupied by the process but the process is turned off before this program is opened, prompting for a failure or the port being occupied.

This is because the process uses a similar statement such as System ("Start A.exe"), or when the process is closed using a *.bat

The batch file (called cmd) closes the process. Cause the other processes have not exited yet,

Neither the Windows CMD process nor the conhost process will completely exit. At this point, if the parent process to start start exits,

Will not quit very clean. The port is left behind.


Solution:
Just use Task Manager to kill all the see CMD process, there must be one or several of the dirty process left behind. Conhost will quit after he kills.
Then you'll find the port or whatever is released. Pro-Test effective ... Although Conhost did not quit

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.