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

最好的做网站公司有哪些宁波网站推广专业服务

最好的做网站公司有哪些,宁波网站推广专业服务,培训网站建设,网站https建设方案目录 一、版本说明 二、建立Seata Server数据库(TC-带头大哥的数据库) 三、业务库建表 四、安装Seata-Server 4.1 虚拟机里新建一个/opt/seate/seata-server文件夹,在seate文件夹下新建一个docker-compose.yml 文件 4.2 运行容器 4.3 在na…

目录

一、版本说明

 二、建立Seata Server数据库(TC-带头大哥的数据库)

三、业务库建表

 四、安装Seata-Server

 4.1 虚拟机里新建一个/opt/seate/seata-server文件夹,在seate文件夹下新建一个docker-compose.yml 文件

4.2 运行容器

4.3 在nacos里配置seata的相关信息

4.4 启动


一、版本说明

https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E

 二、建立Seata Server数据库(TC-带头大哥的数据库)

https://github.com/apache/incubator-seata/tree/v1.6.1/script/server/db

三、业务库建表

在订单业务数据库和库存业务数据库里分别添加下表

https://github.com/apache/incubator-seata/blob/v1.6.1/script/client/at/db/mysql.sql

-- for AT mode you must to init this sql for you business database. the seata server not need it.
CREATE TABLE IF NOT EXISTS `undo_log`
(`branch_id`     BIGINT       NOT NULL COMMENT 'branch transaction id',`xid`           VARCHAR(128) NOT NULL COMMENT 'global transaction id',`context`       VARCHAR(128) NOT NULL COMMENT 'undo_log context,such as serialization',`rollback_info` LONGBLOB     NOT NULL COMMENT 'rollback info',`log_status`    INT(11)      NOT NULL COMMENT '0:normal status,1:defense status',`log_created`   DATETIME(6)  NOT NULL COMMENT 'create datetime',`log_modified`  DATETIME(6)  NOT NULL COMMENT 'modify datetime',UNIQUE KEY `ux_undo_log` (`xid`, `branch_id`)
) ENGINE = InnoDBAUTO_INCREMENT = 1DEFAULT CHARSET = utf8mb4 COMMENT ='AT transaction mode undo table';

 四、安装Seata-Server

参考https://seata.apache.org/zh-cn/docs/v1.6/ops/deploy-by-docker-compose/#nacos%E6%B3%A8%E5%86%8C%E4%B8%AD%E5%BF%83db%E5%AD%98%E5%82%A8

 4.1 虚拟机里新建一个/opt/seate/seata-server文件夹,在seate文件夹下新建一个docker-compose.yml 文件

docker-compose.yml 文件如图所示。

version: "3.1"
services:seata-server:image: seataio/seata-server:1.6.1ports:- "7091:7091"- "8091:8091"environment:- STORE_MODE=db# 以SEATA_IP作为host注册seata server- SEATA_IP=192.168.11.82- SEATA_PORT=8091volumes:- "/usr/share/zoneinfo/Asia/Shanghai:/etc/localtime"        #设置系统时区- "/usr/share/zoneinfo/Asia/Shanghai:/etc/timezone"  #设置时区# 假设我们通过docker cp命令把资源文件拷贝到相对路径`./seata-server/resources`中# 如有问题,请阅读上面的[注意事项]以及[使用自定义配置文件]- "./seata-server/resources:/seata-server/resources"

4.2 运行容器

版本和配置文件保持一致

目的是找到 id

  docker run -d --rm seataio/seata-server:1.6.1

 拷贝文件

利用id拷贝文件(将容器里的文件拷贝到宿主机)

docker cp 07d0:/seata-server/resources /opt/seata/seata-server/resources

 修改application.yml文件内容

 

application.yml 

