04-Seata修改通信端口

基于docker环境部署下,可以翻看专栏之前的文章

配置文件 /home/server/seata/resources/application.yml

默认${server.port} + 1000

1、修改服务端(TC)配置

seata:
    server:
       service-port: 7090

2、修改映射端口

在启动脚本中修改映射端口

docker run -id --name seata-server \
    -p 7090:7090 -p 7091:7091 \
    -e SEATA_IP=192.168.20.113 \
    -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone \
    -v /home/server/seata/resources:/seata-server/resources  \
    seataio/seata-server

你可能感兴趣的:(Seata,默认端口)