一、客户端执行
cd/usr/local/zabbix/conf/
wgethttp://img006.com/badusoft/zabbix/tcp.sh
chmod+xtcp.sh
sed-i‘s/#UnsafeUserParameters=0/UnsafeUserParameters=1/g‘/usr/local/zabbix/conf/zabbix_agentd.conf
sed-i‘$aUserParameter=tcp[*],sh/usr/local/zabbix/conf/tcp...
分类:
其他好文 时间:
2015-07-01 18:38:34
阅读次数:
226
[Lab2-1]OSPF区域间选路OSPF专题的补充,我们来了解下OSPF区域间的选路每个router的cost值配置如下R1:S0/0:IPospfcost1R2:S0/0:IPOSPFCost1S0/1:IPospfcost10S0/2:IPOSPFCost2R3:S0/0:IPospfcost10S0/1:IPospfcost2S0/2:IPospfcost2R4:S0/0:IPospfcost2S0/1:IPospfcost2S0/2:IPo..
分类:
其他好文 时间:
2015-07-01 18:36:23
阅读次数:
210
今天工作中,需要在一个小的视图中创建一个小的tableview,我先创建好加载的视图,然后相对于这个视图创建tableview,坐标设置为(0,0,view.frame.width,view.frame.height),然后运行一看发现在view上边界和tableview有一段的间隔,原来以为是因为在导航栏的页面的原因,后来发现设置self.automaticallyAdjustsScrollVi...
分类:
其他好文 时间:
2015-07-01 18:34:30
阅读次数:
105
概述
定义一个范围,将在此范围之外释放一个或多个对象
当做别名(命名空间)
当做try-finally处理
三种方式...
分类:
其他好文 时间:
2015-07-01 18:34:48
阅读次数:
111
60 Permutation Sequence链接:https://leetcode.com/problems/permutation-sequence/
问题描述:
The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in o...
分类:
其他好文 时间:
2015-07-01 18:33:55
阅读次数:
95
//: Playground - noun: a place where people can play
import UIKit
//使用 enum
来创建枚举。如同类和其他命名类型,枚举也可以有方法
enum Rank:
Int {
case Ace =
1
case Two, Three, Four, Five, Six, ...
分类:
其他好文 时间:
2015-07-01 18:33:33
阅读次数:
106
Git是目前最流行的版本管理系统,学会Git几乎成了开发者的必备技能。
Git有很多优势,其中之一就是远程操作非常简便。本文详细介绍5个Git命令,它们的概念和用法,理解了这些内容,你就会完全掌握Git远程操作。...
分类:
其他好文 时间:
2015-07-01 18:32:56
阅读次数:
82
//: Playground - noun: a place where people can play
import UIKit
//多返回值函数
func countss(string:
String) -> (vowels:
Int,consonants:
Int,others: Int) {
var vowels =
0, consonants...
分类:
其他好文 时间:
2015-07-01 18:30:19
阅读次数:
115
命令模式:将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化,对请求排队或记录请求日志,以及支持可撤销的操作。
首先定义一个Receiver类,用来执行请求public class Receiver { public void action(){
System.out.println("执行请求");
}
}接着定义Command抽象类,用来声明执行...
分类:
其他好文 时间:
2015-07-01 18:31:58
阅读次数:
92
//: Playground - noun: a place where people can play
import Cocoa
class Person {
var residence:
Residence?//供选连接
}
class Residence {
var rooms = [Room]()
var number...
分类:
其他好文 时间:
2015-07-01 18:31:26
阅读次数:
112
//: Playground - noun: a place where people can play
import Cocoa
var str1 =
"供选链接和强制拆包的不同。"
class Person {
var residence:
Residence?//供选连接
}
class Residence {
var ro...
分类:
其他好文 时间:
2015-07-01 18:31:54
阅读次数:
94
OK,现在是想要学习一下hdfs的api和shell的使用方法。
首先,需要了解的是hdfs是什么?它有什么特点?它能用来做什么?
hdfs:
使用方式:hdfs --config confdir command
dfs运行一个文件系统的命令,在hadoop支持的文件系统中。
namenode -format 格式化dfs文件系统
secondar...
分类:
其他好文 时间:
2015-07-01 18:29:10
阅读次数:
118
重温了一下《IOS 7 Programming: Pushing the Limits》这本书,有许多零碎的知识点,记录一下,勉强算作是学习笔记吧。
CALayer
Part 1
动画的基本单元就是 UIView,它是非常重量级的对象,所以不能多用。但你又想让你的 UI 看起来更酷,那就需要使用 Core Animation 了。Core Animation 中最基础也最重要的部...
分类:
其他好文 时间:
2015-07-01 18:29:00
阅读次数:
86
引用传递在java中有重要作用这里 讲解三个范例:
范例一:
class Demo{
int temp=30;//此处为了方便,不封装
};
public class Test{
public static void main(String args[]){
Demo d1=new Demo();//实例化Demo对象,实例化之后temp=30
d1.temp= 50 ;//修改tem...
分类:
其他好文 时间:
2015-07-01 18:28:50
阅读次数:
128
CA证书应用一:给Outlook邮件添加数字签名,保证邮件的真实性和正确性。...
分类:
其他好文 时间:
2015-07-01 18:28:22
阅读次数:
8305
XCTest 的小技巧:批量重用测试、测试异步操作...
分类:
其他好文 时间:
2015-07-01 18:30:18
阅读次数:
114
class Solution:
# @param {string} num1
# @param {string} num2
# @return {string}
def multiply(self, num1, num2):
if num1 == "0" or num2 == "0": return "0"
...
分类:
其他好文 时间:
2015-07-01 18:28:17
阅读次数:
86