当前位置:Gxlcms > PHP教程 > FreeBSD运行apache时常遇到的错误

FreeBSD运行apache时常遇到的错误

时间:2021-07-01 10:21:17 帮助过:18人阅读

FreeBSD运行apache时常遇到的错误

小狼@http://blog.csdn.net/xiaolangyangyang

1. 出错:

No such file or directory: Failed to enable the 'httpready' Accept Filter

解决方法:/etc/rc.conf

accf_data_load="YES"
accf_http_load="YES"
apache22_enable="YES"
apache22_http_accept_enable="YES"

重启计算机。

2. 出错:

Address already in use: make_sock: could not bind to address [::]:80

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

第一种解决方法:

freeBSD_fuwuqi2# ps -aux | grep "httpd"

root 1345 0.0 0.7 15992 6912 ?? Ss 9:07PM 0:00.19 /usr/local/sbin/httpd

www 1388 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.01 /usr/local/sbin/httpd

www 1389 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.00 /usr/local/sbin/httpd

www 1390 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.00 /usr/local/sbin/httpd

www 1391 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.01 /usr/local/sbin/httpd

www 1392 0.0 0.7 15992 6932 ?? I 9:07PM 0:00.01 /usr/local/sbin/httpd

root 1613 0.0 0.1 9748 1216 0 R+ 9:10PM 0:00.00 grep httpd

freeBSD_fuwuqi2# kill 1392

freeBSD_fuwuqi2# kill 1391

freeBSD_fuwuqi2# kill 1390

freeBSD_fuwuqi2# kill 1389

freeBSD_fuwuqi2# kill 1388

freeBSD_fuwuqi2# kill 1345

freeBSD_fuwuqi2# /usr/local/apache/bin/apachectl -k start

第二种解决方法:

freeBSD_fuwuqi2# sockstat -41

freeBSD_fuwuqi2# kill ……

freeBSD_fuwuqi2# /usr/local/apache/bin/apachectl -k start

以上就介绍了FreeBSD运行apache时常遇到的错误,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

人气教程排行