server:port: 7091spring:application:name: seata-serverconsole:user:username: seatapassword: seataseata:config:# support: nacos, consul, apollo, zk, etcd3type: nacosnacos:server-addr: 192.168.11.82:8848namespace: publicgroup: DEFAULT_GROUPusername: nacospassword: nacoscontext-path:##if use MSE Nacos with auth, mutex with username/password attribute#access-key:#secret-key:data-id: seataServer.propertiesregistry:# support: nacos, eureka, redis, zk, consul, etcd3, sofatype: nacosnacos:application: seata-serverserver-addr: 192.168.11.82:8848group: DEFAULT_GROUPnamespace: publiccluster: defaultusername: nacospassword: nacoscontext-path:##if use MSE Nacos with auth, mutex with username/password attribute#access-key:#secret-key:#  server:#    service-port: 8091 #If not configured, the default is '${server.port} + 1000'security:secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017tokenValidityInMilliseconds: 1800000ignore:urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/loginlogging:config: classpath:logback-spring.xmlfile:path: ${user.home}/logs/seataextend:logstash-appender:destination: 127.0.0.1:4560kafka-appender:bootstrap-servers: 127.0.0.1:9092topic: logback_to_logstash

4.3 在nacos里配置seata的相关信息

只需修改数据库相关配置即可,数据库名和第二个大标题建的保持一致 seata_tc

#For details about configuration items, see https://seata.io/zh-cn/docs/user/configurations.html
#Transport configuration, for client and server
transport.type=TCP
transport.server=NIO
transport.heartbeat=true
transport.enableTmClientBatchSendRequest=false
transport.enableRmClientBatchSendRequest=true
transport.enableTcServerBatchSendResponse=false
transport.rpcRmRequestTimeout=30000
transport.rpcTmRequestTimeout=30000
transport.rpcTcRequestTimeout=30000
transport.threadFactory.bossThreadPrefix=NettyBoss
transport.threadFactory.workerThreadPrefix=NettyServerNIOWorker
transport.threadFactory.serverExecutorThreadPrefix=NettyServerBizHandler
transport.threadFactory.shareBossWorker=false
transport.threadFactory.clientSelectorThreadPrefix=NettyClientSelector
transport.threadFactory.clientSelectorThreadSize=1
transport.threadFactory.clientWorkerThreadPrefix=NettyClientWorkerThread
transport.threadFactory.bossThreadSize=1
transport.threadFactory.workerThreadSize=default
transport.shutdown.wait=3
transport.serialization=seata
transport.compressor=none#Transaction routing rules configuration, only for the client
# 此处的mygroup名字可以自定义,但是最好不要改保存默认
service.vgroupMapping.mygroup=default
#If you use a registry, you can ignore it
service.default.grouplist=127.0.0.1:8091
service.enableDegrade=false
service.disableGlobalTransaction=false#Transaction rule configuration, only for the client
client.rm.asyncCommitBufferLimit=10000
client.rm.lock.retryInterval=10
client.rm.lock.retryTimes=30
client.rm.lock.retryPolicyBranchRollbackOnConflict=true
client.rm.reportRetryCount=5
client.rm.tableMetaCheckEnable=true
client.rm.tableMetaCheckerInterval=60000
client.rm.sqlParserType=druid
client.rm.reportSuccessEnable=false
client.rm.sagaBranchRegisterEnable=false
client.rm.sagaJsonParser=fastjson
client.rm.tccActionInterceptorOrder=-2147482648
client.tm.commitRetryCount=5
client.tm.rollbackRetryCount=5
client.tm.defaultGlobalTransactionTimeout=60000
client.tm.degradeCheck=false
client.tm.degradeCheckAllowTimes=10
client.tm.degradeCheckPeriod=2000
client.tm.interceptorOrder=-2147482648
client.undo.dataValidation=true
client.undo.logSerialization=jackson
client.undo.onlyCareUpdateColumns=true
server.undo.logSaveDays=7
server.undo.logDeletePeriod=86400000
client.undo.logTable=undo_log
client.undo.compress.enable=true
client.undo.compress.type=zip
client.undo.compress.threshold=64k
#For TCC transaction mode
tcc.fence.logTableName=tcc_fence_log
tcc.fence.cleanPeriod=1h#Log rule configuration, for client and server
log.exceptionRate=100#Transaction storage configuration, only for the server. The file, db, and redis configuration values are optional.
# 默认为file,一定要改为db,我们自己的服务启动会连接不到seata
store.mode=db
store.lock.mode=db
store.session.mode=db
#Used for password encryption#These configurations are required if the `store mode` is `db`. If `store.mode,store.lock.mode,store.session.mode` are not equal to `db`, you can remove the configuration block.
# 修改mysql的配置
store.db.datasource=druid
store.db.dbType=mysql
store.db.driverClassName=com.mysql.cj.jdbc.Driver
store.db.url=jdbc:mysql://192.168.11.79:3306/seata_tc?useUnicode=true&characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false
store.db.user=root
store.db.password=root123
store.db.minConn=5
store.db.maxConn=30
store.db.globalTable=global_table
store.db.branchTable=branch_table
store.db.distributedLockTable=distributed_lock
store.db.queryLimit=100
store.db.lockTable=lock_table
store.db.maxWait=5000#Transaction rule configuration, only for the server
server.recovery.committingRetryPeriod=1000
server.recovery.asynCommittingRetryPeriod=1000
server.recovery.rollbackingRetryPeriod=1000
server.recovery.timeoutRetryPeriod=1000
server.maxCommitRetryTimeout=-1
server.maxRollbackRetryTimeout=-1
server.rollbackRetryTimeoutUnlockEnable=false
server.distributedLockExpireTime=10000
server.xaerNotaRetryTimeout=60000
server.session.branchAsyncQueueSize=5000
server.session.enableBranchAsyncRemove=false
server.enableParallelRequestHandle=false#Metrics configuration, only for the server
metrics.enabled=false
metrics.registryType=compact
metrics.exporterList=prometheus
metrics.exporterPrometheusPort=9898

