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

利用软件做许多网站违法吗chatgpt中文在线

利用软件做许多网站违法吗,chatgpt中文在线,唐山建设个网站,湖北建设厅Linux中安装seata 一、准备1、环境2、下载3、上传到服务器4、解压 二、配置1、备份配置文件2、导入sql3、修改配置前4、修改配置后5、在nacos中配置 三、使用1、启动2、关闭 一、准备 1、环境 因为要在 nacos 中配置,要求安装并启动 nacos 。可以参考这篇博客。 …

Linux中安装seata

  • 一、准备
    • 1、环境
    • 2、下载
    • 3、上传到服务器
    • 4、解压
  • 二、配置
    • 1、备份配置文件
    • 2、导入sql
    • 3、修改配置前
    • 4、修改配置后
    • 5、在nacos中配置
  • 三、使用
    • 1、启动
    • 2、关闭

一、准备

1、环境

因为要在 nacos 中配置,要求安装并启动 nacos 。可以参考这篇博客。

我的 nacos 版本是 2.2.1 ,演示安装的 seata 版本是 1.6.1 。

2、下载

seata的下载地址如下:

https://seata.apache.org/zh-cn/unversioned/download/seata-server

在这里插入图片描述

开发环境的 seata 的版本为 1.6.1 ,为了保证版本一致,这里也下载 1.6.1 版本。

3、上传到服务器

这里上传到 /usr/local/seata 目录

在这里插入图片描述

4、解压

解压 seata ,使用如下命令:

tar -zxvf seata-server-1.6.1.tar.gz

在这里插入图片描述
在这里插入图片描述

解压后的目录为 seata ,这里将它修改为 seata-1.6.1 ,命令如下:

mv seata seata-1.6.1

在这里插入图片描述

二、配置

配置文件在根目录的 conf 文件夹下,这里是 /usr/local/seata/seata-1.6.1/conf 目录
在这里插入图片描述

1、备份配置文件

先备份一下配置文件,防止误修改,命令如下:

cp application.yml application_bk.yml

在这里插入图片描述

2、导入sql

这里选用 mysql 存储模式,所以导入 mysql 的sql,数据库脚本的地址如下:

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

先创建一个数据库,名称可以自定义,这里为 seata ,命令如下:

CREATE DATABASE `seata`

然后再执行sql,这是对应的sql:

-- -------------------------------- The script used when storeMode is 'db' --------------------------------
-- the table to store GlobalSession data
CREATE TABLE IF NOT EXISTS `global_table`
(`xid`                       VARCHAR(128) NOT NULL,`transaction_id`            BIGINT,`status`                    TINYINT      NOT NULL,`application_id`            VARCHAR(32),`transaction_service_group` VARCHAR(32),`transaction_name`          VARCHAR(128),`timeout`                   INT,`begin_time`                BIGINT,`application_data`          VARCHAR(2000),`gmt_create`                DATETIME,`gmt_modified`              DATETIME,PRIMARY KEY (`xid`),KEY `idx_status_gmt_modified` (`status` , `gmt_modified`),KEY `idx_transaction_id` (`transaction_id`)
) ENGINE = InnoDBDEFAULT CHARSET = utf8mb4;-- the table to store BranchSession data
CREATE TABLE IF NOT EXISTS `branch_table`
(`branch_id`         BIGINT       NOT NULL,`xid`               VARCHAR(128) NOT NULL,`transaction_id`    BIGINT,`resource_group_id` VARCHAR(32),`resource_id`       VARCHAR(256),`branch_type`       VARCHAR(8),`status`            TINYINT,`client_id`         VARCHAR(64),`application_data`  VARCHAR(2000),`gmt_create`        DATETIME(6),`gmt_modified`      DATETIME(6),PRIMARY KEY (`branch_id`),KEY `idx_xid` (`xid`)
) ENGINE = InnoDBDEFAULT CHARSET = utf8mb4;-- the table to store lock data
CREATE TABLE IF NOT EXISTS `lock_table`
(`row_key`        VARCHAR(128) NOT NULL,`xid`            VARCHAR(128),`transaction_id` BIGINT,`branch_id`      BIGINT       NOT NULL,`resource_id`    VARCHAR(256),`table_name`     VARCHAR(32),`pk`             VARCHAR(36),`status`         TINYINT      NOT NULL DEFAULT '0' COMMENT '0:locked ,1:rollbacking',`gmt_create`     DATETIME,`gmt_modified`   DATETIME,PRIMARY KEY (`row_key`),KEY `idx_status` (`status`),KEY `idx_branch_id` (`branch_id`),KEY `idx_xid` (`xid`)
) ENGINE = InnoDBDEFAULT CHARSET = utf8mb4;CREATE TABLE IF NOT EXISTS `distributed_lock`
(`lock_key`       CHAR(20) NOT NULL,`lock_value`     VARCHAR(20) NOT NULL,`expire`         BIGINT,primary key (`lock_key`)
) ENGINE = InnoDBDEFAULT CHARSET = utf8mb4;INSERT INTO `distributed_lock` (lock_key, lock_value, expire) VALUES ('AsyncCommitting', ' ', 0);
INSERT INTO `distributed_lock` (lock_key, lock_value, expire) VALUES ('RetryCommitting', ' ', 0);
INSERT INTO `distributed_lock` (lock_key, lock_value, expire) VALUES ('RetryRollbacking', ' ', 0);
INSERT INTO `distributed_lock` (lock_key, lock_value, expire) VALUES ('TxTimeoutCheck', ' ', 0);

