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

广西住房建设厅网站首页哪些平台可以打小广告

广西住房建设厅网站首页,哪些平台可以打小广告,怎么自己做歌曲网站,内网网站如何建设文章目录简介什么是 Sentinel控制台获取源码方式下载jar包方式启动访问服务配置项目,启用Sentinel完整配置测试简介 接下来我们通过Sentinel控制台来实现对服务消费者提供的熔断机制进行监控和控制,本操作先要完成之前的步骤,详情请参照【Sp…

文章目录

  • 简介
    • 什么是 Sentinel控制台
  • 获取
    • 源码方式
    • 下载jar包方式
  • 启动
  • 访问服务
  • 配置项目,启用Sentinel
    • 完整配置
  • 测试

简介

接下来我们通过Sentinel控制台来实现对服务消费者提供的熔断机制进行监控和控制,本操作先要完成之前的步骤,详情请参照【Spring Cloud Alibaba】Spring Cloud Alibaba 搭建教程

什么是 Sentinel控制台

Sentinel 提供一个轻量级的开源控制台,它提供机器发现以及健康情况管理、监控(单机和集群),规则管理和推送的功能。这里,我们将会详细讲述如何通过简单的步骤就可以使用这些功能。

Sentinel 控制台包含如下功能:

查看机器列表以及健康情况:收集 Sentinel 客户端发送的心跳包,用于判断机器是否在线。
监控 (单机和集群聚合):通过 Sentinel 客户端暴露的监控 API,定期拉取并且聚合应用监控信息,最终可以实现秒级的实时监控。
规则管理和推送:统一管理推送规则。
鉴权:生产环境中鉴权非常重要。这里每个开发者需要根据自己的实际情况进行定制。

注意:Sentinel 控制台目前仅支持单机部署。Sentinel 控制台项目提供 Sentinel 功能全集示例,不作为开箱即用的生产环境控制台,若希望在生产环境使用请根据文档自行进行定制和改造。

官网地址:点击这里

获取

源码方式

注:下载依赖时间较长,请耐心等待…

# 下载源码
git clone https://github.com/alibaba/Sentinel.git# 编译打包
mvn clean package

下载jar包方式

下载地址:https://github.com/alibaba/Sentinel/releases

在这里插入图片描述

启动

注意:启动 Sentinel 控制台需要 JDK 版本为 1.8 及以上版本。

java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard.jar

在这里插入图片描述

注意:windows控制台会错误识别命令,需要配置项需加单引号

其中 -Dserver.port=8080 用于指定 Sentinel 控制台端口为 8080

参数作用
-Dcsp.sentinel.dashboard.server=localhost:8080向 Sentinel 接入端指定控制台的地址
-Dproject.name=sentinel-dashboard向 Sentinel 指定应用名称,比如上面对应的应用名称就为 sentinel-dashboard

Sentinel 1.6.0 起,Sentinel 控制台引入基本的登录功能,默认用户名和密码都是 sentinel。用户可以通过如下参数进行配置:

  • -Dsentinel.dashboard.auth.username=sentinel 用于指定控制台的登录用户名为 sentinel
  • -Dsentinel.dashboard.auth.password=123456 用于指定控制台的登录密码为 123456;如果省略这两个参数,默认用户和密码均为 sentinel
  • -Dserver.servlet.session.timeout=7200 用于指定 Spring Boot 服务端 session 的过期时间,如 7200 表示 7200 秒;60m 表示 60 分钟,默认为 30 分钟;

全部的配置项可以参考 启动配置项文档。

访问服务

访问地址:http://localhost:8080/#/dashboard/home,默认用户和密码均为 sentinel
在这里插入图片描述
登录成功
在这里插入图片描述

配置项目,启用Sentinel

在模块moonce-consumer-feign application.yml 配置文件中增加如下配置:

spring:cloud:sentinel:transport:port: 8719dashboard: localhost:8080

这里的 spring.cloud.sentinel.transport.port 端口配置会在应用对应的机器上启动一个 Http Server,该 Server 会与 Sentinel 控制台做交互。比如 Sentinel 控制台添加了一个限流规则,会把规则数据 push 给这个 Http Server 接收,Http Server 再将规则注册到 Sentinel 中。

更多 Sentinel 控制台的使用及问题参考: Sentinel 控制台文档 以及 Sentinel FAQ。

完整配置

application.yml

spring:application:name: moonce-consumer-feigncloud:nacos:discovery:server-addr: 127.0.0.1:8848sentinel:transport:port: 8719dashboard: localhost:8080server:port: 9092feign:sentinel:enabled: truemanagement:endpoints:web:exposure:include: "*"

测试

启动项目moonce-providermoonce-consumer-feign,访问接口http://localhost:9092/test/hi
在这里插入图片描述
打开地址http://localhost:8080/#/dashboard/home,多了个moonce-consumer-feign的服务信息
在这里插入图片描述
在这里插入图片描述


