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.xmainline (2.7.0+) requires JDK 17 or later; the2.6.0release supports JDK 8 / 17 / 21 / 25.seata-namingserver: Requires JDK 25 or later.
Default Ports
| Component | Port | Purpose | Notes |
|---|---|---|---|
seata-server | 8091 | RPC & HTTP API port | Multiplexed via Netty-HTTP (port 7091 is no longer used) |
seata-server | 9091 | Raft election & replication port | Enabled in Raft mode; defaults to RPC port + 1000 |
seata-server | 9898 | Prometheus metrics port | Enabled when seata.metrics.enabled: true |
seata-namingserver | 8081 | NamingServer / Console / MCP | Hosts 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
- Linux / macOS
- Windows
cd seata-server
sh ./bin/seata-server.sh start
Stop or restart:
sh ./bin/seata-server.sh stop
sh ./bin/seata-server.sh restart
cd seata-server
bin\seata-server.bat
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
| Argument | Full Name | Effect | Notes |
|---|---|---|---|
-h | --host | Specify IP registered to registry center | Must be an IPv4/IPv6 literal (hostnames are rejected in 2.x); auto-detects local IP if omitted |
-p | --port | Specify server listening port | Default 8091, serving both RPC and HTTP APIs |
-m | --storeMode | Unified session and lock store mode | Supports file, db, redis; default is file (for raft, configure seata.store.mode: raft in application.yml) |
-ssm | --sessionStoreMode | Session store mode | Supports file, db, redis; can be set independently from -lsm |
-lsm | --lockStoreMode | Lock store mode | Supports file, db, redis |
-n | --serverNode | Specify the seata-server node ID | Such as 1, 2, 3; auto-generated via Snowflake by default |
-e | --seataEnv | Specify the environment name | Such as dev, test, for multi-configuration isolation |
For example:
sh ./bin/seata-server.sh -p 8091 -h 127.0.0.1 -m file