文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>CouldNotBindToAddress

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!

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载