# Script usage demo
![Since 1.2.0](https://img.shields.io/badge/Since%20-1.2.0-orange.svg?style=flat-square)
## important attributes
you only need to follow the instructions below and keep the corresponding configuration in 'config.txt' to run. For more configuration information, please visit [seata.io](https://seata.io/)
| server | client |
| ------------------------ | ------------------------------------------------------------ |
| store.mode: file,db | config.type: file、nacos 、apollo、zk、consul、etcd3、custom |
| #only db: | #only file: |
| store.db.driverClassName | service.default.grouplist |
| store.db.url | #All: |
| store.db.user | service.vgroupMapping.default_tx_group |
| store.db.password | service.disableGlobalTransaction |
## Script Introduction
The Script has interactive and non-interactive configuration modes,different patterns are distinguished by different file names.
interactive mode(*-config-interactive.sh or *-config-interactive.py): the script starts the config program in interactive mode on the command line, prompting you for each option.
non-interactive mode(*-config.sh or *-config.py): the script use additional config options to specify values for the options you choose during interactive mode, thus scripting the config process.
## Nacos
shell:
- Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/nacos/nacos-config-interactive.sh
```
This command will generate interactive configuration mode, eg:
```
Please enter the host of nacos.
请输入nacos的host [localhost]:
>>>
Please enter the port of nacos.
请输入nacos的port [8848]:
>>>
Please enter the group of nacos.
请输入nacos的group [SEATA_GROUP]:
>>>
Please enter the tenant of nacos.
请输入nacos的tenant:
>>>
Please enter the username of nacos.
请输入nacos的username:
>>>
Please enter the password of nacos.
请输入nacos的password:
>>>
Are you sure to continue? [y/n]
```
- Non-Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/nacos/nacos-config.sh -h localhost -p 8848 -g SEATA_GROUP -t 5a3c7d6c-f497-4d68-a71a-2e5e3340b3ca -u username -w password
```
python:
- Interactive Mode
```bash
python ${SEATAPATH}/script/config-center/nacos/nacos-config-interactive.py
```
This command will generate interactive configuration mode like nacos-config-interactive.sh.
- Non-Interactive Mode
```bash
python ${SEATAPATH}/script/config-center/nacos/nacos-config.py localhost:8848
```
Parameter Description:
-h: host, the default value is localhost.
-p: port, the default value is 8848.
-g: Configure grouping, the default value is 'SEATA_GROUP'.
-t: Tenant information, corresponding to the namespace ID field of Nacos, the default value is ''.
-u: username, nacos 1.2.0+ on permission control, the default value is ''.
-w: password, nacos 1.2.0+ on permission control, the default value is ''.
## Apollo
- Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/apollo/apollo-config-interactive.sh
```
This command will generate interactive configuration mode, eg:
```
Please enter the host of apollo.
请输入apollo的host [localhost]:
>>>
Please enter the port of apollo.
请输入apollo的port [8070]:
>>>
Please enter the env of apollo.
请输入apollo的env [DEV]:
>>>
Please enter the appId of apollo.
请输入apollo的appId [seata-server]:
>>>
Please enter the clusterName of apollo.
请输入apollo的clusterName [default]:
>>>
Please enter the namespaceName of apollo.
请输入apollo的namespaceName [application]:
>>>
Please enter the dataChangeCreatedBy of apollo.
请输入apollo的dataChangeCreatedBy:
>>>
Please enter the releasedBy of apollo.
请输入apollo的releasedBy:
>>>
Please enter the token of apollo.
请输入apollo的token:
>>>
Are you sure to continue? [y/n]
```
- Non-Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/apollo/apollo-config.sh -h localhost -p 8070 -e DEV -a seata-server -c default -n application -d apollo -r apollo -t 3aa026fc8435d0fc4505b345b8fa4578fb646a2c
```
Parameter Description:
-h: host, the default value is localhost.
-p: port, the default value is 8070.
-e: Managed configuration environment, the default value is DEV.
-a: AppId to which the namespace belongs, the default value is seata-server.
-c: Managed configuration cluster name, Generally, you can pass in default. If it is a special cluster, just pass in the name of the corresponding cluster,the default value is default.
-n: Name of the managed namespace, If the format is not properties, you need to add a suffix name, such as sample.yml, the default value is application.
-d: The creator of the item, in the format of a domain account, which is the User ID of the sso system.
-r: Publisher, domain account, note: if namespace.lock.switch in ApolloConfigDB.ServerConfig is set to true (default is false), Then the environment does not allow the publisher and editor to be the same person. So if the editor is zhangsan, the publisher can no longer be zhangsan.
-t: Apollo admin creates third-party applications in http://{portal_address}/open/manage.html, It is best to check whether this AppId has been created before creation. After successful creation, a token will be generated.
For details of the above parameter descriptions, please see:
https://github.com/ctripcorp/apollo/wiki/Apollo%E5%BC%80%E6%94%BE%E5%B9%B3%E5%8F%B0
## Consul
- Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/consul/consul-config-interactive.sh
```
This command will generate interactive configuration mode, eg:
```
Please enter the host of consul.
请输入consul的host [localhost]:
>>>
Please enter the port of consul.
请输入consul的port [8500]:
>>>
Are you sure to continue? [y/n]
```
- Non-Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/consul/consul-config.sh -h localhost -p 8500
```
Parameter Description:
-h: host, the default value is localhost.
-p: port, the default value is 8500.
## Etcd3
- Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/etcd3/etcd3-config-interactive.sh
```
This command will generate interactive configuration mode, eg:
```
Please enter the host of etcd3.
请输入etcd3的host [localhost]:"
>>>
Please enter the port of etcd3.
请输入etcd3的port [2379]:
>>>
Are you sure to continue? [y/n]
```
- Non-Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/etcd3/etcd3-config.sh -h localhost -p 2379
```
Parameter Description:
-h: host, the default value is localhost.
-p: port, the default value is 2379.
## ZK
- Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/zk/zk-config-interactive.sh
```
This command will generate interactive configuration mode, eg:
```
Please enter the host of zookeeper.
请输入zookeeper的host [localhost]:
>>>
Please enter the port of zookeeper.
请输入zookeeper的port [2181]:
>>>
Please enter the zkHome of zookeeper.
请输入zookeeper的zkHome:
>>>
Are you sure to continue? [y/n]
```
- Non-Interactive Mode
```bash
sh ${SEATAPATH}/script/config-center/zk/zk-config.sh -h localhost -p 2181 -z "/Users/zhangchenghui/zookeeper-3.4.14"
```
Parameter Description:
-h: host, the default value is localhost.
-p: port, the default value is 2181.
-z: zk path.
没有合适的资源?快使用搜索试试~ 我知道了~
seata-server-1.6.1.tar.gz
需积分: 0 31 下载量 130 浏览量
2022-12-24
12:12:27
上传
评论
收藏 89.23MB GZ 举报
温馨提示
共273个文件
jar:231个
sh:12个
yaml:7个
Seata 是一款开源的分布式事务解决方案,致力于在微服务架构下提供高性能和简单易用的分布式事务服务
资源推荐
资源详情
资源评论
收起资源包目录
seata-server-1.6.1.tar.gz (273个子文件)
seata-server.bat 4KB
logstash-logback.conf 944B
logstash-kafka.conf 862B
Dockerfile 1KB
.helmignore 342B
skywalking-agent.jar 17.28MB
zstd-jni-1.5.0-4.jar 6.46MB
kafka-clients-2.7.2.jar 4.32MB
druid-1.2.6.jar 3.46MB
byte-buddy-1.10.22.jar 3.35MB
tomcat-embed-core-9.0.62.jar 3.26MB
guava-27.0.1-jre.jar 2.62MB
mysql-connector-java-8.0.27.jar 2.36MB
h2-1.4.200.jar 2.2MB
ant-1.10.12.jar 2.15MB
snappy-java-1.1.7.7.jar 1.86MB
protobuf-java-3.11.4.jar 1.58MB
spring-web-5.3.19.jar 1.56MB
spring-boot-autoconfigure-2.5.13.jar 1.5MB
jackson-databind-2.12.6.1.jar 1.45MB
spring-core-5.3.19.jar 1.41MB
spring-boot-2.5.13.jar 1.33MB
proto-google-common-protos-1.17.0.jar 1.28MB
spring-security-config-5.5.6.jar 1.24MB
spring-context-5.3.19.jar 1.22MB
jetcd-core-0.5.0.jar 1.21MB
seata-console-1.6.1.jar 1.03MB
spring-webmvc-5.3.19.jar 1004KB
postgresql-42.2.25.jar 983KB
zookeeper-3.5.9.jar 971KB
commons-math-2.2.jar 965KB
mysql-connector-java-5.1.35.jar 946KB
hessian-4.0.63.jar 878KB
jedis-3.6.3.jar 847KB
httpclient-4.5.13.jar 762KB
guice-5.0.1.jar 755KB
javassist-3.21.0-GA.jar 718KB
spring-beans-5.3.19.jar 682KB
grpc-core-1.27.1.jar 662KB
fastjson-1.2.83.jar 656KB
logstash-logback-encoder-6.5.jar 645KB
netty-common-4.1.76.Final.jar 636KB
lz4-java-1.7.1.jar 635KB
netty-codec-http-4.1.76.Final.jar 624KB
xstream-1.4.19.jar 618KB
spring-security-web-5.5.6.jar 618KB
commons-compress-1.19.jar 601KB
seata-serializer-protobuf-1.6.1.jar 578KB
joda-time-2.3.jar 568KB
netty-handler-4.1.76.Final.jar 516KB
netty-transport-4.1.76.Final.jar 470KB
netty-codec-http2-4.1.76.Final.jar 462KB
logback-core-1.2.11.jar 438KB
seata-server.jar 438KB
antlr-2.7.7.jar 435KB
eureka-client-1.10.17.jar 434KB
jersey-core-1.19.1.jar 427KB
hessian-3.3.6.jar 402KB
fst-2.57.jar 387KB
spring-security-core-5.5.6.jar 379KB
spring-aop-5.3.19.jar 374KB
httpcore-nio-4.4.15.jar 361KB
jackson-core-2.12.6.jar 357KB
commons-configuration-1.10.jar 354KB
kryo-5.3.0.jar 349KB
commons-codec-1.15.jar 346KB
netty-codec-4.1.76.Final.jar 329KB
httpcore-4.4.15.jar 321KB
snakeyaml-1.28.jar 319KB
netty-buffer-4.1.76.Final.jar 297KB
commons-jxpath-1.3.jar 293KB
spring-expression-5.3.19.jar 283KB
commons-lang-2.6.jar 278KB
tomcat-embed-websocket-9.0.62.jar 271KB
commons-io-2.7.jar 270KB
seata-core-1.6.1.jar 263KB
gson-2.8.9.jar 252KB
tomcat-embed-el-9.0.62.jar 250KB
zookeeper-jute-3.5.9.jar 245KB
grpc-netty-1.27.1.jar 235KB
bolt-1.4.6.jar 230KB
logback-classic-1.2.11.jar 226KB
nacos-client-1.4.2.jar 225KB
servo-core-0.12.21.jar 221KB
grpc-api-1.27.1.jar 219KB
config-1.2.1.jar 214KB
checker-qual-3.5.0.jar 209KB
commons-dbcp2-2.8.0.jar 203KB
apollo-client-2.0.1.jar 179KB
httpasyncclient-4.1.5.jar 177KB
grpc-grpclb-1.27.1.jar 167KB
dexx-collections-0.2.jar 162KB
antlr-runtime-3.4.jar 161KB
consul-api-1.4.2.jar 157KB
HikariCP-4.0.3.jar 155KB
nacos-common-1.4.2.jar 154KB
netty-resolver-dns-4.1.76.Final.jar 153KB
stringtemplate-3.2.1.jar 145KB
archaius-core-0.7.6.jar 136KB
netty-transport-classes-epoll-4.1.76.Final.jar 136KB
共 273 条
- 1
- 2
- 3
资源评论
qxmjava
- 粉丝: 22
- 资源: 603
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功