- CollectDB 다중 신호 수집 → S&P Global AIS API 단일 수집으로 전환 - sig_src_cd + target_id 이중 식별자 → mmsi(VARCHAR) 단일 식별자 - t_vessel_latest_position → t_ais_position 테이블 전환 - 레거시 배치/유틸 ~30개 클래스 삭제 (VesselAggregationJobConfig, ShipKindCodeConverter 등) - AisTargetCacheManager 기반 캐시 이중 구조 (최신위치 + 트랙 버퍼) - CacheBasedVesselTrackDataReader + CacheBasedTrackJobListener 신규 추가 - VesselStaticStepConfig: 정적정보 CDC 변경 검출 + hourly job 편승 - SignalKindCode enum: vesselType/extraInfo 기반 선종 자동 분류 - WebSocket/STOMP 전체 mmsi 전환 (StompTrackStreamingService ~40곳) - 모니터링/성능 최적화 코드 mmsi 기반 전환 - DataSource 설정 통합 (snpdb 단일 DB) - AreaBoundaryCache Polygon→Geometry 캐스트 수정 (MULTIPOLYGON 지원) - ConcurrentHashMap 적용 (VesselTrackStepConfig 동시성 버그 수정) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
59 lines
1.7 KiB
Batchfile
59 lines
1.7 KiB
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
echo ===============================================
|
|
echo SSH Key Setup for Server Deployment
|
|
echo ===============================================
|
|
|
|
set "SERVER_IP=10.26.252.51"
|
|
set "SERVER_USER=root"
|
|
|
|
echo [INFO] Setting up SSH key authentication for %SERVER_USER%@%SERVER_IP%
|
|
echo.
|
|
|
|
REM Check if SSH key exists
|
|
if not exist "%USERPROFILE%\.ssh\id_rsa.pub" (
|
|
echo [INFO] SSH key not found. Generating new SSH key...
|
|
ssh-keygen -t rsa -b 4096 -f "%USERPROFILE%\.ssh\id_rsa" -N ""
|
|
if !ERRORLEVEL! neq 0 (
|
|
echo [ERROR] Failed to generate SSH key
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo [SUCCESS] SSH key generated
|
|
)
|
|
|
|
echo.
|
|
echo [INFO] Copying SSH key to server...
|
|
echo [INFO] You will be prompted for the server password
|
|
echo.
|
|
|
|
type "%USERPROFILE%\.ssh\id_rsa.pub" | ssh %SERVER_USER%@%SERVER_IP% "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys && echo '[SUCCESS] SSH key installed'"
|
|
|
|
if !ERRORLEVEL! neq 0 (
|
|
echo [ERROR] Failed to copy SSH key
|
|
echo.
|
|
echo Please ensure:
|
|
echo - Server is accessible at %SERVER_IP%
|
|
echo - You have the correct password for %SERVER_USER%
|
|
echo - SSH service is running on the server
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo ===============================================
|
|
echo [SUCCESS] SSH Key Setup Complete!
|
|
echo ===============================================
|
|
echo.
|
|
echo Testing connection...
|
|
ssh -o BatchMode=yes -o ConnectTimeout=10 %SERVER_USER%@%SERVER_IP% "echo '[SUCCESS] SSH key authentication working!'"
|
|
|
|
if !ERRORLEVEL! equ 0 (
|
|
echo.
|
|
echo You can now run deploy-only.bat without password
|
|
) else (
|
|
echo [WARN] Key authentication test failed
|
|
echo Please try running this script again
|
|
)
|
|
|
|
pause |