Skip to main content
Version: Next Version

Deploy Server

Overview​

Seata Server can be deployed directly from a binary distribution or via container platforms such as Docker, Docker Compose, Kubernetes, and Helm.

Prerequisites and Ports​

JDK Requirements​

  • seata-server: 2.x mainline (2.7.0+) requires JDK 17 or later; the 2.6.0 release supports JDK 8 / 17 / 21 / 25.
  • seata-namingserver: Requires JDK 25 or later.

Default Ports​

ComponentPortPurposeNotes
seata-server8091RPC & HTTP API portMultiplexed via Netty-HTTP (port 7091 is no longer used)
seata-server9091Raft election & replication portEnabled in Raft mode; defaults to RPC port + 1000
seata-server9898Prometheus metrics portEnabled when seata.metrics.enabled: true
seata-namingserver8081NamingServer / Console / MCPHosts the Web Console since Seata 2.4

Deploy Directly​

1. Download and Extract​

Download the binary distribution from the Download Page or GitHub Releases and extract it:

tar -zxvf apache-seata-2.6.0-incubating-bin.tar.gz
cd apache-seata-2.6.0-incubating-bin

The extracted archive contains two independent component directories:

  • seata-server/: Seata TC server (conf/application.yml)
  • seata-namingserver/: Seata native registry center and Console (conf/application.yml)

2. Start seata-server​

cd seata-server
sh ./bin/seata-server.sh start

Stop or restart:

sh ./bin/seata-server.sh stop
sh ./bin/seata-server.sh restart

3. Verify the deployment​

Check the startup log for errors, then confirm that clients can reach the configured service address and port. Complete the registry and client configuration before verifying a transaction; a running process alone does not demonstrate successful integration.

Arguments​

ArgumentFull NameEffectNotes
-h--hostSpecify IP registered to registry centerMust be an IPv4/IPv6 literal (hostnames are rejected in 2.x); auto-detects local IP if omitted
-p--portSpecify server listening portDefault 8091, serving both RPC and HTTP APIs
-m--storeModeUnified session and lock store modeSupports file, db, redis; default is file (for raft, configure seata.store.mode: raft in application.yml)
-ssm--sessionStoreModeSession store modeSupports file, db, redis; can be set independently from -lsm
-lsm--lockStoreModeLock store modeSupports file, db, redis
-n--serverNodeSpecify the seata-server node IDSuch as 1, 2, 3; auto-generated via Snowflake by default
-e--seataEnvSpecify the environment nameSuch as dev, test, for multi-configuration isolation

For example:

sh ./bin/seata-server.sh -p 8091 -h 127.0.0.1 -m file

Other Deployment Options​