10 2018 档案
摘要:wget http://mirrors.shu.edu.cn/apache/storm/apache-storm-1.2.2/apache-storm-1.2.2.tar.gz nohup /home/hadoop/cloud/storm/bin/storm ui >/dev/null 2>&1 &
阅读全文
摘要:1 复制文件cp cp a b 通过复制把a命名b cp path/filea path/fileb 把filea复制到b下 加 -a 参数是 完全复制
阅读全文
摘要:kafka 下载 wget http://mirrors.shu.edu.cn/apache/kafka/2.0.0/kafka_2.11-2.0.0.tgz 官网 http://kafka.apache.org/quickstart 快速开始 本教程假设您刚刚开始,并且没有现有的Kafka或Zoo
阅读全文
摘要:1 进入目录 把onboot=no改为yes 保存 :wq 重启网络服务
阅读全文
摘要:在启动jar的时候添加一个配置 -Dfile.encoding=utf-8 java -Dfile.encoding=utf-8 -jar xxxxtest-0.1.jar
阅读全文
摘要:turbine多台机器熔断聚合的时候 turbine控制台一直寻找的是localhost下的监控熔断数据。 c.n.t.monitor.instance.InstanceMonitor : Url for host: http://localhost:9003/actuator/hystrix.st
阅读全文
摘要:1 分别下载elk包 下载地址 https://www.elastic.co/cn/downloads 2 将这三个解压到同一个目录下,便于管理 3 elasticsearch不需要修改配置 默认即可 启动 双击 ./bin/elasticsearch.bat即可、 4 配置logstash 在 b
阅读全文
摘要:1 pom.xml 2 启动类 3 配置文件、 application.properties 在resources文件夹下新建bootstrap.properties文件 配置仓库中的application.properties为所有服务的公共配置, config lient 首先会查找applic
阅读全文
摘要:1 pom.xml 2 配置文件 svn 目录 3 启动类 4 启动服务 5 刷新配置 http://127.0.0.1:7094/actuator/refresh
阅读全文
摘要:改造之前一个项目 service-a 1 pom.xml添加如下 完整的pom 2 启动类添加注解 @EnableHystrix 3 配置文件添加如下配置 4 编写一个测试类 添加需要熔断的方法 @RestControllerpublic class HystrixTestC { @GetMappi
阅读全文
摘要:改造feign 项目 1 启动类添加注解 @EnableHystrix 2 添加如下配置文件 #ji eureka.instance.metadata-map.cluster=MAIN#actuatormanagement.server.port=9003management.endpoints.w
阅读全文
摘要:1 pom.xml 2 配置文件 3 启动类 4 根据服务名称来指定服务提供方 5 回退类 当service-a getm不可访问是 会返回已经写好的信息 6 编写测试类 7 测试 启动 eureka注册中心 service-a 和feign三个项目 访问 http://127.0.0.1:4001
阅读全文
摘要:1 pom.xml 2 配置文件 zuul.routes.api-a.path=/api-a/** #路由转发地址 浏览器访问 127.0.0.1:8077//api-a/getm 会请求service-a 提供的服务zuul.routes.api-a.serviceId=service-a #服务
阅读全文
摘要:1 创建一个springboot项目 spring-cloud-service-a 注册到eureka服务注册中心中 项目添加依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-s
阅读全文
摘要:1 pom.xml 添加依赖包 完整依赖 2 启动类加eureka服务注解 3 配置文件 server.port=8080eureka.instance.hostname=localhosteureka.client.register-with-eureka=falseeureka.client.f
阅读全文

浙公网安备 33010602011771号