2011年10月9日

摘要: 日志分类:1. 连接时间的日志 连接时间日志一般由/var/log/wtmp和/var/run/utmp这两个文件记录,不过这 两个文件无法直接cat查看,并且该文件由系统自动更新,可以通过如下: w/who/finger/id/last/lastlog/ac 进行查看 [root@xhot ~]# who root tty1 2010-10-06 22:56 root pts/0 2010-10-06 22:26 (218.192.87.4) root pts/1 2010-10-06 23:41 (218.192.87.4) root pts/3 2010-... 阅读全文
posted @ 2011-10-09 22:46 站在高处眺望 阅读(156) 评论(0) 推荐(0) 编辑
 
摘要: 前一段时间装了一个RHEL。但是发现不管是telnet 还是ssh都登陆很慢,这让我很郁闷,在网上找了很久,终于找到了,将文件/etc/resolv.conf里面的DNS服务注释了就好了。这也可能是在虚拟机上没有DNS的原因吧。[root@leshy ~]# cat /etc/resolv.conf#nameserver 200.1.1.1[root@leshy ~]#网上高人的回复原因是:Its your /etc/resolv.confi bet if u go to the comp in a web browser its instant, yeah? why? because you 阅读全文
posted @ 2011-10-09 22:45 站在高处眺望 阅读(2655) 评论(0) 推荐(0) 编辑