docs: document redis session prerequisites

This commit is contained in:
lingniu
2026-07-01 09:24:05 +08:00
parent 6faf3533a5
commit 5d082d50d5
2 changed files with 8 additions and 0 deletions

View File

@@ -92,6 +92,9 @@ GB32960 ingest:
```bash ```bash
KAFKA_BROKERS=127.0.0.1:9092 \ KAFKA_BROKERS=127.0.0.1:9092 \
REDIS_HOST=127.0.0.1 \
REDIS_PORT=6379 \
REDIS_DATABASE=50 \
GB32960_PORT=32960 \ GB32960_PORT=32960 \
HTTP_PORT=20100 \ HTTP_PORT=20100 \
java --sun-misc-unsafe-memory-access=allow \ java --sun-misc-unsafe-memory-access=allow \
@@ -102,6 +105,9 @@ JT808 ingest:
```bash ```bash
KAFKA_BROKERS=127.0.0.1:9092 \ KAFKA_BROKERS=127.0.0.1:9092 \
REDIS_HOST=127.0.0.1 \
REDIS_PORT=6379 \
REDIS_DATABASE=50 \
JT808_PORT=808 \ JT808_PORT=808 \
HTTP_PORT=20400 \ HTTP_PORT=20400 \
java --sun-misc-unsafe-memory-access=allow \ java --sun-misc-unsafe-memory-access=allow \

View File

@@ -135,6 +135,8 @@ class MavenModuleProfileTest {
assertThat(runbook) assertThat(runbook)
.contains("Session state requires Redis") .contains("Session state requires Redis")
.contains("REDIS_HOST=127.0.0.1")
.contains("REDIS_DATABASE=50")
.doesNotContain("SESSION_STORE=memory") .doesNotContain("SESSION_STORE=memory")
.doesNotContain("without Redis"); .doesNotContain("without Redis");
assertThat(moduleDataFlow) assertThat(moduleDataFlow)