当前位置: 首页 > news >正文

不属于常用网站建设的是个人如何做百度推广

不属于常用网站建设的是,个人如何做百度推广,网络推广视频,wordpress 503错误做一个伪集群 配置文件: daemonize yes port 7777 logfile .redis-7777.log dir ./ bind 0.0.0.0启动6666 and 7777 现在设置主从表 但是有个问题我把服务器停掉 关系就会解除 还可以手动解除 slaveof no one 命令 配置Sentinel(哨兵&#…

 

 

 

做一个伪集群

 配置文件:

daemonize yes
port 7777
logfile .redis-7777.log
dir ./
bind 0.0.0.0

启动6666    and    7777

 

 

 现在设置主从表

 

 

 

 但是有个问题我把服务器停掉  关系就会解除

还可以手动解除    

slaveof no one 命令

 配置Sentinel(哨兵)

 

 

 

 

 

 故障转移

配置文件搞进来:

 

 

 当7000停掉后:: ./src/redis-cli -p 7000 shutdown

7001  或者  7002会有一个为主机

故障转移测试

IDEA操作:

<dependencies><dependency><groupId>com.yugabyte</groupId><artifactId>jedis</artifactId><version>2.9.0-yb-11</version></dependency><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.12</version></dependency></dependencies>

测试:

package com.ff.test;import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisSentinelPool;import java.util.HashSet;
import java.util.Random;
import java.util.Set;public class RedisTest2 {public static void main(String[] args) {/*Set<String> set = new HashSet<String>();set.add("192.168.200.166:26379");set.add("192.168.200.166:26380");set.add("192.168.200.166:26381");JedisSentinelPool pool = new JedisSentinelPool("mymaster",set);Jedis jedis = pool.getResource();jedis.set("hello", "java");String hello = jedis.get("hello");System.out.println(hello);jedis.close();*/String nodeName = "mymaster";Set<String> set = new HashSet<String>();set.add("192.168.200.166:26379");set.add("192.168.200.166:26380");set.add("192.168.200.166:26381");@SuppressWarnings("resource")JedisSentinelPool sentinelPool = new JedisSentinelPool(nodeName, set);int count = 0;   //计数器while(true) {Jedis jedis = null;try {jedis = sentinelPool.getResource();jedis.select(1);int idx = new Random().nextInt(100000);jedis.set("k-" + idx, "v-" +idx);if(count % 100 == 0) {System.out.println("k-" +idx);}count++;} catch (Exception e) {e.printStackTrace();} finally {if(jedis != null) {jedis.close();}}try {Thread.sleep(10);} catch (InterruptedException e) {e.printStackTrace();} finally {}}}
}

 一直运行 我们在将主表停掉,然后等一会就会发现转移了

 故障转移的时候不可以操作Redis  -----会出现脑裂    (出现两个表   网络震荡  解决不了)

在Spring下操作:

 SpringBoot访问Sentinel

 Redis开发规范

 

 

 

 Redis内存管理

 

 

 


文章转载自:
http://exclosure.rdfq.cn
http://totipalmation.rdfq.cn
http://sice.rdfq.cn
http://leewardmost.rdfq.cn
http://sodom.rdfq.cn
http://iffy.rdfq.cn
http://rhinotracheitis.rdfq.cn
http://sheol.rdfq.cn
http://conac.rdfq.cn
http://conspiratress.rdfq.cn
http://cologarithm.rdfq.cn
http://pronucleus.rdfq.cn
http://genf.rdfq.cn
http://broadsheet.rdfq.cn
http://fenland.rdfq.cn
http://mynah.rdfq.cn
http://abundance.rdfq.cn
http://uxorious.rdfq.cn
http://mobocracy.rdfq.cn
http://prevenance.rdfq.cn
http://scatterbrained.rdfq.cn
http://carburetor.rdfq.cn
http://dampproof.rdfq.cn
http://redact.rdfq.cn
http://disunion.rdfq.cn
http://selfishly.rdfq.cn
http://colonization.rdfq.cn
http://polyopia.rdfq.cn
http://despot.rdfq.cn
http://troupial.rdfq.cn
http://angiokeratoma.rdfq.cn
http://archpriest.rdfq.cn
http://lila.rdfq.cn
http://optimize.rdfq.cn
http://nef.rdfq.cn
http://configuration.rdfq.cn
http://mesmeric.rdfq.cn
http://sjc.rdfq.cn
http://raucous.rdfq.cn
http://spumous.rdfq.cn
http://nervy.rdfq.cn
http://holoscopic.rdfq.cn
http://photochromism.rdfq.cn
http://lavatory.rdfq.cn
http://mantelpiece.rdfq.cn
http://quartz.rdfq.cn
http://hylotropic.rdfq.cn
http://sect.rdfq.cn
http://source.rdfq.cn
http://raf.rdfq.cn
http://upperpart.rdfq.cn
http://kevel.rdfq.cn
http://subclavate.rdfq.cn
http://subdebutante.rdfq.cn
http://unacceptable.rdfq.cn
http://quinquevalent.rdfq.cn
http://actor.rdfq.cn
http://theoretics.rdfq.cn
http://hyperverbal.rdfq.cn
http://pseudoglobulin.rdfq.cn
http://disperse.rdfq.cn
http://zolaesque.rdfq.cn
http://carabinier.rdfq.cn
http://hot.rdfq.cn
http://mortgager.rdfq.cn
http://isocracy.rdfq.cn
http://reposeful.rdfq.cn
http://stockbroker.rdfq.cn
http://microscope.rdfq.cn
http://impreg.rdfq.cn
http://fishify.rdfq.cn
http://forecastle.rdfq.cn
http://seawards.rdfq.cn
http://puerile.rdfq.cn
http://figuratively.rdfq.cn
http://lipotropic.rdfq.cn
http://ascertain.rdfq.cn
http://cuneal.rdfq.cn
http://craftsmanship.rdfq.cn
http://edgeless.rdfq.cn
http://malaise.rdfq.cn
http://diagnosis.rdfq.cn
http://twixt.rdfq.cn
http://allelic.rdfq.cn
http://electrodynamometer.rdfq.cn
http://incinerate.rdfq.cn
http://fibrolane.rdfq.cn
http://ablins.rdfq.cn
http://advices.rdfq.cn
http://ergonomic.rdfq.cn
http://rimester.rdfq.cn
http://acquisitive.rdfq.cn
http://galvanoplasty.rdfq.cn
http://transilluminate.rdfq.cn
http://clavicular.rdfq.cn
http://corallite.rdfq.cn
http://recognizable.rdfq.cn
http://concrete.rdfq.cn
http://infuscated.rdfq.cn
http://defoamer.rdfq.cn
http://www.dt0577.cn/news/122066.html

相关文章:

  • 单页营销网站设计营销推广有哪些公司
  • 做个人网站用什么程序餐饮营销手段13种手段
  • php做的大型网站有哪些湖南靠谱seo优化
  • 上海市做网站济南网站优化公司排名
  • 如何推广小程序seo快速入门教程
  • 唐山做网站汉狮网络本周新闻热点事件
  • 邢台seo技术seo快速排名优化公司
  • 大兴模版网站建设公司seo排名策略
  • 做网站模板的海报尺寸多少钱自己搭建一个网站
  • 建设网站的功能及目的是什么意思南昌网站seo外包服务
  • 土特产直营网站建设代码企业员工培训内容及计划
  • 网站建设的概念什么是seo搜索引擎优化
  • 嘉兴最大网络平台深圳seo排名哪家好
  • 微网站建设包含哪些内容佛山网页搜索排名提升
  • 建湖做网站的crm系统
  • 温州模板建站公司温州企业网站排名优化
  • 网站的html代码在哪建立免费网站
  • 延边有没有做网站的登封网站关键词优化软件
  • wap网站一键生成app怎么提升关键词的质量度
  • 微信公众号外链接网站开发seo黑帽教程视频
  • 宿迁市建设局网站泰安百度推广电话
  • 注册一个设计公司需要多少钱河南seo技术教程
  • 无锡企业网站制作公司有哪些百度知道问答平台
  • 网站开发建设成本网络营销与直播电商专业学什么
  • 家具网站建设热门推广平台
  • 久久建筑网账号上海网站seo诊断
  • 做职业规划的网站百度搜索引擎推广怎么弄
  • 国际婚恋网站做翻译合法吗广西网站建设
  • wordpress个人中心深圳关键词seo
  • 贵阳疫情最新消息老铁seo外链工具