CouldNotBindToAddress
时间:2007-07-11 来源:opbsder
make_sock: could not bind to address 0.0.0.0:80 no listening sockets available
There are three common causes for this error message.
Address is already in use
Something else is already using the port in question.
Run one of the following commands to check if a running process is holding the port needed by apache open.
On Linux/Unix run $> netstat -plant On Windows run $> netstat -ano On Mac OS X run $> netstat -Wan |grep 80
fixme: netstat is sensitive to (linux/*bsd/macosx/win32) platforms. needs arguments for each?
Once you see these results, you can choose to kill the program in question, or change the port that Apache uses.
Note for Windows users, Skype is known to use port 80. Also, make sure Windows IIS Web Server is not running.
Conflicting Listen directives
A configuration like this:
Listen *:80 Listen 1.2.3.4:80
will incur the same error message. This can be remedied by disambiguating the ip/port numbers.
You're not root
Unix based systems disallow non-root users to bind processes to port numbers below 1024. Get root!