WuKongIM Docs

Start a Single-node Cluster

Run the complete cluster path from source and check readiness and local entry points.

1. Fetch the source

git clone https://github.com/WuKongIM/WuKongIM.git
cd WuKongIM

Skip this step if you are already at the repository root.

2. Create a local configuration

cp wukongim.toml.example wukongim.toml

wukongim.toml is the local runtime configuration. Do not carry its development credentials into production. The example uses node ID 1, one replica, and 256 hash slots while still running full cluster semantics.

3. Start the server

GOWORK=off go run ./cmd/wukongim -config ./wukongim.toml

Leave this terminal running. In another terminal, check readiness:

curl --fail http://127.0.0.1:5001/readyz

A successful exit means the node finished startup and can accept traffic. If the process is still running but readiness fails, inspect the startup terminal for configuration, port, or storage errors.

4. Open the local entry points

PurposeAddress
Chat Demohttp://127.0.0.1:5001/demo/
Managerhttp://127.0.0.1:5301
HTTP API, readiness, and metricshttp://127.0.0.1:5001
WKProto TCP127.0.0.1:5100
WebSocketws://127.0.0.1:5200
Node transport127.0.0.1:7001

The Manager development account is admin with password a1234567. These fixed credentials are only for local verification.

Stop and restart

Press Ctrl+C in the server terminal to stop the node. Data is stored in ./data/wukongim-single-node-data by default and is reused when the same configuration starts again.

Next: send the first message.

On this page