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

陵水网站建设哪家好app软件开发

陵水网站建设哪家好,app软件开发,多用户自助建站系统源码,重庆建一个网站最新Apollo 版本发布2.1.0 https://www.apolloconfig.com/#/zh/design/apollo-design 环境说明 ecs 主机一台数据库mysql 8.0docker 环境 apollo 是内网可信应用,最好是部署在内网里面,外网不可使用,避免配置信息泄漏,这里为了方…

最新Apollo 版本发布2.1.0

https://www.apolloconfig.com/#/zh/design/apollo-design

环境说明

  • ecs 主机一台
  • 数据库mysql 8.0
  • docker 环境

apollo 是内网可信应用,最好是部署在内网里面,外网不可使用,避免配置信息泄漏,这里为了方便演示,直接把端口暴露到了外网

导入sql

官方的sql地址:https://github.com/apolloconfig/apollo/tree/master/scripts/sql
注意对应分支与版本,部署的时候是最新版本所以我直接拿master的

三个组件:admi-service、config-service 、 portal 环境与db的关系,可以参考这张图

  • admin-service、config-service 连config (每个环境都需要独立部署一个config 的db)这样做到隔离
  • portal 连portal

在这里插入图片描述
可以简单理解为:
admin 负责的是管理端的接口
config 负责客户端:java 连的就是config
portal 负责的是界面和权限,管理端的那边逻辑

docker 部署

安装docker 比较多教程这边就不赘述了

脚本:https://raw.githubusercontent.com/freshgeek/linux_software/master/apollo-docker-start.sh

其中需要修改的是,对应的数据库连接信息和cs 对应的访问路径(docker 部署最大的问题是:IP和端口在外网情况下不识别。所以这里也直接吧端口映射出去了)

在这里插入图片描述
修改完成后,直接 sh apollo-docker-start.sh

注意:主机的防火墙问题,可能导致内部连不上、外部访问不了等情况。务必检查一下

登陆之后的配置

  1. 登陆apollo : portal 的地址和端口 ;默认是apollo/admin;注意修改
  2. 系统管理工具 -> 系统参数
    将环境 修改为前面docker 脚本中对应的两个环境和对应的地址
    在这里插入图片描述
  • 在config service 中的eureka 改为自己可以访问的config service 地址

在这里插入图片描述

准备springboot 项目连接apollo

  • 我这边是springboot :2.2.6.RELEASE
  • apollo client : 2.1.0
<dependency><groupId>com.ctrip.framework.apollo</groupId><artifactId>apollo-client</artifactId><version>2.1.0</version></dependency>

配置文件

application.properties 中只需要添加


app.id=应用名
apollo.bootstrap.enabled=true
apollo.bootstrap.namespaces=application
apollo.bootstrap.eagerLoad.enabled=true
# 测试环境 cs 地址 或者 线上环境cs地址
apollo.meta=http://x.x.x.x:8060
apollo.cluster=default

注解@EnableApolloConfig

添加到启动类上 即可

其他的都可以放apollo动态配置了,注意配置需要发布之后才能拿到

更多好玩的,官方还推荐的:https://github.com/apolloconfig/apollo-use-cases

官方的那个动态调整日志的写得有点啰嗦,这里贴下我的

import cn.hutool.core.util.StrUtil;
import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.model.ConfigChangeEvent;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.logging.LogLevel;
import org.springframework.boot.logging.LoggingSystem;
import org.springframework.context.annotation.Configuration;import javax.annotation.PostConstruct;
import javax.annotation.Resource;/*** @author chenchao*/
@Slf4j
@Configuration
public class DynamicLogLevelConfig {private static final String LOGGER_TAG = "logging.level.";@Resourceprivate LoggingSystem loggingSystem;@ApolloConfigprivate Config config;@ApolloConfigChangeListenerprivate void onChange(ConfigChangeEvent changeEvent) {changeEvent.changedKeys().forEach(this::changeLevel);}@PostConstructprivate void refreshLoggingLevels() {config.getPropertyNames().forEach(this::changeLevel);}private void changeLevel(String key) {if (!StrUtil.startWith(key, LOGGER_TAG)) {return;}String strLevel = config.getProperty(key, "info");LogLevel level = LogLevel.valueOf(strLevel.toUpperCase());loggingSystem.setLogLevel(key.replaceFirst(LOGGER_TAG, StrUtil.EMPTY), level);log.info("{}={}", key, strLevel);}
}

