03 2022 档案
摘要:https://www.bookstack.cn/read/spring-cloud-docs/docs-project-SpringCloudConfig.md
阅读全文
摘要:1.Spring cloud 2.Spring boot 3.Spring cloud Alibaba 4.注册中心 Nacos 5.服务调用 Ribbon、Loadbalancer、OpenFeigin 6.服务降级 Sentinel 7.服务网关 Gataway 8.服务配置 Nacos 9.服
阅读全文
摘要:1.查看spring官网,目前最新的稳定版本是2021.0.1 (GA代表稳定的发布版) 2.点击上图中的Referrence Doc查看兼容的spring boot版2.6.3 3.Spring Cloud Alibaba 2021.0.1.0
阅读全文
摘要:官网地址 https://start.spring.io/actuator/info { "git": { "branch": "881e633a6a33776174ee1e0274016acc0715f7c7", "commit": { "id": "881e633", "time": "2022
阅读全文
摘要:1 <plugin> 2 <groupId>org.apache.maven.plugins</groupId> 3 <artifactId>maven-war-plugin</artifactId> 4 <version>2.1.1</version> 5 <configuration> 6 <w
阅读全文
摘要:1.使用redis连接池 package com.yjw.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean
阅读全文
摘要:1.修改配置文件 创建6个配置文件分别为 redis_6379.conf 6380 6381 6389 6390 6391 include /usr/local/redis/conf/redis.confpidfile "/var/run/redis_6379.pid"port 6379dbfile
阅读全文
摘要:1.配置 新建sentinel.conf sentinel monitor mymaster 127.0.0.1 6379 2.启动哨兵 启动哨兵 redis-sentinel sentinel.conf 当主机重启从服务器会充当主服务器,重启之后的主服务器成为了从服务器。 3.单机哨兵模式暂时可用
阅读全文
摘要:*主服务器重启后还是主,从服务器重启之后就不会是从服务器需要重新使用slaveof加入从服务器。从服务器还可以当做另一台服务器的主服务器。复制redis.conf到 /usr/local/redis/conf文件夹下创建redis_6379.conf和redis_6380.conf 配置文件内容如下
阅读全文
摘要:1.安装wget https://download.redis.io/releases/redis-6.2.6.tar.gz mv redis-6.2.6.tar.gz /usr/local tar -zxvf redis-6.2.6.tar.gz mv redis-6.2.6 redis make
阅读全文
摘要:1.属性文件配置 server.port=8080spring.application.name=rabbitmq spring.rabbitmq.host=127.0.0.1spring.rabbitmq.port=5672spring.rabbitmq.username=adminspring.
阅读全文
摘要:查看仓库里的RabbitMQ docker search rabbitmq1 安装RabbitMQdocker pull rabbitmq1这里是直接安装最新的,如果需要安装其他版本在rabbitmq后面跟上版本号即可 启动RabbitMQdocker run -d --hostname my-ra
阅读全文
摘要:原文地址https://www.cnblogs.com/jimlau/p/12029985.html # 启动EPEL源 $ sudo yum install epel-release # 安装erlang $ sudo yum install erlang
阅读全文