Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a novice at Ubuntu and I've been given the task of installing and configuring NGINX to run ASP.NET applications. This is probably a stupid question but I'm using this tutorial as a starting guide and I'm stuck with where I have to set a socket with this command:

fastcgi-mono-server4 /applications=/:/var/www/ /socket=tcp:

What path am I supposed to replace /var/www/ with? If I run the command as is I get this error:

Error creating the socket: Address already in use root@ubuntu:~# kill 9000;

Please help.

share|improve this question

Only one thing can bind onto a port at once. The error is simply saying there's something else running on port 9000. I personally have a few things that opt for 9000 so I would just change theport to something else (like 50333).

Or you could use a file-based UNIX socket, using the /filename=/path/to/file argument and then just connect your httpd to that instead of the TCP socket. That's a useful tactic if you have millions of servers you need to bind but not required when you only have one or two.

share|improve this answer

Your Answer


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.