开发者社区> 问答> 正文

请问阿里云主机centos6.4的/var/log/下这几个文件是记录什么的??


backup.dir这个文件是记录什么的?0字节
big-version 这个文件是记录什么的?0字节
gshell.log 这个文件是记录什么的?

展开
收起
麻子来了 2016-06-03 23:18:07 9432 0
5 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    回 5楼(麻子来了) 的帖子
    楼主您好,

    一个简单的方法是,自您创建ECS后,曾经运行过什么命令来安装程序,如可用 history 命令来查看历史的运行命令。

    -------------------------

    回 7楼(麻子来了) 的帖子
    您好,

    为尝试安装了阿里云公共镜像里的CentOS 6.5 64位系统,之后查看 /var/log,是有您所提到的几个文件或目录:

    [root@iZ23jyp275rZ ~]# cat /etc/redhat-release
    CentOS release 6.5 (Final)
    [root@iZ23jyp275rZ ~]# ls -l /var/log/
    total 280
    drwxr-x---. 2 root root   4096 May 28  2014 audit
    -rw-r--r--  1 root root      0 Feb 22 14:18 backup-dir
    -rw-r--r--  1 root root      0 Feb 22 14:18 big-version
    -rw-r--r--  1 root root   2085 Jun  5 15:38 boot.log
    -rw-------. 1 root utmp      0 Feb 22 14:18 btmp
    drwxr-xr-x. 2 root root   4096 Nov 11  2010 ConsoleKit
    -rw-------  1 root root   1529 Jun  5 16:10 cron
    -rw-r--r--  1 root root  22505 Jun  5 15:38 dmesg
    -rw-r--r--  1 root root      0 Feb 22 14:18 dmesg.old
    -rw-r--r--. 1 root root 166021 Jun  5 15:37 dracut.log
    -rw-r--r--  1 root root    397 Jun  5 15:38 gshell.log
    -rw-r--r--  1 root root      0 Feb 22 14:18 kernel-version
    -rw-r--r--. 1 root root    292 Jun  5 16:09 lastlog
    -rw-------. 1 root root      0 Feb 22 14:18 maillog
    -rw-------. 1 root root  33296 Jun  5 15:38 messages
    -rw-r--r--  1 root root    475 Jun  5 15:57 ntp.log
    drwxr-xr-x. 2 ntp  ntp    4096 Dec 20  2014 ntpstats
    drwxr-xr-x. 2 root root   4096 Aug 19  2013 prelink
    -rw-r--r--  1 root root      0 Feb 22 14:18 rdate.log
    -rw-r--r--  1 root root     79 Jun  5 15:36 repair.log
    drwxr-xr-x. 2 root root   4096 Jun  5 15:38 sa
    -rw-------. 1 root root    506 Jun  5 16:09 secure
    -rw-------. 1 root root      0 Feb 22 14:18 spooler
    -rw-------. 1 root root      0 Feb 22 14:18 tallylog
    -rw-r--r--  1 root root      0 Feb 22 14:18 vmstart.log
    -rw-rw-r--. 1 root utmp   6912 Jun  5 16:09 wtmp
    -rw-------. 1 root root      0 Feb 22 14:18 yum.log

    其中gshell.log内容如下:

    [root@iZ23jyp275rZ log]# more gshell.log
    [20160605,15:38:33] [33458272] Gshell start
    [20160605,15:38:33] [33458272] Threads created
    [20160605,15:38:33] [1099733312] read thread start
    [20160605,15:38:33] [1089243456] exec thread start
    [20160605,15:38:33] [1115191616] check thread start
    [20160605,15:38:33] [1115191616] xs_write: [control/shell/stateout] [1] [1]
    [20160605,15:38:33] [1115191616] xs_write: [control/shell/stateout] [1] [1]

    关于 gshelld的服务进程,可参考这个: http://blog.csdn.net/huangtao117/article/details/47088355

    其它两个文件的出处,如果您很想知道,可能需要咨询一下阿里云官方,因为系统镜像是阿里云制作的。

    2016-06-05 11:14:44
    赞同 展开评论 打赏
  • 回 1楼云代维的帖子
    哦,非常感谢,不是系统产生的。希望大神指导啊~那我怎样知道是什么程序产生的??

    -------------------------

    回 6楼dongshan8的帖子
    但是只能看到1000个命令啊。。。。。。。。。

    -------------------------

    回 8楼dongshan8的帖子
    非常感谢!!!!!
    2016-06-04 21:05:00
    赞同 展开评论 打赏
  • log 文件夹下一般都是各个软件的日志!
    2016-06-04 14:06:39
    赞同 展开评论 打赏
  • 回 1楼(云代维) 的帖子
    跑这里来了啊~~~


    哦,不对,你一直在这里


    那边刷新不了新帖是吧,咋回事
    2016-06-03 23:35:51
    赞同 展开评论 打赏
  • 这几个都不是系统产生的,看看你都安装了什么程序吧。

    -------------------------

    Re:回 1楼(云代维) 的帖子
    引用第2楼围观者于2016-06-03 23:35发表的 回 1楼(云代维) 的帖子 :
    跑这里来了啊~~~


    哦,不对,你一直在这里

    ....... [url=https://bbs.aliyun.com/job.php?action=topost&tid=284042&pid=793858][/url]


    不清楚哦
    2016-06-03 23:26:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云云原生 Serverless 技术实践营 PPT 演讲 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载