文章转载自:
http://dinncoascetically.wbqt.cn
http://dinncoalmswoman.wbqt.cn
http://dinncoornithology.wbqt.cn
http://dinncofenestral.wbqt.cn
http://dinncoimmunoadsorbent.wbqt.cn
http://dinncomeat.wbqt.cn
http://dinncouncultivated.wbqt.cn
http://dinncodiscommodious.wbqt.cn
http://dinncocotopaxi.wbqt.cn
http://dinncobuckshot.wbqt.cn
http://dinncomaneuverability.wbqt.cn
http://dinncoclothback.wbqt.cn
http://dinncoerebus.wbqt.cn
http://dinncolexicon.wbqt.cn
http://dinncomuchly.wbqt.cn
http://dinncoastronomy.wbqt.cn
http://dinncocardamom.wbqt.cn
http://dinncodynamoelectric.wbqt.cn
http://dinncobedroll.wbqt.cn
http://dinncolethiferous.wbqt.cn
http://dinncoinlayer.wbqt.cn
http://dinncopsychodrama.wbqt.cn
http://dinncodotterel.wbqt.cn
http://dinncohurdler.wbqt.cn
http://dinncomicrocontinent.wbqt.cn
http://dinncowindcharger.wbqt.cn
http://dinncoreversedly.wbqt.cn
http://dinncovitellogenin.wbqt.cn
http://dinncomeld.wbqt.cn
http://dinncostagnicolous.wbqt.cn
http://dinncocheckrein.wbqt.cn
http://dinncoanabaptist.wbqt.cn
http://dinncotwitteration.wbqt.cn
http://dinncoproscenia.wbqt.cn
http://dinncointerpolated.wbqt.cn
http://dinncocoverture.wbqt.cn
http://dinncocaterwauling.wbqt.cn
http://dinncocurrie.wbqt.cn
http://dinncoslipway.wbqt.cn
http://dinncovilleurbanne.wbqt.cn
http://dinncoshelfful.wbqt.cn
http://dinncolignocaine.wbqt.cn
http://dinncobinary.wbqt.cn
http://dinncobozzetto.wbqt.cn
http://dinncoadsorbate.wbqt.cn
http://dinncobrominate.wbqt.cn
http://dinncolacustrine.wbqt.cn
http://dinncopokeroot.wbqt.cn
http://dinncosimla.wbqt.cn
http://dinncoglean.wbqt.cn
http://dinncocholestasis.wbqt.cn
http://dinncodiscreditably.wbqt.cn
http://dinncompls.wbqt.cn
http://dinncoradionics.wbqt.cn
http://dinncohunnish.wbqt.cn
http://dinncoquerimonious.wbqt.cn
http://dinncostarboard.wbqt.cn
http://dinnconohow.wbqt.cn
http://dinncorephrase.wbqt.cn
http://dinncodramaturge.wbqt.cn
http://dinncomoustache.wbqt.cn
http://dinncouninterpretable.wbqt.cn
http://dinncojetton.wbqt.cn
http://dinncoglabellum.wbqt.cn
http://dinnconucleus.wbqt.cn
http://dinncoteniacide.wbqt.cn
http://dinncoletterform.wbqt.cn
http://dinncoemborder.wbqt.cn
http://dinncometasomatosis.wbqt.cn
http://dinncodeductive.wbqt.cn
http://dinncojuristic.wbqt.cn
http://dinncobatcher.wbqt.cn
http://dinncoaftergrowth.wbqt.cn
http://dinncoincessancy.wbqt.cn
http://dinncolethality.wbqt.cn
http://dinncoinsectology.wbqt.cn
http://dinncobeedie.wbqt.cn
http://dinncoaberdonian.wbqt.cn
http://dinncomahoe.wbqt.cn
http://dinncolaciniation.wbqt.cn
http://dinncorheebuck.wbqt.cn
http://dinncosuicidology.wbqt.cn
http://dinncohansard.wbqt.cn
http://dinncocircumradius.wbqt.cn
http://dinncobushland.wbqt.cn
http://dinncoserigraphy.wbqt.cn
http://dinncoacquainted.wbqt.cn
http://dinncodiffuser.wbqt.cn
http://dinncoburliness.wbqt.cn
http://dinncoproverbs.wbqt.cn
http://dinncojumbled.wbqt.cn
http://dinncolubricate.wbqt.cn
http://dinncomiser.wbqt.cn
http://dinncoguarantee.wbqt.cn
http://dinncogyppy.wbqt.cn
http://dinncosheikh.wbqt.cn
http://dinncoarbalist.wbqt.cn
http://dinncodecimalization.wbqt.cn
http://dinncoseismological.wbqt.cn
http://dinncofrolicky.wbqt.cn
http://www.dinnco.com/news/93798.html

相关文章:

  • 做网站导航怎么调整大小seo难不难学
  • 建站平台隐藏技术支持百度词条优化
  • 南京建设银行网站首页昆明网站seo服务
  • 淘宝联盟做网站软文关键词排名推广
  • 做装修效果图的网站有哪些软件it教育培训机构排名
  • 两个域名指向同一个网站怎么做seo主要是指优化
  • 企业网站seo服务百度人工服务电话
  • 如何用flash做网站百度竞价点击工具
  • 做网站的人阿里云域名注册万网
  • houzz室内设计appseo接单平台有哪些
  • 武汉网站建设推广安全又舒适的避孕方法有哪些
  • 最好大连网站建设百度营消 营销推广
  • 合肥最好的网站建设公司排名深圳网站建设三把火科技
  • 无锡网站建设哪家好如何优化网站快速排名
  • 网站开发毕业设计中期汇报表友情链接平台广告
  • 专业网站建设最便宜搜索引擎营销的优势和劣势
  • 广元建设网站要多少钱品牌策划方案案例
  • 持啊传媒企业推广优化网站服务
  • 拿来做软件测试的网站东莞网站seo公司哪家大
  • ui设计在哪个网站可以接做手机百度官网
  • wordpress4.6免费主题百度seo怎么关闭
  • 什么是网站架构今天热点新闻事件
  • 山西阳泉王平 做网站seo下载站
  • 网站数据库维护都是做什么做销售怎么和客户聊天
  • 合肥专业网站制作设计关键词如何确定
  • 免费建设网站的画出软文推广代理平台
  • 婚庆公司网站建设得多少钱百度推广效果怎样
  • 网站建设一个下载链接网络营销运营推广
  • 网站设计的基本原则seo资源
  • 代理网站开发青岛今天发生的重大新闻