class Solution {public: ListNode
*swapPairs(ListNode *head) { ListNode *a = NULL; ListNode *b = NULL; ListNode
*tail = NULL; ...
分类:
其他好文 时间:
2014-06-05 12:55:24
阅读次数:
216
[root@qycaishenye]#tail-f/data/caishenye/sa_9_0.logPHPWarning:mkdir():Nosuchfileordirectoryin/data/caishenye/sa_9_0.phponline18PHPFatalerror:Calltoundefinedfunctionmysql_pconnect()in/data/caishenye/sa_9_0.phponline25InteractivemodeenabledPHPWarning:mkdir():..
分类:
数据库 时间:
2014-05-27 04:00:48
阅读次数:
466
1.创建一个用户mandriva,其ID号为2002,基本组为distro(组ID为3003),附加组为linux[root@localhost~]#groupadd-g3003distro
[root@localhost~]#tail-1/etc/group
distro:x:3003:
[root@localhost~]#groupaddlinux
[root@localhost~]#tail-1/etc/group
linux:x:3004:[root@loca..
分类:
系统相关 时间:
2014-05-27 03:37:39
阅读次数:
409
首先我们需要创建一个文件/etc/resolvconf/resolv.conf.d/tail:#vim/etc/resolvconf/resolv.conf.d/tail然后我们在这个文件里写入自己要添加的DNS服务器,格式与以前的/etc/resolv.conf文件一致:nameserver
8....
分类:
其他好文 时间:
2014-05-26 13:32:29
阅读次数:
226
grep -2 -iIr "err\|warn\|fail\|crit" /var/log/*
查找日志中的所有问题grep . filename >filename1 移除空行cat site.log | grep -i unica | tail
-n 10find /path -name \*....
分类:
其他好文 时间:
2014-05-22 03:42:01
阅读次数:
306
开始在这里记录在jd的点滴成长~~~3月20日入职,距离今天两个月还差5天,不过这段时间完成的东西还真不少,学习了很多的linux命令和Axure产品设计,比如:awk神器、sed、sort、head、tail、find、xargs、grep等等,收获很大~~~其中到今天为止已经完成了一个功能非常强...
分类:
其他好文 时间:
2014-05-16 01:03:10
阅读次数:
314
启动opensips时报下列错误[root@OpenSIPSopensips]#opensipsctlstartINFO:StartingOpenSIPS:ERROR:PIDfile/var/run/opensips.piddoesnotexist--OpenSIPSstartfailed查看日志文件[root@OpenSIPSopensips]#tail-f/var/log/messagesMay1415:52:41OpenSIPSopensips:CRITICAL:core:y..
分类:
其他好文 时间:
2014-05-15 01:06:09
阅读次数:
344
简介通常日志管理是逐渐崩溃的——当日志对于人们最重要的时候,也就是出现问题的时候,这个渐进的过程就开始了。日志管理一般会经历一下3个阶段:初级管理员将通过一些传统工具(如cat、tail、sed、awk、perl以及grep)对日志进行检查,但它的适用范围仅限于少量的主机和日志文件类型;考虑到现实中...
分类:
其他好文 时间:
2014-05-09 08:18:10
阅读次数:
651
tail–f文件名.log看文件用的rails:tail-fproduction.logtail–100文件名.log看文件倒数多少行
分类:
系统相关 时间:
2014-05-09 06:44:32
阅读次数:
337
Consider a simple function that adds the first
N integers. (e.g.sum(5) = 1 + 2 + 3 + 4 + 5 = 15).Here is a simple Python
implementation that uses recu...
分类:
其他好文 时间:
2014-05-08 17:35:09
阅读次数:
286