uptime 系统时间、运行时间、连接数(没一个终端算一个连接)、在1,5,15分钟内系统负载 vmstat 1 3 监控系统CPU内存等,一秒采样一次,一共采样四次 pidstat命令 a.需要安装 yum install sysstat b.pidstat -p 2962 -u 1 3 监控29 ...
分类:
系统相关 时间:
2017-06-03 19:17:21
阅读次数:
177
前言: 一次偶发的运营商故障,导致部分区域访问BGP站点不可达,为了避免问题再次发生,准备了一套正向代理环境, 当出现类似问题时,可以通过修改DNS实现流量转移。 其核心原理为代理转发,缺点是正向代理后端接收的源IP为正向代理的IP,对WAF、日志统计等产生干扰,所以不建议长时间使用。 由于是单站点 ...
分类:
其他好文 时间:
2017-06-03 00:47:14
阅读次数:
189
<tr bgcolor="#FFFFFF"> <td width="18%" height="30" align="center">资源名称</td> <td width="82%" colspan="3"> <input type="checkbox" id="all">全选   ...
分类:
其他好文 时间:
2017-06-02 22:08:33
阅读次数:
248
Odoo8中,API接口分为traditaional style和record style两种类型: traditional style指的就是我们在7.0中使用的类型,def(self,cr,uid,ids,context)式的语法. record style 8.0及以后版本精简化参数后的风格, ...
利用GridView和ImageSwitcher的基本用法 public class MainActivity extends Activity { int[] imageIds = new int[] {R.drawable.bomb5,R.drawable.bomb6,R.drawable.bo ...
分类:
其他好文 时间:
2017-06-01 20:04:24
阅读次数:
262
操作方法:使用快捷键 option + space 或 command + y举个样例:如以下的样例,我在输入@O的时候会出现代码补全列表,这个时候我想查看列表中项目的定义能够使用快捷键 option + space 或 command + y来查看.查看方法的定义同上.使用快捷键 option + ...
分类:
移动开发 时间:
2017-06-01 13:51:34
阅读次数:
165
事件,当我们浏览完图片选中一张时,触发onchange事件将图片上传到服务器并回显、 Springmvc配置上传图片 FastDFS的Java接口使用 全局配置文件 fdfs_client.conf 工具类:FastDFSUtils 保存图片到FastDFS分布式文件系统 controller: ...
分类:
Web程序 时间:
2017-05-27 18:03:47
阅读次数:
635
这里是销售订单记录条数固定格式(self, cr, uid, ids, field_name, arg, context=None):def _sales_count(self, cr, uid, ids, field_name, arg, context=None): res = dict.fro ...
分类:
其他好文 时间:
2017-05-25 23:30:18
阅读次数:
271
<%@ livebos language='javascript' %>var ids = "-1";O_MASTER.FLoan.each(function(v) { return ids += "," + v.FParentId;});ids; ...
分类:
其他好文 时间:
2017-05-24 20:16:02
阅读次数:
154
curl-k-i-H‘content-type:application/json‘-H‘Authentication:Tokent=12345678‘-d‘{"ids":["22"]}‘"https://domain.com"
分类:
Web程序 时间:
2017-05-23 21:42:47
阅读次数:
171