我最近在我的mac(10.7)上安装了Apache 2.4.1并执行了“httpd”。在系统首选项网络共享关闭时,我收到了这两条错误消息:
//(1)-In the console//
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.65 for ServerName
(48)Address already in use: make_sock: could not bind to address [::]:80
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
//(2)-In the browser//
Not Found
The requested URL / was not found on this server.
Apache/2.2.20 (Unix) DAV/2 PHP/5.3.6 with Suhosin-Patch Server at 0.0.0.0 Port 80
//第二次澄清测试
快速实验:开启了网络共享。
我切换到2.4.1文件夹并运行“apachectl start”。这是代码:
usr/local/apache2/bin] root# apachectl start
org.apache.httpd: Already loaded
我在chrome
//添加了澄清3/25/12
这个mac已预先安装了apache 2.2.2。它的存在(它没有运行。我关闭了网络共享选项。)在我的硬盘驱动器干扰最近安装的apache 2.4.1?
当我打开网络共享时,我没有得到apache 2.2.2 404错误消息,但index.html页面位于0.0.0.0:80。我不明白为什么即使关闭网络共享选项,apache 2.4.1也不会运行。 我认为当我在“usr / local / apache2 / bin /”中执行“apachectl start”时,计算机会激活apache 2.2.2而不是2.4.1。 为什么?< / p>
有人能为这个问题添加一些清晰度吗?我想使用apache 2.4.1而不是被迫使用apache 2.2.2。谢谢!