【发布时间】:2016-03-21 14:09:32
【问题描述】:
当我尝试运行 httpd 时出现以下错误。
[root@localhost bin]# ./apachectl -k start
./apachectl: line 78: 22059 Segmentation fault (core dumped) $HTTPD $ARGV
这是apachectl的启动脚本行如下:
74 if [ "x$ARGV" = "x" ] ; then
75 ARGV="-h"
76 fi
77
78 case $ARGV in
79 start|stop|restart|graceful|graceful-stop)
80 $HTTPD -k $ARGV
81 ERROR=$?
82 ;;
83 startssl|sslstart|start-SSL)
84 echo The startssl option is no longer supported.
85 echo Please edit httpd.conf to include the SSL configuration settings
86 echo and then use "apachectl start".
87 ERROR=2
88 ;;
检查 /var/log 上的消息
Mar 21 09:45:11 localhost kernel: httpd[22059]: segfault at 8 ip 00000039d360b453 sp 00007fff7e5e80a0 error 4 in ld-2.12.so[39d3600000+20000]
Mar 21 09:45:11 localhost abrtd: Directory 'ccpp-2016-03-21-09:45:11-22059' creation detected
Mar 21 09:45:11 localhost abrt[22060]: Saved core dump of pid 22059 (/apps/httpd-2.2.22/bin/httpd) to /var/spool/abrt/ccpp-2016-03-21-09:45:11-22059 (1904640 bytes)
Mar 21 09:45:11 localhost abrtd: Executable '/apps/httpd-2.2.22/bin/httpd' doesn't belong to any package
Mar 21 09:45:11 localhost abrtd: 'post-create' on '/var/spool/abrt/ccpp-2016-03-21-09:45:11-22059' exited with 1
Mar 21 09:45:11 localhost abrtd: Corrupted or bad directory '/var/spool/abrt/ccpp-2016-03-21-09:45:11-22059', deleting
我是否需要为“可执行文件'/apps/httpd-2.2.22/bin/httpd'不属于任何包”错误安装一些东西?抱歉,我对 httpd 和 linux 安装完全陌生。
【问题讨论】:
标签: apache httpd.conf httpserver