# 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.3.0
共211个文件
jar:151个
sql:14个
sh:11个
需积分: 5 0 下载量 131 浏览量
2023-10-16
21:00:29
上传
评论
收藏 41.59MB RAR 举报
温馨提示
seata1.3版的服务器端和客户端资源
资源推荐
资源详情
资源评论
收起资源包目录
seata-server-1.3.0 (211个子文件)
io.seata.server.coordinator.AbstractCore 157B
seata-server.bat 4KB
file.conf 3KB
file.conf 3KB
registry.conf 3KB
registry.conf 2KB
logstash-logback.conf 944B
logstash-kafka.conf 862B
root.data 10KB
io.seata.core.store.db.DataSourceProvider 137B
file.conf.example 3KB
.helmignore 342B
netty-all-4.1.30.Final.jar 3.71MB
druid-1.1.12.jar 2.64MB
guava-27.0.1-jre.jar 2.62MB
mysql-connector-java-8.0.19.jar 2.25MB
mysql-connector-java-8.0.19.jar 2.25MB
ant-1.10.6.jar 2.14MB
h2-1.4.181.jar 1.61MB
protobuf-java-3.7.1.jar 1.36MB
jackson-databind-2.9.9.jar 1.29MB
netty-3.10.6.Final.jar 1.23MB
jetcd-core-0.3.0.jar 1.2MB
proto-google-common-protos-1.0.0.jar 1.04MB
commons-math-2.2.jar 965KB
mysql-connector-java-5.1.35.jar 946KB
zookeeper-3.4.14.jar 890KB
hessian-4.0.63.jar 878KB
httpclient-4.5.8.jar 754KB
grpc-core-1.17.1.jar 730KB
javassist-3.21.0-GA.jar 718KB
postgresql-42.1.4.jar 696KB
guice-4.1.0.jar 658KB
jedis-3.2.0.jar 640KB
fastjson-1.2.60.jar 637KB
seata-serializer-protobuf-1.3.0.jar 611KB
commons-compress-1.19.jar 601KB
xstream-1.4.10.jar 576KB
joda-time-2.3.jar 568KB
log4j-1.2.17.jar 478KB
logback-core-1.2.0.jar 462KB
antlr-2.7.7.jar 435KB
eureka-client-1.9.5.jar 429KB
jersey-core-1.19.1.jar 427KB
commons-lang3-3.4.jar 424KB
hessian-3.3.6.jar 402KB
fst-2.57.jar 387KB
commons-configuration-1.8.jar 346KB
kryo-4.0.2.jar 330KB
commons-codec-1.11.jar 327KB
httpcore-4.4.11.jar 319KB
jackson-core-2.9.10.jar 318KB
opencensus-api-0.17.0.jar 315KB
logback-classic-1.2.0.jar 303KB
snakeyaml-1.23.jar 294KB
commons-jxpath-1.3.jar 293KB
commons-lang-2.6.jar 278KB
cglib-3.1.jar 276KB
bolt-1.4.6.jar 230KB
gson-2.8.2.jar 227KB
nacos-client-1.2.0.jar 226KB
seata-core-1.3.0.jar 224KB
servo-core-0.12.21.jar 221KB
config-1.2.1.jar 214KB
grpc-netty-1.17.1.jar 207KB
commons-dbcp2-2.7.0.jar 204KB
checker-qual-2.5.2.jar 189KB
seata-server-1.3.0.jar 184KB
commons-io-2.2.jar 170KB
dexx-collections-0.2.jar 162KB
antlr-runtime-3.4.jar 161KB
consul-api-1.4.2.jar 157KB
HikariCP-3.4.3.jar 151KB
apollo-client-1.1.0.jar 149KB
stringtemplate-3.2.1.jar 145KB
grpc-grpclb-1.17.1.jar 144KB
archaius-core-0.7.6.jar 136KB
jersey-client-1.19.1.jar 131KB
sofa-common-tools-1.0.12.jar 117KB
commons-pool2-2.4.2.jar 109KB
registry-client-all-5.2.0.jar 109KB
commons-pool-1.6.jar 109KB
xz-1.8.jar 106KB
kryo-serializers-0.42.jar 104KB
servlet-api-2.5.jar 103KB
netflix-infix-0.3.0.jar 99KB
jline-0.9.94.jar 85KB
jettison-1.3.7.jar 82KB
apollo-core-1.1.0.jar 75KB
zkclient-0.11.jar 73KB
jcommander-1.72.jar 68KB
netflix-eventbus-0.3.0.jar 67KB
protobuf-java-util-3.5.1.jar 67KB
jackson-annotations-2.9.4.jar 65KB
commons-logging-1.2.jar 60KB
simpleclient-0.5.0.jar 58KB
lookout-api-1.5.2.jar 55KB
objenesis-2.6.jar 54KB
nacos-api-1.2.0.jar 53KB
seata-common-1.3.0.jar 50KB
共 211 条
- 1
- 2
- 3
资源评论
silence__is_gold
- 粉丝: 1427
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功