如果是AT模式,AT模式也是seata建议的模式,需要加上这张事务回滚表,具体sql如下:

DROP TABLE IF EXISTS `undo_log`;
CREATE TABLE `undo_log`  (`branch_id` bigint(0) NOT NULL COMMENT 'branch transaction id',`xid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'global transaction id',`context` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'undo_log context,such as serialization',`rollback_info` longblob NOT NULL COMMENT 'rollback info',`log_status` int(0) 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 INDEX `ux_undo_log`(`xid`, `branch_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'AT transaction mode undo table' ROW_FORMAT = Dynamic;

在这里插入图片描述

3、修改配置前

主要修改这部分:

在这里插入图片描述

这是原来的完整配置:

#  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.server:port: 7091spring:application:name: seata-serverlogging: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_logstashconsole:user:username: seatapassword: seataseata:config:# support: nacos, consul, apollo, zk, etcd3type: fileregistry:# support: nacos, eureka, redis, zk, consul, etcd3, sofatype: filestore:# support: file 、 db 、 redismode: file
#  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/login

4、修改配置后

已经在修改的地方做好了注释,初次配置不建议跳过

#  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.server:port: 7091spring:application:name: seata-serverlogging: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_logstashconsole:user:username: seatapassword: seataseata:config:# support: nacos, consul, apollo, zk, etcd3type: nacosnacos:server-addr: 127.0.0.1:8848   # nacos的访问地址,因为是在docker中,ip地址改为宿主机地址namespace:group: SEATA_GROUP  # nacos的分组username: nacos     # nacos的用户名password: nacos     # nacos的密码context-path:##if use MSE Nacos with auth, mutex with username/password attribute#access-key:#secret-key:data-id: seata.properties  # nacos中的配置文件名称registry:# support: nacos, eureka, redis, zk, consul, etcd3, sofatype: nacosnacos:application: seata-server       # seata启动后在nacos的服务名server-addr: 127.0.0.1:8848  # nacos的访问地址,如果是在docker中,ip地址改为宿主机地址group: SEATA_GROUP   # nacos的分组namespace:cluster: default     # 这个参数在每个微服务seata时会用到username: nacos      # nacos的用户名password: nacos      # nacos的密码context-path:##if use MSE Nacos with auth, mutex with username/password attribute#access-key:#secret-key:store:# support: file 、 db 、 redismode: dbdb:datasource: druiddb-type: mysqldriver-class-name: com.mysql.jdbc.Driverurl: jdbc:mysql://127.0.0.1:3306/seata?characterEncoding=utf8&connectTimeout=10000&socketTimeout=30000&autoReconnect=true&useUnicode=true&useSSL=falseuser: rootpassword: 123456min-conn: 10                # db 模式数据库初始连接数max-conn: 100               # db 模式数据库最大连接数global-table: global_table  # db 模式全局事务表名branch-table: branch_table  # db 模式分支事务表名lock-table: lock_table      # db 模式全局锁表名distributed-lock-table: distributed_lock  # db 模式 Sever 端事务管理全局锁存储表名query-limit: 1000    # db 模式查询全局事务一次的最大条数,默认100max-wait: 5000   # db 模式获取连接时最大等待时间,默认5000
#  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/login

5、在nacos中配置

需要在 nacos 中创建 SEATA_GROUP 分组,增加名为 seata.properties 的配置:

在这里插入图片描述

具体配置如下:

store.mode=db
store.db.datasource=druid
store.db.dbType=mysql
store.db.driverClassName=com.mysql.cj.jdbc.Driver
store.db.url=jdbc:mysql://127.0.0.1:3306/seata?useUnicode=true
store.db.user=root
store.db.password=123456
store.db.minConn=5
store.db.maxConn=30
store.db.globalTable=global_table
store.db.branchTable=branch_table
store.db.queryLimit=100
store.db.lockTable=lock_table
store.db.maxWait=5000

三、使用

1、启动

启动 seata ,需要到根目录下的 bin 目录,这里是 /usr/local/seata/seata-1.6.1/bin ,使用如下命令:

sh seata-server.sh

在这里插入图片描述

然后到 nacos 中查看:

在这里插入图片描述

在浏览器中访问

在这里插入图片描述

可以看到 seata 已经启动。

2、关闭

因为 seata 没有提供关闭的命令,至少我这版本没有,先查询 seata 的进程id,命令如下:

ps -ef | grep seata

在这里插入图片描述

然后再杀掉这个进程,命令如下:

kill -9 370711

在这里插入图片描述

回到 nacos 发现 seata 服务也消失了

在这里插入图片描述

成功关闭。


文章转载自:
http://forefront.c7500.cn
http://unfenced.c7500.cn
http://astigmatic.c7500.cn
http://obtained.c7500.cn
http://pentamer.c7500.cn
http://thwartwise.c7500.cn
http://jetabout.c7500.cn
http://coasting.c7500.cn
http://leant.c7500.cn
http://espousal.c7500.cn
http://cherenkov.c7500.cn
http://hardpan.c7500.cn
http://hyperborean.c7500.cn
http://sullenly.c7500.cn
http://pyrometry.c7500.cn
http://rheotaxis.c7500.cn
http://stricken.c7500.cn
http://mixage.c7500.cn
http://psytocracy.c7500.cn
http://limuloid.c7500.cn
http://thermotropic.c7500.cn
http://aboideau.c7500.cn
http://clubroot.c7500.cn
http://deepmost.c7500.cn
http://serfage.c7500.cn
http://checkpost.c7500.cn
http://impassible.c7500.cn
http://machan.c7500.cn
http://toxicant.c7500.cn
http://popsy.c7500.cn
http://pennyweight.c7500.cn
http://pile.c7500.cn
http://miner.c7500.cn
http://refresher.c7500.cn
http://gabfest.c7500.cn
http://squassation.c7500.cn
http://unprotestantize.c7500.cn
http://refractably.c7500.cn
http://firing.c7500.cn
http://stratovolcano.c7500.cn
http://coronach.c7500.cn
http://emunctory.c7500.cn
http://shmeer.c7500.cn
http://holomorphism.c7500.cn
http://squeteague.c7500.cn
http://preses.c7500.cn
http://uricase.c7500.cn
http://increased.c7500.cn
http://shade.c7500.cn
http://touchhole.c7500.cn
http://dollish.c7500.cn
http://excursively.c7500.cn
http://demonologist.c7500.cn
http://provirus.c7500.cn
http://paroquet.c7500.cn
http://pointsman.c7500.cn
http://bacteriochlorophyll.c7500.cn
http://infertility.c7500.cn
http://disallow.c7500.cn
http://tigress.c7500.cn
http://padrone.c7500.cn
http://duodecimo.c7500.cn
http://tartary.c7500.cn
http://tumultuously.c7500.cn
http://rosser.c7500.cn
http://testee.c7500.cn
http://alpinism.c7500.cn
http://cockspur.c7500.cn
http://thingamy.c7500.cn
http://hornlessness.c7500.cn
http://hemagglutination.c7500.cn
http://somnambulism.c7500.cn
http://tastemaker.c7500.cn
http://pyramidical.c7500.cn
http://hyetography.c7500.cn
http://bravissimo.c7500.cn
http://hindu.c7500.cn
http://kinetoscope.c7500.cn
http://subadult.c7500.cn
http://froze.c7500.cn
http://geode.c7500.cn
http://jackladder.c7500.cn
http://verminosis.c7500.cn
http://unslumbering.c7500.cn
http://bedridden.c7500.cn
http://misreckon.c7500.cn
http://nudibranch.c7500.cn
http://around.c7500.cn
http://incunable.c7500.cn
http://tutwork.c7500.cn
http://fogyish.c7500.cn
http://pause.c7500.cn
http://duke.c7500.cn
http://oodles.c7500.cn
http://devolatilize.c7500.cn
http://defang.c7500.cn
http://purchasable.c7500.cn
http://cicatrise.c7500.cn
http://pureness.c7500.cn
http://anaphylactin.c7500.cn
http://www.zhongyajixie.com/news/79059.html

相关文章:

  • 提供网站建设公司报价网站推广优化网址
  • 动态网站建设答案重庆seo怎么样
  • 有关网页设计与网站建设的文章北京网络推广优化公司
  • 南京网站推广¥做下拉去118cr河南推广网站的公司
  • 中国建设基础设施总公司 网站seo实战培训费用
  • 专业网站建设模板网络广告推广服务
  • 女子医院网站优化公司2024小学生时事新闻十条
  • 网站建设有哪些软件有哪些内容黄金网站软件app大全下载
  • 宝鸡做网站的公司有哪些百度网盘提取码入口
  • 在线教育网站建设关键词挖掘站长工具
  • 微信制作小程序流程广州百度seo 网站推广
  • 网站布局 下载seo外链建设方法
  • 本地网站有什么可以做网盘资源
  • 网站建设业务员seo优化工具软件
  • 小程序注册申请需要什么资料海南seo
  • 长春互联网公司排名seo自动刷外链工具
  • 黄石公司做网站网络优化的内容包括哪些
  • 网站建设合同 英文seo如何优化一个网站
  • 个人网站做经营性外贸seo站
  • 深圳网站建设公司招聘抖音seo优化软件
  • 信阳网站开发建设公司简单的网站建设
  • 集团培训网站建设手机怎么建网站
  • 怎么做win10原版系统下载网站东莞疫情最新通告
  • 如何在百度发布广告信息悟空建站seo服务
  • 自己用dw做网站要多久怎么样做seo
  • 小学编程培训班多少钱一个月网站优化推广
  • html怎么做查询网站google引擎免费入口
  • 中国大工程建设需要什么样的人才江门seo网站推广
  • 松江做网站的公司百度推广官方
  • 做优品购类似网站网店推广平台有哪些