华夏立人教育网,188bet滚球投注
,教育,北京 培训

188金宝博亚洲体育

主机配置:global_defs{???router_idNodeA?}?vrrp_scriptchk_http_port{???script"/opt/tomcat.pid"???interval5???weight2?}?vrrp_instanceVI_1{???stateMASTER???interfaceeth0???virtual_router_id52???priority150???advert_int1????authentication{?????auth_typePASS?????auth_pass1111???}????track_script{?????chk_http_port???}????virtual_ipaddress{?????10.10.195.212???}?}备机配置:global_defs{???router_idNodeB?}?vrrp_scriptchk_http_port{???script"/opt/tomcat.pid"???interval5???weight2?}?vrrp_instanceVI_1{???stateBACKUP???interfaceeth0???virtual_router_id52???priority100???advert_int1????authentication{?????auth_typePASS?????auth_pass1111???}????track_script{?????chk_http_port???}????virtual_ipaddress{?????10.10.195.212???}?}2.4配置/opt/tomcat.pid#!/bin/bash?#description:checktomcatserviceanddecidewhetherstopthekeepalivedornot?#editedbyzzh:2015-10-14??CATALINA_HOME=/users/shr/apache-tomcat-7.0.64?JAVA_HOME=/users/shr/util/JavaDir/jdk?exportCATALINA_HOME?exportJAVA_HOME??psax--width=1000|grep"org.apache.catalina.startup.Bootstrapstart"|grep-v"grep"|awk'{printf""}'|wc|awk'{print}'>tomcat_process_count.txt?readline?start_tomcat=$CATALINA_HOME/bin/startup.sh??if[${line}-lt1]?then?????echo-n"===Startingtomcat===:"?????${start_tomcat}?????#:sudoservicetomcatstart?????echo"===tomcatstartok.==="?????sleep3??????#checkthetomcatstatus.?????psax--width=1000|grep"org.apache.catalina.startup.Bootstrapstart"|grep-v"grep"|awk'{printf""}'|wc|awk'{print}'>tomcat_process_count.txt?????readline2????if[${line2}-lt1]?????then?????????sudoservicekeepalivedstop?????fi?fi?rmtomcat_process_count.txt?#shellend.3.日志查看3.1正常启动输入tail-f/var/log/messages查看启动keepalived日志:(MASTER:10.10.195.53)Sep2915:49:16shrKeepalived[5536]:StartingKeepalivedv1.2.19(09/21,2015)?Sep2915:49:16shrKeepalived_healthcheckers[5538]:NetlinkreflectorreportsIP10.10.195.53added?Sep2915:49:16shrKeepalived_healthcheckers[5538]:NetlinkreflectorreportsIP10.10.195.53added?Sep2915:49:16shrKeepalived_healthcheckers[5538]:RegisteringKernelnetlinkreflector?Sep2915:49:16shrKeepalived_healthcheckers[5538]:RegisteringKernelnetlinkcommandchannel?Sep2915:49:16shrKeepalived_healthcheckers[5538]:Openingfile'/etc/keepalived/keepalived.conf'.?Sep2915:49:16shrKeepalived_healthcheckers[5538]:Configurationisusing:6572Bytes?Sep2915:49:16shrKeepalived[5537]:StartingHealthcheckchildprocess,pid=5538?Sep2915:49:16shrKeepalived_healthcheckers[5538]:UsingLinkWatchkernelnetlinkreflector...?Sep2915:49:16shrKeepalived_vrrp[5539]:NetlinkreflectorreportsIP10.10.195.53added?Sep2915:49:16shrKeepalived_vrrp[5539]:NetlinkreflectorreportsIP10.10.195.53added?Sep2915:49:16shrKeepalived[5537]:StartingVRRPchildprocess,pid=5539?Sep2915:49:16shrKeepalived_vrrp[5539]:RegisteringKernelnetlinkreflector?Sep2915:49:16shrKeepalived_vrrp[5539]:RegisteringKernelnetlinkcommandchannel?Sep2915:49:16shrKeepalived_vrrp[5539]:RegisteringgratuitousARPsharedchannel?Sep2915:49:16shrKeepalived_vrrp[5539]:Openingfile'/etc/keepalived/keepalived.conf'.?Sep2915:49:16shrKeepalived_vrrp[5539]:Configurationisusing:36541Bytes?Sep2915:49:16shrKeepalived_vrrp[5539]:UsingLinkWatchkernelnetlinkreflector...?Sep2915:49:16shrKeepalived_vrrp[5539]:VRRPsockpool:[ifindex(2),proto(112),unicast(0),fd(10,11)]?Sep2915:49:17shrKeepalived_vrrp[5539]:VRRP_Instance(VI_1)TransitiontoMASTERSTATE?Sep2915:49:17shrKeepalived_vrrp[5539]:VRRP_Instance(VI_1)Receivedlowerprioadvert,forcingnewelection?Sep2915:49:18shrKeepalived_vrrp[5539]:VRRP_Instance(VI_1)EnteringMASTERSTATE?Sep2915:49:18shrKeepalived_vrrp[5539]:VRRP_Instance(VI_1)settingprotocolVIPs.?Sep2915:49:18shrKeepalived_vrrp[5539]:VRRP_Instance(VI_1)SendinggratuitousARPsoneth0for10.10.195.212?Sep2915:49:18shrKeepalived_vrrp[5539]:NetlinkreflectorreportsIP10.10.195.212added?Sep2915:49:18shrKeepalived_healthcheckers[5538]:NetlinkreflectorreportsIP10.10.195.212added?Sep2915:49:23shrKeepalived_vrrp[5539]:VRRP_Instance(VI_1)SendinggratuitousARPsoneth0for10.10.195.212(BACKUP:10.10.195.190)Sep2915:46:25server1Keepalived[18218]:StartingKeepalivedv1.2.19(09/25,2015)?Sep2915:46:25server1Keepalived_healthcheckers[18220]:NetlinkreflectorreportsIP10.10.195.190added?Sep2915:46:25server1Keepalived_healthcheckers[18220]:NetlinkreflectorreportsIP10.10.195.190added?Sep2915:46:25server1Keepalived_healthcheckers[18220]:RegisteringKernelnetlinkreflector?Sep2915:46:25server1Keepalived_healthcheckers[18220]:RegisteringKernelnetlinkcommandchannel?Sep2915:46:25server1Keepalived_healthcheckers[18220]:Openingfile'/etc/keepalived/keepalived.conf'.?Sep2915:46:25server1Keepalived_healthcheckers[18220]:Configurationisusing:6682Bytes?Sep2915:46:25server1Keepalived[18219]:StartingHealthcheckchildprocess,pid=18220?Sep2915:46:25server1Keepalived[18219]:StartingVRRPchildprocess,pid=18221?Sep2915:46:25server1Keepalived_vrrp[18221]:NetlinkreflectorreportsIP10.10.195.190added?Sep2915:46:25server1Keepalived_vrrp[18221]:NetlinkreflectorreportsIP10.10.195.190added?Sep2915:46:25server1Keepalived_healthcheckers[18220]:UsingLinkWatchkernelnetlinkreflector...?Sep2915:46:25server1Keepalived_vrrp[18221]:RegisteringKernelnetlinkreflector?Sep2915:46:25server1Keepalived_vrrp[18221]:RegisteringKernelnetlinkcommandchannel?Sep2915:46:25server1Keepalived_vrrp[18221]:RegisteringgratuitousARPsharedchannel?Sep2915:46:25server1Keepalived_vrrp[18221]:Openingfile'/etc/keepalived/keepalived.conf'.?Sep2915:46:25server1Keepalived_vrrp[18221]:Configurationisusing:36651Bytes?Sep2915:46:25server1Keepalived_vrrp[18221]:UsingLinkWatchkernelnetlinkreflector...?Sep2915:46:25server1Keepalived_vrrp[18221]:VRRP_Instance(VI_1)EnteringBACKUPSTATE?Sep2915:46:25server1Keepalived_vrrp[18221]:VRRPsockpool:[ifindex(2),proto(112),unicast(0),fd(10,11)]3.2主备切换l?当在主机(MASTER:10.10.195.53)中输入sudoservicekeepalivedstop,此时就会进行主备切换,主机切换成备机。实际上上文提到了引用计数的一大缺点,需要频繁更新引用计数。张雯雯说她的理想是用很人文的视角去做媒体,这才是她心中的与她文艺的气质相符的内容。Serial&Parallelserial和parallel对oldgeneration回收算法就是如上文所说的mark&compact;,这并不是serial或parallel的重点,其真正有意思的是younggeneration使用的copy算法,其copy算法并不是简单的将空间分为两个区域。觉得本文对你有帮助?请分享给更多人关注「ImportNew」,看技术干货JavaEE–JPA(7):ORM的核心注解–关系类型{###}(点击上方公众号,可快速关注)来源:dm_vincent链接:blog.csdn.net/dm_vincent/article/details/52877296关系映射的处理绝对是一个JPA应用最为重要的部分之一。
华夏立人
 
 关于我们  |   国际游学  |  188bet滚球投注  |   企业培训  |   企业招聘 |  @
当前分类:战略、经营与领导类课程  
  【近期公开课】  
培训课程名称
地 点
时 间
费用

  【推荐内训课程】  

培训课程名称
地 点
时 间
费用
后台整理中,请稍候访问

  【培训课程汇总目录】  

培训课程名称
地 点
时 间
费用
后台整理中,请稍候访问
  战略、经营与领导类课程
  ·战略、经营与领导类课程
      近期公开课
      推荐内训课程
      培训课程汇总目录
2007 188金宝博手机博彩 版权所有 ALL RIGHTS RESERVED
电话:010-65256350 网站备案 京ICP备05019910号 京公网安备 110108006811号