今天线上的一台机器报出一个alarm
/export/home/web/www/httpd/bin/apachectl: /export/home/web/www/httpd/bin/httpd: cannot execute binary file
这个报错一般是Apache编译的architecture和系统的architecture不一致导致的。这台机器有1111天未重启,几经换手,已经不知道当时是哪个team配置的。
root@localhost:~ # uptime
1:17am up 1111 day(s), 11:23, 4 users, load average: 0.02, 0.02, 0.04
root@localhost:~ # uname -a
SunOS localhost 5.9 Generic_122301-29 i86pc i386 i86pc
不过可以判断出是架构不符合的问题。
root@localhost:/export/home/web/www/httpd/bin # isainfo -vk
32-bit i386 kernel modules
root@localhost:/export/home/web/www/httpd/bin # file httpd
httpd: ELF 64-bit LSB executable Version 1, dynamically linked, stripped