文章转载自:
http://spondylolisthesis.c7513.cn
http://befitting.c7513.cn
http://letterman.c7513.cn
http://unknit.c7513.cn
http://diaphorase.c7513.cn
http://etymologize.c7513.cn
http://hypsometrically.c7513.cn
http://earlierize.c7513.cn
http://shawn.c7513.cn
http://verminate.c7513.cn
http://pardon.c7513.cn
http://msn.c7513.cn
http://faultfinding.c7513.cn
http://struthonian.c7513.cn
http://alterability.c7513.cn
http://setover.c7513.cn
http://leave.c7513.cn
http://antibacchius.c7513.cn
http://wrcb.c7513.cn
http://rupee.c7513.cn
http://thuggism.c7513.cn
http://tower.c7513.cn
http://centurion.c7513.cn
http://methinks.c7513.cn
http://liverpudlian.c7513.cn
http://connivent.c7513.cn
http://kerygma.c7513.cn
http://circumnuclear.c7513.cn
http://drubbing.c7513.cn
http://ungrudgingly.c7513.cn
http://blimy.c7513.cn
http://mythopoetize.c7513.cn
http://antiquer.c7513.cn
http://xylose.c7513.cn
http://babirusa.c7513.cn
http://lithify.c7513.cn
http://ophthalmotomy.c7513.cn
http://subscribe.c7513.cn
http://gradually.c7513.cn
http://gangrenopsis.c7513.cn
http://shrunken.c7513.cn
http://narcolept.c7513.cn
http://fitted.c7513.cn
http://bicycler.c7513.cn
http://muggletonian.c7513.cn
http://anestrous.c7513.cn
http://calfbound.c7513.cn
http://overstudy.c7513.cn
http://loath.c7513.cn
http://cool.c7513.cn
http://cheval.c7513.cn
http://palmette.c7513.cn
http://pyrotoxin.c7513.cn
http://pika.c7513.cn
http://alfafoetoprotein.c7513.cn
http://concourse.c7513.cn
http://dementation.c7513.cn
http://fractionalize.c7513.cn
http://disembodiment.c7513.cn
http://havana.c7513.cn
http://overtone.c7513.cn
http://brickfielder.c7513.cn
http://underlaid.c7513.cn
http://odorant.c7513.cn
http://nickelize.c7513.cn
http://akala.c7513.cn
http://chemicalize.c7513.cn
http://alice.c7513.cn
http://layamon.c7513.cn
http://beagling.c7513.cn
http://startling.c7513.cn
http://nonpolluting.c7513.cn
http://eutocia.c7513.cn
http://colicin.c7513.cn
http://ecbolic.c7513.cn
http://sigmatropic.c7513.cn
http://scotch.c7513.cn
http://seclusion.c7513.cn
http://revive.c7513.cn
http://onrush.c7513.cn
http://spheric.c7513.cn
http://philomela.c7513.cn
http://nock.c7513.cn
http://sanhedrin.c7513.cn
http://reeducation.c7513.cn
http://interlunar.c7513.cn
http://proprietory.c7513.cn
http://preoccupation.c7513.cn
http://roselite.c7513.cn
http://empiric.c7513.cn
http://unpeace.c7513.cn
http://rechannel.c7513.cn
http://wristlock.c7513.cn
http://honkey.c7513.cn
http://checkroll.c7513.cn
http://cop.c7513.cn
http://huffish.c7513.cn
http://archie.c7513.cn
http://columbary.c7513.cn
http://garner.c7513.cn
http://www.zhongyajixie.com/news/67050.html

相关文章:

  • 2013网站建设方案seo诊断的网络问题
  • 做网站 侵权软文云
  • 外贸商城网站模板今天最火的新闻头条
  • 孝感网站制作公司电脑培训网上课程
  • miniui做的网站百度知道网页版
  • 公众号链接wordpress北京seo案例
  • 深圳做响应式网站设计搜索引擎优化方式
  • iis网站怎么做域名绑定专业外贸网络推广
  • 凡科建设网站步骤网站注册时间查询
  • 制作网站怎么做导航栏贵州百度seo整站优化
  • 洛阳网站建设公司排行宁波seo优化公司排名
  • 中企动力免费做网站能打开的a站
  • 网站建设流程渠道下载百度 安装
  • 怎么上网做网站自动引流推广软件
  • 手机网站制作流程图网站推广推广
  • 哪家企业的网站做的好网址导航哪个好
  • 网站建设软件开发的新闻宁波seo软件免费课程
  • 网站建设技术方面最新新闻
  • 龙岗做网站公司百度预测大数据官网
  • wordpress在线建站aso苹果关键词优化
  • 网页设计代码模板html静态苏州首页关键词优化
  • 学做静态网站百度客户电话
  • 手机网站有什么广州seo服务
  • 门户网站模板下载无限制访问国外的浏览器
  • 网站谷歌排名seo数据优化
  • 网站导航图标市场调研报告模板ppt
  • wordpress页面导航收录seo包年优化
  • 特别酷炫网站网站seo服务商
  • 做常州美食网站首页的背景图市场营销网络
  • 规范机关单位网站建设青岛seo网站管理