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
import java.io.IOException;import
java.util.StringTokenizer;import org.apache.hadoop.conf.Configuration;import
org.apache.hadoop.fs.Path;import org.ap...
分类:
其他好文 时间:
2014-05-22 01:11:55
阅读次数:
337
返回目录为什么要对minLength和maxLength这两个方法进行扩展呢,是因为这样一个需求,在用户注册时,可以由用户自己决定他们输入的字符,中文,英文,数字均可,这样做了之后,使用户的体验更好,但对于程序来说就有些麻烦了,因为我们的Length方法只针对英文字符和数字而言的原因1:事实上,真实...
分类:
Web程序 时间:
2014-05-22 00:56:17
阅读次数:
334
1.编译时出现No rule to make target
错误,尝试删除XXX/proj.android/obj/local/armeabi/objs这个文件夹。2.android.mk正确写法LOCAL_PATH
:= $(call my-dir)include $(CLEAR_VARS)LOC...
分类:
移动开发 时间:
2014-05-21 22:59:16
阅读次数:
374
在CentOS 6.5安装MySQL
5.6.17,安装到最后一个rpm文件MySQL-server时安装命令是:rpm -ivh
MySQL-server-5.6.17-1.el6.x86_64.rpm出现了错误信息:error: Failed dependencies: libai...
分类:
数据库 时间:
2014-05-21 22:57:20
阅读次数:
779
p是输入目录代码如下importosdefgetDirList(p):#b=[];filepath=piffilepath=="":returnbfilepath=filepath.replace("/","\\")iffilepath[-1]!="\\":filepath=filepath+"\\"a=os.listdir(filepath)#print(a)forxina:path=filepath+xprint(path)ifos.path.isdir(path):c=getDirLi..
分类:
编程语言 时间:
2014-05-21 01:31:14
阅读次数:
417
{IMG_PATH}v9即wwwroot\statics\p_w_picpaths\v9{CSS_PATH}default_bule.css即wwwroot\statics\css\default_bule.cssm表示模块名wwwroot\phpcms\modules下的文件夹c表示控制器名phpcms/modules/模块/*.phpa表示事件名phpcms/modules/模块/*.php中方法名称
分类:
Web程序 时间:
2014-05-21 01:28:39
阅读次数:
365
mysqlreport是www.hackmysql.com开发的一款基于perl语言编写的状态报告工具。它将showstatus和showinnodbstatus的输出结果进行处理,使得输出信息的可读性更高。由于是perl编写的脚本,所以需要先安装perl环境,再与mysql数据库连接,因此还需要安装数据库接口DBI和数据库驱动D..
分类:
数据库 时间:
2014-05-20 22:57:52
阅读次数:
520
http://qt-project.org/doc/qtcreator-3.0/creator-project-cmake.html方法1:使用qmake编辑工程文件xxxx.pro添加equals(QT_ARCH,"arm"){target.path=/tmp/$${TARGET}/binINSTALLS+=target}CONFIG(debug,debug|release){message(thisisdebugversion)}else{DEFINES+=QT_NO_DEBUG_..
分类:
系统相关 时间:
2014-05-20 18:15:36
阅读次数:
478
用xtrabackup进行数据备份恢复时出现如下问题:InnoDBBackupUtilityv1.5.1-xtrabackup;Copyright2003,2009InnobaseOyandPerconaInc2009-2011.AllRightsReserved.ThissoftwareispublishedundertheGNUGENERALPUBLICLICENSEVersion2,June1991.option_ibbackup_binaryisautodetect,..
分类:
数据库 时间:
2014-05-20 17:45:40
阅读次数:
573