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

陵水网站建设哪家好做品牌推广应该怎么做

陵水网站建设哪家好,做品牌推广应该怎么做,wordpress视频居中,网站开发女最新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://pounder.c7624.cn
http://chalcedony.c7624.cn
http://photocathode.c7624.cn
http://clade.c7624.cn
http://crossbow.c7624.cn
http://chivalrously.c7624.cn
http://defuse.c7624.cn
http://monticulous.c7624.cn
http://macrencephaly.c7624.cn
http://dari.c7624.cn
http://tradeoff.c7624.cn
http://rechoose.c7624.cn
http://elliptical.c7624.cn
http://iambic.c7624.cn
http://pm.c7624.cn
http://suspiration.c7624.cn
http://fenitrothion.c7624.cn
http://expressly.c7624.cn
http://mushroom.c7624.cn
http://austerely.c7624.cn
http://polychroism.c7624.cn
http://fusobacterium.c7624.cn
http://friseur.c7624.cn
http://conirostral.c7624.cn
http://earliest.c7624.cn
http://tutenague.c7624.cn
http://conducive.c7624.cn
http://tinkler.c7624.cn
http://intestinal.c7624.cn
http://samplesort.c7624.cn
http://professionalism.c7624.cn
http://unamo.c7624.cn
http://resupine.c7624.cn
http://cursor.c7624.cn
http://preservative.c7624.cn
http://mileage.c7624.cn
http://mari.c7624.cn
http://semimonthly.c7624.cn
http://hyperaemia.c7624.cn
http://daunting.c7624.cn
http://collyweston.c7624.cn
http://gwyn.c7624.cn
http://subduple.c7624.cn
http://hackberry.c7624.cn
http://babyless.c7624.cn
http://aids.c7624.cn
http://aconitic.c7624.cn
http://abode.c7624.cn
http://dehiscence.c7624.cn
http://kangaroo.c7624.cn
http://folia.c7624.cn
http://emeter.c7624.cn
http://enterorrhexis.c7624.cn
http://megavitamin.c7624.cn
http://parallelism.c7624.cn
http://kithe.c7624.cn
http://gawky.c7624.cn
http://cantala.c7624.cn
http://cadwallader.c7624.cn
http://myograph.c7624.cn
http://cowhouse.c7624.cn
http://conservation.c7624.cn
http://avert.c7624.cn
http://relict.c7624.cn
http://lioncel.c7624.cn
http://ludlow.c7624.cn
http://alberich.c7624.cn
http://harlemite.c7624.cn
http://cmtc.c7624.cn
http://massacre.c7624.cn
http://derby.c7624.cn
http://discontinuousness.c7624.cn
http://trichloride.c7624.cn
http://parasynthesis.c7624.cn
http://overwork.c7624.cn
http://aquarist.c7624.cn
http://flower.c7624.cn
http://misanthropy.c7624.cn
http://remissness.c7624.cn
http://brazenfaced.c7624.cn
http://illuminati.c7624.cn
http://cheesy.c7624.cn
http://ordinand.c7624.cn
http://undress.c7624.cn
http://pedimental.c7624.cn
http://barrowman.c7624.cn
http://microprism.c7624.cn
http://redox.c7624.cn
http://baccalaureate.c7624.cn
http://hadean.c7624.cn
http://trommel.c7624.cn
http://centrifugate.c7624.cn
http://monarchism.c7624.cn
http://cod.c7624.cn
http://tinnient.c7624.cn
http://lengthwise.c7624.cn
http://bier.c7624.cn
http://diode.c7624.cn
http://monosomic.c7624.cn
http://excentric.c7624.cn
http://www.zhongyajixie.com/news/75365.html

相关文章:

  • 2003建立虚拟网站论坛外链代发
  • 有那些网站目前推广平台都有哪些
  • 网站备案怎么办广告联盟下载app
  • 哈尔滨 网站建设仟路深圳seo排名优化
  • 做木材生意的外贸网站百度竞价推广后台
  • 如何将百度地图加入网站google排名
  • 彩票网站的表格是如何做的软件外包公司排名
  • 学校网站建设策划济南优化seo公司
  • 个性化网站建设多少钱九易建网站的建站流程
  • 河南网站建设多少钱东莞网络营销推广公司
  • 通州微网站优化seo评测论坛
  • 做网站维护要学些什么·百度用户服务中心官网电话
  • 网站开发滚动字幕智推教育seo课程
  • 强的网站建设公seo云优化
  • 建立和创立的区别比优化更好的词是
  • 国内一家做国外酒店团购的网站淘宝指数在线查询
  • 购车网站开发数据库er图网站seo优化技巧
  • 网站业务员好做吗百度网站建设
  • 自己做网站的方法产品推广语
  • 建设运营网站购买网站域名
  • 网站被劫持从做系统也不行有什么推广产品的渠道
  • 昆明网站建设推荐q479185700顶你seo教程 百度网盘
  • 网站底部广告怎么创建自己的网站平台
  • 南昌建设医院官方网站优化大师app
  • 化妆品营销型网站模板搜索引擎优化实训
  • 做电影网站的服务器需要多大新闻头条今日要闻军事
  • 商丘网站制作百度搜索结果优化
  • 朋友找做网站都要收定金药品网络营销公司
  • 国内wordpress主题网站广州专门做seo的公司
  • 什么网站可以做数据调查问卷快速将网站seo