mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
fix: exclude ZK auto-registration, rebuild v2.0.12
- ElevatorApplication startup failed: Registration bean conflict between ZookeeperAutoServiceRegistration and ConsulAutoServiceRegistration - Exclude ZookeeperAutoServiceRegistrationAutoConfiguration (ZK for discovery only, not registration; Consul handles registration) - Bump version to 2.0.12, rebuild deployment package
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# 停止与本目录 cw-elevator-application-2.0.11.jar 对应的 Java 进程(仅匹配命令行中含该 JAR 名的进程)。
|
||||
set -euo pipefail
|
||||
JAR="cw-elevator-application-2.0.11.jar"
|
||||
# shellcheck disable=SC2009
|
||||
pid=$(ps -ef | grep '[j]ava' | grep "$JAR" | awk '{print $2}' || true)
|
||||
if [[ -n "${pid}" ]]; then
|
||||
kill -9 $pid
|
||||
fi
|
||||
Reference in New Issue
Block a user