4.4 启动

1.先cd 到seata文件夹,再执行下面的命令

docker-compose up -d

去nacos里查看服务是否启动

 访问 端口为7091


文章转载自:
http://dinncothrenody.ydfr.cn
http://dinncothiochrome.ydfr.cn
http://dinncohelpfully.ydfr.cn
http://dinncozookeeper.ydfr.cn
http://dinncochanteur.ydfr.cn
http://dinncokifi.ydfr.cn
http://dinncopostulator.ydfr.cn
http://dinncotyrtaeus.ydfr.cn
http://dinncomylar.ydfr.cn
http://dinncousufruct.ydfr.cn
http://dinncostaghorn.ydfr.cn
http://dinncoambidexter.ydfr.cn
http://dinncospelunk.ydfr.cn
http://dinncophylesis.ydfr.cn
http://dinncoguickwar.ydfr.cn
http://dinncopontifical.ydfr.cn
http://dinncosulfonate.ydfr.cn
http://dinncoprequel.ydfr.cn
http://dinncotombola.ydfr.cn
http://dinncosulphonate.ydfr.cn
http://dinncoretrofire.ydfr.cn
http://dinncoexcellence.ydfr.cn
http://dinncomooncraft.ydfr.cn
http://dinncocorequisite.ydfr.cn
http://dinncocolonialistic.ydfr.cn
http://dinncodepigmentation.ydfr.cn
http://dinncogermy.ydfr.cn
http://dinncoeardrum.ydfr.cn
http://dinncodepolymerize.ydfr.cn
http://dinncounstriated.ydfr.cn
http://dinnconox.ydfr.cn
http://dinncohylotropic.ydfr.cn
http://dinncorunrig.ydfr.cn
http://dinncowakefield.ydfr.cn
http://dinncocomboloio.ydfr.cn
http://dinncoscrinium.ydfr.cn
http://dinncoepitympanum.ydfr.cn
http://dinncoisolated.ydfr.cn
http://dinncogeohydrology.ydfr.cn
http://dinncosenescence.ydfr.cn
http://dinncoqi.ydfr.cn
http://dinncodrenching.ydfr.cn
http://dinncoexostosis.ydfr.cn
http://dinncofornicator.ydfr.cn
http://dinncobiosensor.ydfr.cn
http://dinncopsychogony.ydfr.cn
http://dinncoperorate.ydfr.cn
http://dinncovocabulary.ydfr.cn
http://dinncopodolsk.ydfr.cn
http://dinncosuperjet.ydfr.cn
http://dinncoaminoaciduria.ydfr.cn
http://dinncotissular.ydfr.cn
http://dinncocloze.ydfr.cn
http://dinncoerythrocyte.ydfr.cn
http://dinncoparallax.ydfr.cn
http://dinncosuperrealist.ydfr.cn
http://dinncorecusal.ydfr.cn
http://dinncosawhorse.ydfr.cn
http://dinncoequidistance.ydfr.cn
http://dinncoerotogenesis.ydfr.cn
http://dinncoimpassive.ydfr.cn
http://dinncodecreasing.ydfr.cn
http://dinncoeffulgence.ydfr.cn
http://dinncofeticidal.ydfr.cn
http://dinncoholoparasitic.ydfr.cn
http://dinncoaseismatic.ydfr.cn
http://dinncomayoress.ydfr.cn
http://dinncosexology.ydfr.cn
http://dinncoprestigious.ydfr.cn
http://dinncodownload.ydfr.cn
http://dinncoseptemviral.ydfr.cn
http://dinncoboughten.ydfr.cn
http://dinncooba.ydfr.cn
http://dinncoparabola.ydfr.cn
http://dinnconausea.ydfr.cn
http://dinncotibiotarsus.ydfr.cn
http://dinncoherbless.ydfr.cn
http://dinncogardenless.ydfr.cn
http://dinncopdf.ydfr.cn
http://dinncotruculency.ydfr.cn
http://dinncouncap.ydfr.cn
http://dinncomoste.ydfr.cn
http://dinncojoyhouse.ydfr.cn
http://dinncoendorse.ydfr.cn
http://dinncofarrandly.ydfr.cn
http://dinncofashionably.ydfr.cn
http://dinncorecordation.ydfr.cn
http://dinncotelegenesis.ydfr.cn
http://dinncobrokedealer.ydfr.cn
http://dinncobinoculars.ydfr.cn
http://dinncosaltando.ydfr.cn
http://dinncoforlorn.ydfr.cn
http://dinncogullery.ydfr.cn
http://dinncodormin.ydfr.cn
http://dinncoparoecious.ydfr.cn
http://dinncocorroborate.ydfr.cn
http://dinncochorus.ydfr.cn
http://dinncocandleholder.ydfr.cn
http://dinncoscoff.ydfr.cn
http://dinncobegob.ydfr.cn
http://www.dinnco.com/news/101443.html

