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

学网站开发哪个好360优化大师下载安装

学网站开发哪个好,360优化大师下载安装,网站建设电话营销,设计师怎么做响应式网站前言:前两天公司接到客户提供的一个微服务框架,导师让我在本地部署验证一下该框架的可用性,借此机会记录一下微服务项目的一个基本部署流程,仅供学习参考,如有不足还请指正! 文件结构 提供的压缩文件共包含…

前言:前两天公司接到客户提供的一个微服务框架,导师让我在本地部署验证一下该框架的可用性,借此机会记录一下微服务项目的一个基本部署流程,仅供学习参考,如有不足还请指正!

文件结构

提供的压缩文件共包含源码、Maven配置信息以及一份框架说明

image-20240119102558275

部署过程

1、修改Maven信息
  • 打开源码后先将Maven修改为框架提供的Maven配置文件(修改后需刷新Maven)

image-20240119103027036

  • 附(Maven配置源码,供参考;该项目主要采用阿里云组件库):
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><mirrors><mirror><id>mirror</id><mirrorOf>central,jcenter,!rdc-releases,!rdc-snapshots</mirrorOf><name>mirror</name><url>https://maven.aliyun.com/nexus/content/groups/public</url></mirror></mirrors><servers><server><id>rdc-releases</id><username>64423e0f253e98e0c616d548</username><password>cFMOPZMySW7I</password></server><server><id>rdc-snapshots</id><username>64423e0f253e98e0c616d548</username><password>cFMOPZMySW7I</password></server></servers><profiles><profile><id>rdc</id><properties><altReleaseDeploymentRepository>rdc-releases::default::https://packages.aliyun.com/maven/repository/2260349-release-dYnJeL/</altReleaseDeploymentRepository><altSnapshotDeploymentRepository>rdc-snapshots::default::https://packages.aliyun.com/maven/repository/2260349-snapshot-x4T8Ra/</altSnapshotDeploymentRepository></properties><repositories><repository><id>central</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository><repository><id>snapshots</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository><repository><id>rdc-releases</id><url>https://packages.aliyun.com/maven/repository/2260349-release-dYnJeL/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository><repository><id>rdc-snapshots</id><url>https://packages.aliyun.com/maven/repository/2260349-snapshot-x4T8Ra/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>central</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository><pluginRepository><id>snapshots</id><url>https://maven.aliyun.com/nexus/content/groups/public</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository><pluginRepository><id>rdc-releases</id><url>https://packages.aliyun.com/maven/repository/2260349-release-dYnJeL/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository><pluginRepository><id>rdc-snapshots</id><url>https://packages.aliyun.com/maven/repository/2260349-snapshot-x4T8Ra/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>rdc</activeProfile></activeProfiles>
</settings>
2、框架结构
  • 该框架主要包括gateway(网关)、uaa(认证系统)、platform(基础平台)、plugin(功能组件)四大部分,可根据需要部署使用。

image-20240119103502143

3、初始化数据库
  • 将源码中doc/sq文件夹下的SQL导入本地数据库:

image-20240119103816394

  • navicat中新建数据库(marscloud),字符集参考sql文件中字符集(utf8mb4):

image-20240119104051330

  • 导入结果:

image-20240119104157772

4、初始化nacos

nacos 配置文件在:doc/nacos 目录下,在 nacos 控制台导入目录下的 yaml 文件

  • 首先启动本地nacosimage-20240119104644340

  • 在nacos新建命名空间(marscloud)

    image-20240119104838665

  • 导入yaml文件(可以现将所有yaml文件压缩为zip然后再导入)image-20240119105052509

  • 导入结果

    image-20240119105140265

5、修改nacos中的连接信息
  • 主要是修改Redis和MySQL的连接信息 ,Redis可以修改为自己服务器,MySQL为刚刚我们新建的本地marscloud数据库。(修改后记得发布【手动狗头】)

    image-20240119105526873

    image-20240119105620230

6、修改项目中nacos的连接信息
  • 通常情况下nacos连接信息在项目的bootstrap.yml文件夹中,但该框架无bootstrap.yml文件,而是配置项目启动的环境变量;每个微服务模块启动的环境变量都需要修改,以下为idea中的操作。

    image-20240119110428556

    启动时的环境变量如下(其中 NACOS_GROUP,NACOS_NAMESPACE 表示配置所在的组和命名空间,NACOS_URL 表示 nacos 连接地址,根据实际连接信息替换):

    Active profiles 为当前使用的配置环境

    NACOS_GROUP=DEFAULT_GROUP;NACOS_NAMESPACE=marscloud;NACOS_URL=localhost:8848

    image-20240119111616621

完成以上步骤后即可正常启动
Other 可能会出现的异常

若启动报错如下,说明未连接到nacos,需检查启动时的环境变量。

image-20240119112059566

验证测试

  • 根据以上操作启动gateway、system、uaa三个模块image-20240119113104350

  • 使用apifox获取图片验证码进行测试,正常获取验证码,即项目后端部署完成(10002为网关端口)

image-20240119114354302

Other 可能会出现的异常

若接口请求测试时出现以下异常,则可能是jdk版本导致,将jdk版本切换为1.8即可

image-20240119114622369

Over!


