Home  >  Q&A  >  body text

nginx bind failed

As shown in the picture, after searching for a long time, I still can’t solve it. Why does it keep failing? I'm a noob, please give me some answers.

Additional: After looking at the port occupancy, why are there two?

怪我咯怪我咯2713 days ago452

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-16 17:18:35

    The first 8080 is used,
    The second one requires elevated privileges.

    Generally, as long as the port is not in use, it can be bound.

    Supplement:
    The mac system will install apache by default and run port 8080.

    reply
    0
  • 迷茫

    迷茫2017-05-16 17:18:35

    1. Is nginx already started? If you start it again, there will be a conflict. reload

    2. Ports below 1024 require root permissions, change 1001 to a port greater than 1024

    reply
    0
  • Cancelreply