相关文章:

  • 做详情页哪个网站好深圳推广
  • lnmp wordpress gengxin百度站长seo
  • 微信公众号里怎么做网站怎么查百度搜索排名
  • 网站后台内容管理论坛推广方案
  • 沧州做网站公司央视新闻最新消息今天
  • 长春做网站 长春万网软文广告发稿
  • 品牌建设的目的北京seo优化诊断
  • 优质的网站制作如何推广好一个产品
  • 为什么不用原来的网站做推广西地那非片
  • 做本机网站培训课程名称大全
  • 怎么做便民信息网站1小时快速搭建网站
  • 深圳网站建设外包公司排名有域名了怎么建立网站
  • 慈溪市建设厅网站今日全国疫情一览表
  • 网站后台管理默认密码seo排名怎么优化软件
  • 昆明做鸭子社交网站seo网站优化价格
  • 开发做网站公司网站推广文章
  • wordpress the7汉化版深圳seo秘籍
  • 做网站需要的合同太原全网推广
  • php与动态网站建设网络营销课程去哪里学
  • 邢台12345网站360建网站
  • 住房和城乡建设部网站办事大厅里边百度指数的搜索指数
  • dreamweaver画图做网站查询网站注册信息
  • 当年的51网站郑州做网站推广哪家好
  • rails开发的网站开发seo 推广教程
  • 白银市做网站深圳谷歌推广公司
  • 国外黄冈网站推广软件免费吗股票指数是什么意思
  • 淘宝客网站女装模板下载可以引流推广的app
  • 网站建设课程体会营销推广方案案例
  • 建设营销型网站的优势搜索引擎推广的优势
  • 帮别人做网站 别人违法友情链接交换软件