免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 68665 | 回复: 63
打印 上一主题 下一主题

[系统管理] [已解决]急救,cannot execute binary file问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-09 14:28 |只看该作者 |正序浏览
本帖最后由 xiaogang247 于 2013-10-15 09:41 编辑

请求Linux高人帮忙:
我用netterm登录Linux系统出现如下信息( 主机名称是chinatool )
   (none) (Linux release 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009) (3
)

login: mfg
Password:
Last login: Thu Feb  9 14:34:34 from 192.168.1.88
You have new mail.
-bash: /bin/hostname: cannot execute binary file
-bash: /bin/grep: cannot execute binary file
-bash: /bin/grep: cannot execute binary file
-bash: /bin/grep: cannot execute binary file
-bash: /bin/grep: cannot execute binary file
[mfg@(none) ~]$

mfg@ (none)  这个是怎么回事,none应该是localhost 吧?
在网上找了好多资料,整了几个小时还是未能解决,请高人指点,万分感谢.



论坛徽章:
0
64 [报告]
发表于 2012-02-11 11:49 |只看该作者
本帖最后由 南极雨 于 2012-02-11 11:50 编辑

回复 63# xiaogang247


/bin 目录下的二进制文件有没有全部尝试过?
还是就这几个不能用了?
比如find ?

论坛徽章:
0
63 [报告]
发表于 2012-02-11 11:47 |只看该作者
回复 62# 南极雨


谢谢,这个问题已经解决了,是/bin下面的hostname .grep 等命令不知什么原因用不了了, 我重新安装*.rpm包之后就行了.

   

论坛徽章:
0
62 [报告]
发表于 2012-02-11 11:36 |只看该作者
回复 1# xiaogang247


    分别whereis hostname
whereis grep 查看一下路径,在配制下你的开机启动的脚本里面的hostname 和grep的路径.

也有可能是你的环境变量损坏了, 如果就是/bin/ 目录的话看看echo $PATH的输出

论坛徽章:
0
61 [报告]
发表于 2012-02-11 10:42 |只看该作者
回复 60# chenyx

额,没有备用的服务器,不好停机整硬件,是否还有办法在linux系统上查找是什么原因重启的呢?

老兄,你今天也在加班呀?

   

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
60 [报告]
发表于 2012-02-11 10:05 |只看该作者
从日志里面没看出来有那个硬件出问题了

论坛徽章:
0
59 [报告]
发表于 2012-02-11 08:39 |只看该作者
回复 56# chenyx

能在日志里看出来 是哪个硬件报错的吗?


   

论坛徽章:
0
58 [报告]
发表于 2012-02-11 08:36 |只看该作者
回复 57# dengbao2001


Feb 10 15:23:27 chinatool syslogd 1.4.1: restart.

192.168.1.12 是Linux服务器的IP地址


   

论坛徽章:
13
技术图书徽章
日期:2014-04-29 14:15:42IT运维版块每日发帖之星
日期:2015-12-12 06:20:00IT运维版块每日发帖之星
日期:2015-08-30 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-08-02 06:20:002015年亚洲杯之澳大利亚
日期:2015-04-03 15:03:12申猴
日期:2015-03-20 09:00:292015年迎新春徽章
日期:2015-03-04 09:54:452015年辞旧岁徽章
日期:2015-03-03 16:54:15季节之章:冬
日期:2015-01-20 17:08:47双子座
日期:2014-11-21 16:30:31技术图书徽章
日期:2014-07-11 16:29:08
57 [报告]
发表于 2012-02-10 18:17 |只看该作者
Feb 10 15:23:53 chinatool pcscd: winscard.c:304:SCardConnect() Reader E-Gate 0 0 Not Found
Feb 10 15:23:53 chinatool last message repeated 2 times
Feb 10 15:23:53 chinatool gconfd (mfg-5561): Resolved address "xml:readwrite:/home/mfg/.gconf" to a writable configuration source at position 0
Feb 10 15:23:56 chinatool pcscd: winscard.c:304:SCardConnect() Reader E-Gate 0 0 Not Found
Feb 10 15:24:52 chinatool gconfd (mfg-5561): Exiting
Feb 10 15:24:52 chinatool gdm[5345]: Master halting...
Feb 10 15:24:52 chinatool pcscd: winscard.c:304:SCardConnect() Reader E-Gate 0 0 Not Found
Feb 10 15:24:53 chinatool shutdown[5345]: shutting down for system halt


是这个时间吗?

192.168.1.12你的IP吗?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
56 [报告]
发表于 2012-02-10 17:58 |只看该作者
回复 52# xiaogang247


    楼主的服务器无故自己重启了?是不是硬件有问题啊.
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP