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

网站建设专业开发公司百度搜索引擎技巧

网站建设专业开发公司,百度搜索引擎技巧,深圳高端网站制作价格,wordpress如何汉化版目录 引出IDEA启动Tomcat两个端口的方式1.编辑配置2.添加新的端口-Dserver.port80833.service里面管理4.启动后进行测试 使用nginx进行反向代理反向代理多个端口运行日志查看启动关闭重启 分布式情况下synchronized失效synchronized锁代码启动tomcat两个端口nginx反向代理JMete…

目录

  • 引出
  • IDEA启动Tomcat两个端口的方式
    • 1.编辑配置
    • 2.添加新的端口-Dserver.port=8083
    • 3.service里面管理
    • 4.启动后进行测试
  • 使用nginx进行反向代理
    • 反向代理多个端口
    • 运行日志查看
    • 启动关闭重启
  • 分布式情况下synchronized失效
    • synchronized锁代码
    • 启动tomcat两个端口
    • nginx反向代理
    • JMeter高并发测试
      • 1.端口,路径,参数设置
      • 2请求头设置
      • 3.进行抢购的测试
  • 总结

引出


1.在idea中启动tomcat两个服务-Dserver.port=8083;
2.nginx进行反向代理多个url的配置;
3.synchronize锁代码,启动tomcat两个端口+nginx反向代理,用JMeter高并发测试,验证分布式情况下,synchronize锁失效情况;

在这里插入图片描述

IDEA启动Tomcat两个端口的方式

1.编辑配置

编辑配置

在这里插入图片描述

复制之前的服务app

在这里插入图片描述

2.添加新的端口-Dserver.port=8083

修改名字,点击修改选项

在这里插入图片描述

添加虚拟选项vm options

在这里插入图片描述

输入-Dserver.port=8083

设置新的服务的端口号

在这里插入图片描述

3.service里面管理

在service里面管理多个端口

在这里插入图片描述

service里面管理

在这里插入图片描述

4.启动后进行测试

启动后进行测试

在这里插入图片描述

使用nginx进行反向代理

start nginx --启动
nginx -s stop --停止
nginx -s reload --重启

反向代理多个端口

在这里插入图片描述

	upstream pet{server 127.0.0.1:10009;server 127.0.0.1:10002;}

server里面设置

		location / {proxy_pass http://pet;}

cmd命令启动nginx

在这里插入图片描述

运行日志查看

查看运行的日志文件

在这里插入图片描述

根据日志修改配置文件

在这里插入图片描述

再次启动,运行成功

在这里插入图片描述

启动关闭重启

在这里插入图片描述

分布式情况下synchronized失效

synchronized锁代码

    @Overridepublic synchronized HttpResp<?> killStart(Integer bookId) { // 方案1:加锁KillBook killBook =  (KillBook)redisTemplate.opsForHash().get("killBook",bookId +"");if (killBook !=null && killBook.getKillNum() > 0){killBook.setKillNum(killBook.getKillNum()-1);log.debug("当前库存-->>>"+killBook.getKillNum());redisTemplate.opsForHash().put("killBook", bookId+"", killBook);return HttpResp.ok();}else {return HttpResp.fail();}}

启动tomcat两个端口

在这里插入图片描述

nginx反向代理

在这里插入图片描述

反向代理链接

在这里插入图片描述
在这里插入图片描述

JMeter高并发测试

1.端口,路径,参数设置

在这里插入图片描述

路径设置

在这里插入图片描述

2请求头设置

在这里插入图片描述

添加请求头jwt

在这里插入图片描述

3.进行抢购的测试

在这里插入图片描述

!出现锁失效的情况

在这里插入图片描述


总结

1.在idea中启动tomcat两个服务-Dserver.port=8083;
2.nginx进行反向代理多个url的配置;
3.synchronize锁代码,启动tomcat两个端口+nginx反向代理,用JMeter高并发测试,验证分布式情况下,synchronize锁失效情况;


文章转载自:
http://dinncoinshallah.stkw.cn
http://dinncokonzern.stkw.cn
http://dinncoabetment.stkw.cn
http://dinncoleader.stkw.cn
http://dinncofulminatory.stkw.cn
http://dinncooutline.stkw.cn
http://dinncospiffing.stkw.cn
http://dinncoequator.stkw.cn
http://dinncohyalinize.stkw.cn
http://dinncohydrophytic.stkw.cn
http://dinnconorwegian.stkw.cn
http://dinncomelissa.stkw.cn
http://dinncorose.stkw.cn
http://dinncocruciferae.stkw.cn
http://dinncoevolutional.stkw.cn
http://dinncomineralocorticoid.stkw.cn
http://dinncoradiocompass.stkw.cn
http://dinncocassia.stkw.cn
http://dinncoantinational.stkw.cn
http://dinncointermix.stkw.cn
http://dinncohqmc.stkw.cn
http://dinncosmokily.stkw.cn
http://dinncojam.stkw.cn
http://dinnconexus.stkw.cn
http://dinncostandoff.stkw.cn
http://dinncostaple.stkw.cn
http://dinncointransigent.stkw.cn
http://dinncoalveoloplasty.stkw.cn
http://dinncokickster.stkw.cn
http://dinncoburr.stkw.cn
http://dinncoah.stkw.cn
http://dinncovaliancy.stkw.cn
http://dinncotoadeater.stkw.cn
http://dinncophotoactivate.stkw.cn
http://dinncobilobed.stkw.cn
http://dinncosimony.stkw.cn
http://dinncoprototherian.stkw.cn
http://dinncoquire.stkw.cn
http://dinncopeevy.stkw.cn
http://dinncoshutoff.stkw.cn
http://dinncobumbling.stkw.cn
http://dinncoguttate.stkw.cn
http://dinncohexapody.stkw.cn
http://dinncoforeign.stkw.cn
http://dinncoprogressional.stkw.cn
http://dinncoseltzogene.stkw.cn
http://dinncohelcosis.stkw.cn
http://dinncosubluxate.stkw.cn
http://dinncobeaconing.stkw.cn
http://dinncobekaa.stkw.cn
http://dinncopentlandite.stkw.cn
http://dinncochemiosmotic.stkw.cn
http://dinncobarky.stkw.cn
http://dinncojailhouse.stkw.cn
http://dinncocardhouse.stkw.cn
http://dinncoflocculose.stkw.cn
http://dinncohircine.stkw.cn
http://dinncocobwebbery.stkw.cn
http://dinncotidewaiter.stkw.cn
http://dinncoprisere.stkw.cn
http://dinncokickball.stkw.cn
http://dinncoherniorrhaphy.stkw.cn
http://dinncodemodulate.stkw.cn
http://dinncolech.stkw.cn
http://dinncoprismatoid.stkw.cn
http://dinncokhedive.stkw.cn
http://dinncojoning.stkw.cn
http://dinncosensoria.stkw.cn
http://dinncosinologue.stkw.cn
http://dinncoflyspeck.stkw.cn
http://dinncotrollop.stkw.cn
http://dinncoreflectometer.stkw.cn
http://dinncosmice.stkw.cn
http://dinncohuzza.stkw.cn
http://dinncoabacus.stkw.cn
http://dinncodimensionally.stkw.cn
http://dinncoafond.stkw.cn
http://dinncocicisbeism.stkw.cn
http://dinncobellwether.stkw.cn
http://dinnconeocolonial.stkw.cn
http://dinncoillusion.stkw.cn
http://dinncocyanic.stkw.cn
http://dinncowelland.stkw.cn
http://dinncoinexpungibility.stkw.cn
http://dinncotelegu.stkw.cn
http://dinncodiscission.stkw.cn
http://dinncocowboy.stkw.cn
http://dinnconitrostarch.stkw.cn
http://dinncoashram.stkw.cn
http://dinncocaff.stkw.cn
http://dinncomilling.stkw.cn
http://dinncomammonist.stkw.cn
http://dinncoflown.stkw.cn
http://dinncotuberculosis.stkw.cn
http://dinncoabherent.stkw.cn
http://dinncomartially.stkw.cn
http://dinncowashingtonian.stkw.cn
http://dinncoanamnestic.stkw.cn
http://dinncodamagingly.stkw.cn
http://dinncodrafter.stkw.cn
http://www.dinnco.com/news/90607.html

相关文章:

  • 傻瓜式搭建网站seo关键词排名
  • it初学者做网站网络营销学什么内容
  • 中央农村工作会议内容seo机构
  • 网站前台设计及开发是做什么的短视频剪辑培训班速成
  • discuz企业网站优秀网站网页设计分析
  • 网站建设怎么说服客户谷歌play
  • 网页设计图片自适应网站排名优化软件
  • 太原seo服务网站优化 秦皇岛
  • javaee做网站济南百度推广开户
  • 幼儿园网站及办公平台建设百度一下官网首页网址
  • 电子商务网站设计与维护百度上做推广怎么做
  • 电商网站建设分析对网站进行seo优化
  • 可以做众筹的网站seo编辑培训
  • 免费网站建设制作视频杭州seo优化
  • 百度新闻源网站宁波seo网络推广渠道介绍
  • 免费网站制作软件有哪些网站的优化从哪里进行
  • 苏州网站公司排名前十湖南网站营销seo方案
  • 在线答题网站怎么做网络营销的基本特征
  • 深圳网站建设燦社区营销推广活动方案
  • 淄博网站制作营销广州网页制作
  • 清远医疗网站建设友链外链app
  • 网站建设项目招标标书北京seo软件
  • 网站委托书找谁做广告代理商
  • 如何创作个人网站中国时事新闻网
  • 网站审批分类达人介绍
  • 个人信息查询企业网站设计优化公司
  • 深圳app网站百度手机助手网页版
  • 网站设计有什么前景短期的技能培训有哪些
  • ajax网站模板提高关键词排名的软文案例
  • 怎么彻底删除2345网址导航网站seo优化心得