免费注册 查看新帖 |

Chinaunix

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

怎么查看服务器重起的原因? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-14 11:18 |只看该作者 |倒序浏览
不知道服务器为什么重起了,服务器是放在IDC机房里的


[root@dbhost log]# who wtmp
oracle   pts/1        Jan  4 08:05 (192.168.1.
oracle   pts/1        Jan  5 08:32 (192.168.1.
oracle   pts/1        Jan  5 11:32 (192.168.1.
oracle   pts/1        Jan  6 08:37 (192.168.1.
oracle   pts/1        Jan  7 08:31 (192.168.1.
oracle   pts/1        Jan  7 10:56 (192.168.1.
oracle   pts/1        Jan  8 08:23 (192.168.1.
oracle   pts/1        Jan  9 08:04 (192.168.1.
oracle   pts/1        Jan 11 09:22 (192.168.1.
oracle   pts/1        Jan 13 08:15 (192.168.1.
oracle   pts/1        Jan 14 08:37 (192.168.1.8)
[root@dbhost log]#
[root@dbhost log]# last
oracle   pts/1        192.168.1.8     Wed Jan 14 08:37   still logged in   
reboot   system boot  2.6.9-42.ELsmp   Tue Jan 13 19:53          (13:51)   
oracle   pts/1        192.168.1.8     Tue Jan 13 08:15 - 08:17  (00:02)   
oracle   pts/1        192.168.1.8     Sun Jan 11 09:22 - 09:23  (00:01)   
oracle   pts/1        192.168.1.8     Fri Jan  9 08:04 - 08:05  (00:01)   
oracle   pts/1        192.168.1.8     Thu Jan  8 08:23 - 08:25  (00:02)   
oracle   pts/1        192.168.1.8     Wed Jan  7 10:56 - 11:29  (00:32)   
oracle   pts/1        192.168.1.8     Wed Jan  7 08:31 - 08:32  (00:01)   
oracle   pts/1        192.168.1.8     Tue Jan  6 08:37 - 08:39  (00:01)   
oracle   pts/1        192.168.1.8     Mon Jan  5 11:32 - 11:54  (00:21)   
oracle   pts/1        192.168.1.8     Mon Jan  5 08:32 - 08:36  (00:03)   
oracle   pts/1        192.168.1.8     Sun Jan  4 08:05 - 08:09  (00:04)   


[root@dbhost log]# more messages
...
Jan 12 22:55:14 dbhost sshd(pam_unix)[729]: session opened for user oracle by (uid=0)
Jan 12 22:55:30 dbhost sshd(pam_unix)[729]: session closed for user oracle
Jan 13 08:15:50 dbhost sshd(pam_unix)[4479]: session opened for user oracle by (uid=0)
Jan 13 08:17:52 dbhost sshd(pam_unix)[4479]: session closed for user oracle
Jan 13 19:54:24 dbhost syslogd 1.4.1: restart.
Jan 13 19:54:24 dbhost syslog: syslogd startup succeeded
Jan 13 19:54:24 dbhost kernel: klogd 1.4.1, log source = /proc/kmsg started.
Jan 13 19:54:24 dbhost kernel: Bootdata ok (command line is ro root=LABEL=/ rhgb quiet)
Jan 13 19:54:24 dbhost kernel: Linux version 2.6.9-42.ELsmp (bhcompile@ls20-bc1-13.build.redhat.com) (gcc version 3.4.6 20060404 (
Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:32:02 EDT 2006
Jan 13 19:54:24 dbhost kernel: BIOS-provided physical RAM map:
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 0000000000000000 - 000000000009ac00 (usable)
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 000000000009ac00 - 00000000000a0000 (reserved)
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 0000000000100000 - 00000000bffc7440 (usable)
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 00000000bffc7440 - 00000000bffceac0 (ACPI data)
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 00000000bffceac0 - 00000000c0000000 (reserved)
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
Jan 13 19:54:24 dbhost kernel:  BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
Jan 13 19:54:24 dbhost syslog: klogd startup succeeded
...

论坛徽章:
0
2 [报告]
发表于 2009-01-14 11:21 |只看该作者
很怪,
昨天只有8点钟一次登陆
oracle   pts/1        Jan 13 08:15 (192.168.1.

系统确在 19:53分重起.
reboot   system boot  2.6.9-42.ELsmp   Tue Jan 13 19:53          (13:51)

论坛徽章:
0
3 [报告]
发表于 2009-01-14 13:28 |只看该作者
没有人遇到过吗?

论坛徽章:
0
4 [报告]
发表于 2009-01-14 13:37 |只看该作者
感觉你提供的信息不够,看不出

论坛徽章:
0
5 [报告]
发表于 2009-01-14 14:06 |只看该作者
你需要什么信息,我提供出来.

论坛徽章:
0
6 [报告]
发表于 2009-02-25 13:48 |只看该作者
问一下  你找到原因了 吗???
我有一服务器 也是这样....

论坛徽章:
0
7 [报告]
发表于 2009-02-25 14:18 |只看该作者
查看message 和 dmesg 里的信息

论坛徽章:
0
8 [报告]
发表于 2009-02-25 14:59 |只看该作者
谢谢 里面没看到可用的内容....

论坛徽章:
0
9 [报告]
发表于 2009-02-26 01:57 |只看该作者
在/var/log目录下有一个叫做acpid的文件,去看看里面是否有相关的动作。

论坛徽章:
0
10 [报告]
发表于 2009-02-26 10:47 |只看该作者
这个太难查了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP