拉取镜像 版本看你需要,我这里拉取的 7.6.2 版本 docker pull elasticsearch:7.6.2 创建挂载目录 #配置文件目录 mkdir -p /docker/elasticsearch/config #数据目录 mkdir -p /docker/elasticsearch/data #给目录授权 chmod 777 -R /docker/elasticsearch/ 编辑配置文件 配置文件 es.yml vim es.yml #配置文件内容 cluster.name : elasticsearch-cluster node.name : es-node06 network.bind_host : 0.0.0.0 network.publish_host : 192.168.50.106 http.port : 9200 transport.tcp.port : 9300 http.cors.enabled : true http.cors.allow-origin : "*" node.master : true node.data : true disc.... 有更新! elasticsearch 7.X docker安装部署 elasticsearch
下载 Redis 镜像 docker pull redis 创建存储目录和配置文件 mkdir -p /docker/redis/{7000,7001,7002,7003,7004,7005}/data 编辑配置文件redis.conf,使用时去除注释 vim redis.conf port 7000 ##节点端口 cluster-enabled yes ##cluster 集群模式 cluster-config-file nodes.conf ##集群配置名 cluster-node-timeout 5000 ##超时时间 cluster-announce-ip 10.168.1.229 ##物理机ip cluster-announce-port 7000 ##节点映射端口 cluster-announce-bus-port 17000 ##节点总线端 masterauth password@123 ##集群密码 requirepass password@123 ##登录密码 appendonly yes ##持久化模式 protected-mode no 复制配置.... 有更新! docker搭建redis集群 centos
nacos添加动态路由配置文件gateway-router,json类型 [ { "id": "test1", "order": 0, "predicates": [ { "args": { "pattern": "/test/**" }, "name": "Path" } ], "uri": "lb://test" } ] 添加配置动态路由配置类 import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.util.concurrent.Executor; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.cloud.gateway..... SpringCloud环境搭建-gateway-动态路由 SpringCloud
添加依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency> 配置 nacos 注册中心 2.1 添加依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-consul-discovery</artifactId> </dependency> 2.2 启动类增加注解 @EnableDiscoveryClient 2.3 配置bootstrap.yml spring: cloud: nacos: config: server-addr: 192.168.193.106:8848 file-extension: .... SpringCloud环境搭建-gateway SpringCloud
1.下载安装包 https://github.com/alibaba/nacos/releases 选择最新稳定版下载 2. 导入数据库 ./nacos/conf/nacos-mysql.sql 3. 修改配置 VIM ./nacos/conf/application.properties 数据库配置: ### Connect URL of DB: db.url.0=jdbc:mysql://192.168.193.106:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true db.user=root db.password=123456 登录校验配置 ### If enable spring security, this option is deprecated in 1.2.0: spring.security.enabled=true ### The ignore urls of auth, is deprecated in .... 有更新! 搭建Nacos注册中心&配置中心 SpringCloud
Solo 博客系统已经初始化完毕,可在管理后台 - 工具 - 偏好设定中调整更多细节设置。如果需要导入已有博客文章,请参考文档 Hexo/Jekyll/Markdown 文件导入。 对了,出于安全考虑请尽快完成如下操作: 使用 GitHub 账号登录社区 在社区个人设置 - B3 中更新 B3 Key 在 Solo 管理后台 - 工具 - 用户管理中也进行同样的 B3 Key 更新 另外,Solo 会每天自动导出你的博客文章到 GitHub 仓库(示例): 有机会让更多人看到你的文章 自动备份文章数据 该功能默认是开启的,如果不需要请到管理后台 - 工具 - 偏好设定 - 参数设置中关闭。开启时会自动创建/更新 solo-blog 仓库,请注意你没有该同名仓库以免数据被覆盖。 最后,如果你觉得 Solo 很赞,请到项目主页给颗星鼓励一下 ❤️ 世界,你好! Solo