RailWise KB已发布
RAILWISE-OS Deployment Guide
Deployment guide for RAILWISE-OS Monitoring Business Operating System, covering environment setup, service configuration, and integration with TSM platform
learning-path
RAILWISE-OS Deployment Guide
Section titled “RAILWISE-OS Deployment Guide”Estimated Reading Time: 20 minutes
Goal: Deploy RAILWISE-OS monitoring business operating system and integrate with TSM platform
1. Product Overview
Section titled “1. Product Overview”RAILWISE-OS (Operating System) is RailWise’s monitoring business operating system built on Vue3 / Java / Python. It covers the full monitoring business lifecycle: project management, client collaboration, report delivery, personnel scheduling, and equipment management.
1.1 Core Modules
Section titled “1.1 Core Modules”| Module | Function | Tech Stack |
|---|---|---|
| Project Management | Project creation, lifecycle tracking, contract management | Vue3 + Spring Boot |
| Monitoring Data | Data query, chart viewing, alert handling | Vue3 + ECharts |
| Report Center | Report template management, auto-generation, approval workflow | Vue3 + Python (Jinja2) |
| Client Portal | Client data access, report download, alert notification | Vue3 + WebSocket |
| Equipment Management | Instrument inventory, calibration tracking, maintenance scheduling | Java + PostgreSQL |
| Personnel Management | Staff scheduling, task assignment, performance tracking | Java + Redis |
2. Deployment Architecture
Section titled “2. Deployment Architecture”┌─────────────────────────────────────────────────────────────┐│ RAILWISE-OS Frontend (Vue3) ││ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ││ │ Project │ │ Monitoring│ │ Report │ │ Client │ ││ │ Mgmt │ │ Data │ │ Center │ │ Portal │ ││ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │└─────────────────────────────────────────────────────────────┘ │ REST API┌─────────────────────────────────────────────────────────────┐│ RAILWISE-OS Backend (Java) ││ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ││ │ Project │ │ Report │ │ User │ │ Equipment│ ││ │ Service │ │ Service │ │ Service │ │ Service │ ││ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │└─────────────────────────────────────────────────────────────┘ │ ┌─────────────────────┼─────────────────────┐ ▼ ▼ ▼ ┌──────────┐ ┌──────────┐ ┌──────────┐ │PostgreSQL│ │ Redis │ │ MinIO │ │ (Main DB)│ │ (Cache) │ │ (Files) │ └──────────┘ └──────────┘ └──────────┘ │ ▼ ┌──────────────────┐ │ RAILWISE-TSM │ │ (Data Source) │ └──────────────────┘3. System Requirements
Section titled “3. System Requirements”| Environment | CPU | Memory | Disk | OS |
|---|---|---|---|---|
| Development | 4 cores | 8 GB | 50 GB | Ubuntu 22.04 / macOS 14 |
| Production | 8 cores | 16 GB | 200 GB SSD | Ubuntu 22.04 LTS |
| High Availability | 16 cores | 32 GB | 500 GB SSD | Ubuntu 22.04 LTS + K8s |
4. Installation Steps
Section titled “4. Installation Steps”4.1 Prerequisites
Section titled “4.1 Prerequisites”# Install Java 17sudo apt updatesudo apt install openjdk-17-jdk
# Install Node.js 20curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -sudo apt install -y nodejs
# Install Python 3.11sudo apt install python3.11 python3.11-venv python3.11-pip
# Install PostgreSQL 15sudo apt install postgresql-15 postgresql-client-15
# Install Redis 7sudo apt install redis-server4.2 Database Setup
Section titled “4.2 Database Setup”# Create databasesudo -u postgres psql -c "CREATE DATABASE railwise_os;"sudo -u postgres psql -c "CREATE USER railwise WITH PASSWORD \'your_password\';"sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE railwise_os TO railwise;"
# Run initialization scriptscd backend/sqlpsql -U railwise -d railwise_os -f init_schema.sqlpsql -U railwise -d railwise_os -f init_data.sql4.3 Backend Deployment
Section titled “4.3 Backend Deployment”cd backend./mvnw clean package -DskipTests
# Runjava -jar target/railwise-os-1.0.0.jar --spring.profiles.active=prod --server.port=80804.4 Frontend Deployment
Section titled “4.4 Frontend Deployment”cd frontendnpm installnpm run build
# Serve with nginx or any static server# Or use built-in previewnpm run preview -- --port 80 --host4.5 Python Report Service
Section titled “4.5 Python Report Service”cd report-servicepython3.11 -m venv venvsource venv/bin/activatepip install -r requirements.txt
# Start servicepython app.py --port 50005. TSM Integration
Section titled “5. TSM Integration”Configure TSM connection in backend/src/main/resources/application-prod.yml:
railwise: tsm: enabled: true base-url: https://tsm.railwise.cn api-key: ${TSM_API_KEY} sync-interval: 300 # seconds projects: sync-enabled: true auto-create: false data: sync-enabled: true alert-forward: true6. Common Operations
Section titled “6. Common Operations”| Operation | Command |
|---|---|
| Start backend | java -jar railwise-os.jar |
| Start frontend | npm run preview or nginx |
| Start report service | python app.py |
| View logs | tail -f logs/application.log |
| Database backup | pg_dump railwise_os > backup.sql |
Metadata Tags
Section titled “Metadata Tags”Last updated: 2026-07-08 | Version v1.0.0 | © Ningbo RailWise Engineering Technology Co., Ltd.
