Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just installed Nginx on my machine to run Nginx. After install and config. I try to run nginx and got this problem:

bind() to 0.0.0.0:8843 failed (1:Operation not permitted)

I have no idea what this problem is and how to fix it. Google cannot find any related result also.

Is there anyway to fix?

Thank you

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

A random guess would be that either

  • The account you are using doesn't have permissions to open the port you have specified
  • The port is already in use.

Try temporarily disabling any firewalls and any kernel level security apps (apparmor/selinux). Use netstat -ntlp to see if anything else is already using the port.

share|improve this answer
    
As you notice the "permission" word. I found the answer. Read below: –  DucDigital Jul 27 '10 at 2:32
add comment

I found the problem, it's because of the permission that run CYGWIN.

On Windows 7 or Vista, need to run CYGWIN as administrator to be able to bind this port.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.