Solution to port 80 occupied when Ngnix is configured in Windows

Source: Internet
Author: User

If you have configured IIS or Apache before configuring Ngnix, nginx may not be able to start. The following error message is displayed:

A new service called "Web Deployment Agent Service" (MsDepSvc) can also trigger "System" with PID = 4 to listen on port 80.

You can use the netstat-aon command to find out which process (through PID) is occupying port 80. The PID occupied by IIS here is 4 (System)
If Apache is in use, you only need to modify the VirtualHost in the configuration.
If it is IIS, it will be a little troublesome.
First, change the port of the Default Site from 80 to another port in inetmgr. Then stop the IIS Service (World Wide Web Publishing Service, that is, W3SVC ).
Then find the Service of the Web Deployment Agent Service (MsDepSvc) and stop it (IIS Remote proxy Service ).
In addition, if the SQL Server Reporting Services Service is also started, you need to disable the service.
Then Nginx should be able to start normally.

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.