http://wangwei007.blog.51cto.com/68019/1106735检查Linux系统日志error和mysql错误日志的脚本http://wangwei007.blog.51cto.com/68019/1102836picklehttp://wangwei007.blog.51cto.com/68019/1045577python用zipfile模块打包文件或是目录、解压zip文件实例http://blog.163.co..
分类:
编程语言 时间:
2014-05-27 04:14:22
阅读次数:
434
[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
线上机器的流量图都采用MRTG来画的,有些机器部署了同一业务,需要知道这些业务跑了多少带宽,由于MRTG的图有每个时间点的流量数据log,所以就在这个log的基础上取数据用rrdtool合并起来,就可以知道这些机器总共跑了多少带宽了。原理:定期(这里是5分钟)从mrtg服务器上同步l..
分类:
其他好文 时间:
2014-05-27 03:38:35
阅读次数:
413
Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)记住共享的是一个文件夹,不是一个文件
分类:
其他好文 时间:
2014-05-27 03:11:02
阅读次数:
286
Android 项目开发的时候
出现:
Description
Resource Path
Location Type
Unknown error: java.lang.NullPointerException
出现的原因:
是因为,我在导入外部项目的时候,没有添加依赖包(appcompat-V7;appcompat_v7_3)。
解决方案:
将 这两...
分类:
编程语言 时间:
2014-05-22 13:23:28
阅读次数:
327
今天服务器大规模报错,大部分用户无法登陆,小部分可以登陆,很是奇怪。
查看log,调试代码,发现问题是在oauth认证的时候出了问题,报 timestamp_refused。
google了下,问了高手,问题定位在服务器的时间可能有问题
执行date,发现比其他服务器快了5分钟...
分类:
其他好文 时间:
2014-05-22 12:30:23
阅读次数:
228
测试结论
mysql版本 5.1
表类型: innodb, row_format=compact (这是默认的行格式)
插入超过10个blob, blob的数据量很小(
插入超过10个blob, blob的数据量很大(>768字节), 插入失败:报 Got error 139 from storage engine。
注意,如果mysql服...
分类:
数据库 时间:
2014-05-22 11:55:10
阅读次数:
347
第一种:
1、进旧站后台:系统管理→数据库备份。单击下部“全选”后“提交”进行备份;
2、将旧站的所有文件上传到新站点,删除install目录下的install.lock文件;
3、象安装全新站点一样进行网站初始化安装;
4、进入新站后台:系统管理→数据库还原。同样“全选”,然后单击“提交”进行数据库还原。
5、后台进入“HTML更新”,选择“一键更新网站”。
OK...
分类:
其他好文 时间:
2014-05-22 08:59:15
阅读次数:
453
【题目】
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found in the array, return [-1, -1].
For example,
Given [5...
分类:
其他好文 时间:
2014-05-22 06:44:39
阅读次数:
265
出现此情况,应该是使用了gradle wrapper时候,创建工程时使用的gradle版本比当前使用的版本低得情况。此时log会提示 去修改 project_root/gradle/wrapper/gradle-wrapper.properties这个文件中
distributionUrl=http\://services.gradle.org/distributions/gradle-1.1...
分类:
其他好文 时间:
2014-05-20 14:01:16
阅读次数:
239