学习shell脚本入门后,慢慢要尝试编写一些脚本练练手,在这先简单的学习写个系统内存的监控。1、首先先要确定一下截取一下需要关注的内存使用值,可使用free命令来操作free-m显示一般在监控内存是我们都是截取第三行(-/+buffers/cache)的值。确定后可以使用管道线和grep命令..
分类:
系统相关 时间:
2016-02-25 21:29:46
阅读次数:
265
1.平时用框架用久了,直接执行原生的sql反而做起来反应迟钝了。今天遇到一个问题,就是直接执行一个添加的sql语句,然后我用了TP框架的M()->query();方法。运行以后,会报Call to a member function free_result() on a non-object这行错误
分类:
其他好文 时间:
2016-02-22 19:12:17
阅读次数:
120
Here are all files for New Genius & Flash, offered by wobd2 and some experienced technicians. Hope this helps. * Free download K-Touch software WIN XP
分类:
其他好文 时间:
2016-02-22 15:27:08
阅读次数:
180
1. Install Visual studio 2013 community version which is free to use for personal usage. 2. Setup the debugger follow the instruction in http://doc.qt
今天突然想起原来用cpu使用率曲线画正弦波,于是打算换个思路用内存占用率画正弦波形。 主要用到malloc函数和free函数来操作内存。 毕竟我不是ACMer所以就中规中矩的写。 首先实现矩形波。 首先找找思路,先写函数接口,这是一个很好的编程习惯。 那么就: int occupy_Mbyte( i
分类:
其他好文 时间:
2016-02-19 22:05:08
阅读次数:
207
自然,你是不会犯错的。不过现在是凌晨两点,你正在赶一份工作报告,你在readme.txt中添加了一行: $ cat readme.txt Git is a distributed version control system. Git is free software distributed und
分类:
其他好文 时间:
2016-02-19 10:24:25
阅读次数:
217
1、oracel 查看表空间使用情况。 SELECT SUM(bytes) / (1024 * 1024) AS free_space, tablespace_name FROM dba_free_space GROUP BY tablespace_name; SELECT a.tablespace...
分类:
数据库 时间:
2016-02-18 15:09:46
阅读次数:
190
现在,你已经学会了修改文件,然后把修改提交到Git版本库,现在,再练习一次,修改readme.txt文件如下: Git is a distributed version control system. Git is free software distributed under the GPL. 然
分类:
其他好文 时间:
2016-02-18 13:31:15
阅读次数:
239
题目链接 一道神奇的点分治 貌似有很多做法,我觉得BIT要好些一些(雾 要求经过黑点数<k就用BIT区间查询前缀 对于每个点用 BIT[0,k-经过黑点数]的最大值+路径长度 使用点分治做到O(n*log22n) 貌似还有O(nlog2n)的做法(雾 1 #include<algorithm> 2
分类:
其他好文 时间:
2016-02-18 08:48:41
阅读次数:
180
原文地址: http://www.ha97.com/4546.html Linux系统出现了性能问题,一般我们可以通过top、iostat、free、vmstat等命令来查看初步定位问题。其中iostat可以提供更丰富的IO性能状态数据。 1. 基本使用$iostat -d -k 1 10参数 -d
分类:
移动开发 时间:
2016-02-16 23:25:29
阅读次数:
345