The default port 80 of nginx in Win7 is occupied by System, resulting in nginx startup error.

Source: Internet
Author: User


The default port 80 of nginx in Win7 is occupied by System, and the solution for nginx startup error reporting is in win7 32-bit flagship version. To start nginx in version 1.0.8, the following error is displayed:
[Plain] 13:55:59 [emerg] 7864 #2376: bind () to 0.0.0.0: 80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) run the following command in the cmd window: [plain] C: \ Users \ Administrator> netstat-aon | findstr: 80 www.2cto.com. Port 80 is occupied. The occupied pid is 4 and its name is System. How can I disable it? 1. Open the Registry: regedit 2. Find HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ services \ HTTP 3. Find a REG_DWORD type item Start, change it to 0. 4. restart the SYSTEM, the System process will not start nginx.exe after Port 80 is restarted. Enter 127.0.01 in the browser and you will see "Welcome to nginx !" . Author love _ coder

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.