1、继承//创建Pet父类
publicclassPet{
privateStringname;
privateintage;
privateinthealth;
privateStringlove;
publicPet(){
//System.out.println("父类无参构造方法");
}
publicPet(Stringname,intage,inthealth,Stringlove){
this.name=name;
this.age=..
分类:
编程语言 时间:
2016-06-25 23:16:45
阅读次数:
203
deffunc1():
alist=[‘Cathy‘,‘Terry‘,‘Joe‘,‘Health‘,‘Lucy‘]
foriinrange(-1,-len(alist)-1,-1):
printi,alist[i]
deffunc2():
alist=[‘Cathy‘,‘Terry‘,‘Joe‘,‘Health‘,‘Lucy‘]
fori,nameinenumerate(alist):
print‘%d%s‘%(i,name)
importrandom
deffunc3():
alist=[‘Cathy‘..
分类:
编程语言 时间:
2016-06-23 19:01:02
阅读次数:
234
一.安装nagios_oracle_health插件项目地址:https://labs.consol.de/nagios/check_mysql_health/1.查看perl包有没有安装。[root@DB02~]#rpm-qa|grepperlperl-Test-Simple-0.92-136.el6.x86_64perl-ExtUtils-MakeMaker-6.55-136.el6.x86_64perl-version-0.77-136.el6.x86_64perl..
分类:
移动开发 时间:
2016-06-23 18:59:32
阅读次数:
721
keepalived服务的搭建Keepalived与LVS是两个不同的概念,但是两个作用的目的相似,都是保证服务的高可用性以及可扩展性,keepalived可提供vrrp和health-check功能,怎么说呢?这么解释吧,health-check功能就是当你的real-server出现了一台宕机坏掉了无法提供服务,例如web服务..
分类:
其他好文 时间:
2016-06-20 00:55:40
阅读次数:
280
一、ClusterHealth可以通过CURL命令发送REST命令,查询集群的健康状态:curl‘192.168.56.101:9200/_cat/health?v‘参数说明192.168.56.101是主机的IP地址,9200是监听的端口号,Elasticsearch默认监听的端口号就是9200得到相应的结果,详细相信请查看附件(cluster健康检查)可..
分类:
其他好文 时间:
2016-06-14 19:53:50
阅读次数:
370
ID
上级ID
分类名称
分类等级
是否最终分类 1
9797
健康与心理 Health
2
0
2
9797
美食 Cooking
2
0
3
9982
氨酚那敏片
3
1
4
9841
电源适配器
2
1
5
10373
电脑包
2
1
6
9841
其他笔记本配件...
分类:
其他好文 时间:
2016-06-02 14:41:43
阅读次数:
573
前言;上篇博文《keepalived_nginx实现discuz负载均衡和高可用》讲到,由于nginx将health_check功能放入到了商业版本,导致社区版本的nginx进行负载均衡,无法对后端的RS主机进行健康状态检测,所以现在准备使用tengine来取代nginx。我们只需要将前一章节VS主机上的nginx替换为..
分类:
Web程序 时间:
2016-05-30 07:41:53
阅读次数:
165
Poet and pastor John Donne famously proclaimed “No man is an island.” ...
分类:
Web程序 时间:
2016-05-29 21:39:36
阅读次数:
248
Can brain stimulation aid memory and brain health? Harvard Women’s Health Watch Image: Thinkstock The jury is still out, but magnetic fields or mild e ...
分类:
其他好文 时间:
2016-05-29 19:44:20
阅读次数:
198
4 [root@localhost:bin]#curl -XGEt http://10.0.2.15:9200/_cluster/health 5 关闭整个集群 6 [root@localhost:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nod ...
分类:
其他好文 时间:
2016-05-29 00:38:37
阅读次数:
163