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

怎么样网站泛解析什么是sem和seo

怎么样网站泛解析,什么是sem和seo,承德网,小浪底水利枢纽建设管理局网站文章目录1. 创建文件config.txt2. 创建nacos-config.sh3. 配置导入nacos配置中心4. 配置验证1. 创建文件config.txt 在seata的安装文件夹下创建文件config.txt [rootnode2 ~]# cd /app/seata/seata-server-1.4.2/ [rootnode2 seata-server-1.4.2]# vim config.txt 说明#… 文章目录1. 创建文件config.txt2. 创建nacos-config.sh3. 配置导入nacos配置中心4. 配置验证1. 创建文件config.txt 在seata的安装文件夹下创建文件config.txt [rootnode2 ~]# cd /app/seata/seata-server-1.4.2/ [rootnode2 seata-server-1.4.2]# vim config.txt 说明 第一行这里order-service值得是订单模块的服务 从第二行开始下面是数据库信息根据自己的实际情况配置 注意点不能添加中文注释 添加以下内容 service.vgroupMapping.order-servicedefault store.modedb store.db.datasourcedruid store.db.dbTypemysql store.db.driverClassNamecom.mysql.cj.jdbc.Driver store.db.urljdbc:mysql://127.0.0.1:3306/ry-seata?useUnicodetrue store.db.userroot store.db.password123456 store.db.minConn5 store.db.maxConn30 store.db.globalTableglobal_table store.db.branchTablebranch_table store.db.queryLimit100 store.db.lockTablelock_table store.db.maxWait5000上面的文件是精简后的部分完整文件可在github中找到 https://github.com/seata/seata/blob/develop/script/config-center/config.txt 2. 创建nacos-config.sh 在conf/文件夹下下载文件 https://github.com/seata/seata/blob/develop/script/config-center/nacos/nacos-config.sh 用于将上面的seata配置信息导入到nacos 执行下面的命令 [rootnode2 seata-server-1.4.2]# cd conf [rootnode2 conf]# vim nacos-config.sh 内容比较多建议直接下载吧#!/bin/sh # Copyright 1999-2019 Seata.io Group. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at、 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License.while getopts :h:p:g:t:u:w: opt docase $opt inh)host$OPTARG;;p)port$OPTARG;;g)group$OPTARG;;t)tenant$OPTARG;;u)username$OPTARG;;w)password$OPTARG;;?)echo USAGE OPTION: $0 [-h host] [-p port] [-g group] [-t tenant] [-u username] [-w password] exit 1;;esac doneif [ -z ${host} ]; thenhostlocalhost fi if [ -z ${port} ]; thenport8848 fi if [ -z ${group} ]; thengroupSEATA_GROUP fi if [ -z ${tenant} ]; thentenant fi if [ -z ${username} ]; thenusername fi if [ -z ${password} ]; thenpassword finacosAddr$host:$port contentTypecontent-type:application/json;charsetUTF-8echo set nacosAddr$nacosAddr echo set group$groupurlencode() {length${#1}i0while [ $length -gt $i ]; dochar${1:$i:1}case $char in[a-zA-Z0-9.~_-]) printf $char ;;*) printf %%%02X $char ;;esaciexpr $i 1done }failCount0 tempLog$(mktemp -u) function addConfig() {dataIdurlencode $1contenturlencode $2curl -X POST -H ${contentType} http://$nacosAddr/nacos/v1/cs/configs?dataId$dataIdgroup$groupcontent$contenttenant$tenantusername$usernamepassword$password ${tempLog} 2/dev/nullif [ -z $(cat ${tempLog}) ]; thenecho Please check the cluster status. exit 1fiif [ $(cat ${tempLog}) true ]; thenecho Set $1$2 successfully elseecho Set $1$2 failure failCountexpr $failCount 1fi }count0 for line in $(cat $(dirname $PWD)/config.txt | sed s/[[:space:]]//g); docountexpr $count 1key${line%%*}value${line#*}addConfig ${key} ${value} doneecho echo Complete initialization parameters, total-count:$count , failure-count:$failCount echo if [ ${failCount} -eq 0 ]; thenecho Init nacos config finished, please start seata-server. elseecho init nacos config fail. fi 3. 配置导入nacos配置中心 将seata配置信息导入到nacos config配置中心 sh nacos-config.sh -h 127.0.0.1-h后面是nacos配置中心的地址 操作记录 [rootnode2 conf]# sh nacos-config.sh -h 127.0.0.1 set nacosAddr127.0.0.1:8848 set groupSEATA_GROUP Set service.vgroupMapping.order-servicedefault successfully Set store.modedb successfully Set store.db.datasourcedruid successfully Set store.db.dbTypemysql successfully Set store.db.driverClassNamecom.mysql.cj.jdbc.Driver successfully Set store.db.urljdbc:mysql://127.0.0.1:3306/ry-seata?useUnicodetrue successfully Set store.db.userroot successfully Set store.db.password123456 successfully Set store.db.minConn5 successfully Set store.db.maxConn30 successfully Set store.db.globalTableglobal_table successfully Set store.db.branchTablebranch_table successfully Set store.db.queryLimit100 successfully Set store.db.lockTablelock_table successfully Set store.db.maxWait5000 successfully Complete initialization parameters, total-count:15 , failure-count:0 Init nacos config finished, please start seata-server. [rootnode2 conf]#4. 配置验证 执行完成后登录到nacos 查看配置中心的数据是否导入完毕如图所示
http://www.huolong8.cn/news/326472/

相关文章:

  • 直播教育网站建设档案馆网站机房建设
  • 上海人才招聘哪个网站好wordpress字数统计m 去除图片等
  • 如何提升网站营销力软件网站设计师培训
  • 搭建什么网站赚钱制作一个网站的费用是多少钱
  • 网站策划做啥贷款网站织梦模板源码
  • 福州城市建设规划网站健康企业建设
  • 网站开发用什么数据库湿地保护宣教网站建设意义
  • 宿豫区建设局网站建立一个企业网站需要多少钱
  • 图片类网站如何做优化张家界seo
  • 网站建设的投资预算怎么写百姓网为什么不能创建地址
  • 域名访问网站啥意思网站如何识别移动端
  • 没有备案的网站怎么挂广告做网站好平台化
  • 国外的电商网站有哪些宜昌网站企业
  • 常德网站建设策划方案东道设计应届生收入
  • 做网站前期需要什么wordpress游戏支付
  • ps怎样做网站设计深圳网约车驾驶员资格证网上报名
  • 芦苞网站建设做知乎网站社区要多少钱
  • 内网网站模板有没有什么做海报字体的网站
  • 深圳市住房与建设局实名制网站上海财务外包公司
  • 做高仿包的网站有哪些宿迁公司注册
  • 二手车 网站开发百度快照官网登录
  • 基于aws ec2免费实例进行网站建设商业网站开发文档
  • 丽水市做网站的做外贸相关的网站
  • flash网站源代码怎么建设网站页面
  • 电子商务网站建设实验总结做公司网站哪家 上海
  • 大型门户网站系统广西模板厂哪家价格低
  • 站长忽略的几个观点选择做印象绍兴网站的原因
  • 双语网站建设方案济南最好的网站开发
  • 网站建设 申请报告seo优化查询
  • 免费搭建网站 域名建设集团网站公司