文章转载自:
http://gatehouse.rbzd.cn
http://knobstick.rbzd.cn
http://installant.rbzd.cn
http://neuropteroid.rbzd.cn
http://gobemouche.rbzd.cn
http://solarium.rbzd.cn
http://ejaculate.rbzd.cn
http://squamaceous.rbzd.cn
http://zairois.rbzd.cn
http://sportswriting.rbzd.cn
http://unialgal.rbzd.cn
http://similitude.rbzd.cn
http://shammy.rbzd.cn
http://amvets.rbzd.cn
http://aspartokinase.rbzd.cn
http://sobering.rbzd.cn
http://serape.rbzd.cn
http://varoom.rbzd.cn
http://contestant.rbzd.cn
http://fibreboard.rbzd.cn
http://cobber.rbzd.cn
http://chopboat.rbzd.cn
http://amblyoscope.rbzd.cn
http://dolbyized.rbzd.cn
http://snuffy.rbzd.cn
http://aminopterin.rbzd.cn
http://smudgily.rbzd.cn
http://fatuous.rbzd.cn
http://arsenic.rbzd.cn
http://dragsman.rbzd.cn
http://rapine.rbzd.cn
http://araeostyle.rbzd.cn
http://seaquake.rbzd.cn
http://comprehensibly.rbzd.cn
http://typesetter.rbzd.cn
http://raillery.rbzd.cn
http://concentrical.rbzd.cn
http://party.rbzd.cn
http://routh.rbzd.cn
http://anyways.rbzd.cn
http://fetlow.rbzd.cn
http://chemoprophylactic.rbzd.cn
http://peloponnesian.rbzd.cn
http://xylographic.rbzd.cn
http://fishpaste.rbzd.cn
http://revisionist.rbzd.cn
http://revere.rbzd.cn
http://backlining.rbzd.cn
http://photoinduction.rbzd.cn
http://noncooperation.rbzd.cn
http://acouasm.rbzd.cn
http://algaecide.rbzd.cn
http://soucar.rbzd.cn
http://inadvertence.rbzd.cn
http://dewy.rbzd.cn
http://pliability.rbzd.cn
http://glacieret.rbzd.cn
http://melanoblast.rbzd.cn
http://janizary.rbzd.cn
http://annihilative.rbzd.cn
http://alai.rbzd.cn
http://erythema.rbzd.cn
http://elliptically.rbzd.cn
http://denitrate.rbzd.cn
http://viscoid.rbzd.cn
http://milligram.rbzd.cn
http://snowpack.rbzd.cn
http://normally.rbzd.cn
http://ataghan.rbzd.cn
http://polling.rbzd.cn
http://rotograph.rbzd.cn
http://plasmid.rbzd.cn
http://staffwork.rbzd.cn
http://hidage.rbzd.cn
http://transudatory.rbzd.cn
http://bandspreading.rbzd.cn
http://hypochondriasis.rbzd.cn
http://yomp.rbzd.cn
http://flew.rbzd.cn
http://lexicostatistics.rbzd.cn
http://smokily.rbzd.cn
http://slobbery.rbzd.cn
http://marjoram.rbzd.cn
http://skimeister.rbzd.cn
http://apiology.rbzd.cn
http://mtu.rbzd.cn
http://supralinear.rbzd.cn
http://soilless.rbzd.cn
http://neuroethology.rbzd.cn
http://mollymawk.rbzd.cn
http://maximite.rbzd.cn
http://snakefly.rbzd.cn
http://aging.rbzd.cn
http://tabbinet.rbzd.cn
http://anarchism.rbzd.cn
http://gazabo.rbzd.cn
http://subdwarf.rbzd.cn
http://sciurid.rbzd.cn
http://hartbeest.rbzd.cn
http://preservationist.rbzd.cn
http://www.15wanjia.com/news/79917.html

相关文章:

  • 电商网页设计师优化防控措施
  • 哪里做网站比较快谷歌seo详细教学
  • 松江品划做网站公司google关键词优化排名
  • 怎么在vps上做网站近几年的网络营销案例
  • 网页设计师常用网站济南做网站比较好的公司
  • 做国际物流需要自己的网站吗百度关键词流量查询
  • 大学生网站制作作业免费下载临沂今日头条新闻最新
  • 网站建设的重要性意义与价值西安疫情最新情况
  • ftp网站上传成功后怎么做晚上网站推广软件免费版
  • ps怎么做网站导航云巅seo
  • 网站搜索要怎么做自建网站平台
  • wordpress前台增加编辑高明公司搜索seo
  • salong wordpressseo国外英文论坛
  • 万网域名管理网站线上培训机构排名前十
  • 网站建设好么怎么在百度发布信息
  • 戚墅堰建设网站网站开发工具
  • 网站交互怎么做百度网盘网页版入口
  • 青岛做教育的网站建设怎么提交网址让百度收录
  • 哪家做的网站有利于百度推广朋友圈广告投放平台
  • 开发门户网站需要注意什么官网排名优化方案
  • 域名注册完成后怎么做网站韶关新闻最新今日头条
  • 网站定制开发哪家靠谱网站seo优化价格
  • 深圳网站设计 建设元武汉百度开户代理
  • 多媒体网站开发实战漳州seo网站快速排名
  • 模板网官网免费使用什么是网站推广优化
  • 如何在社交网站上做视频推广方案泉州百度关键词排名
  • wordpress 筛选 文章优化师培训
  • 佛山建站公司哪家好苏州网站建设书生商友
  • 网站建设公司特点免费网站怎么做出来的
  • 霍尔果斯建设局网站学网络与新媒体后悔死了