一站式IT运维管理平台:NeatLogic ITOM 15分钟快速上手终极指南

张开发
2026/4/17 23:33:43 15 分钟阅读

分享文章

一站式IT运维管理平台:NeatLogic ITOM 15分钟快速上手终极指南
一站式IT运维管理平台NeatLogic ITOM 15分钟快速上手终极指南【免费下载链接】neatlogic-itom-allNeatLogic is a progressive ITOM platform offering ITOM solutions for users of various types and sizes. It includes features like ITSM, CMDB, continuous integration, knowledge base, automation, reporting, and inspections. The platform is in active development, with upcoming additions of development and project management functionalities.项目地址: https://gitcode.com/gh_mirrors/ne/neatlogic-itom-all还在为IT运维管理的碎片化工具而烦恼吗CMDB、自动化、监控告警、ITSM、DevOps...每个系统都需要单独部署和维护数据孤岛让你疲于奔命NeatLogic ITOM平台正是为解决这一痛点而生——一个渐进式、模块化的IT运维管理平台为你提供一站式解决方案。 为什么选择NeatLogic ITOM想象一下你的团队需要管理服务器、监控应用性能、处理IT服务请求、自动化部署流程还要维护配置数据库。传统方案需要部署5-6个独立系统每个系统都有自己的数据库、用户体系和集成难题。NeatLogic ITOM将这些功能整合到一个平台中实现了真正的数据闭环。核心价值不只是工具集而是生态系统NeatLogic采用模块化架构设计每个功能模块都可以独立部署或组合使用。这种设计理念带来了三个关键优势渐进式采用你可以从最需要的模块开始比如CMDB或ITSM后续再逐步添加自动化、巡检等功能数据一致性所有模块共享统一的数据模型避免了数据同步的烦恼技术栈统一基于Spring Boot和Vue.js的现代化技术栈维护成本大幅降低NeatLogic ITOM平台整体架构图 - 展示了前后端分离、模块化设计和多数据源集成能力️ 技术选型背后的思考后端技术栈稳定与效率的平衡Spring Boot Tomcat的选择并非偶然。Spring Boot提供了快速开发能力而Tomcat作为成熟的Servlet容器在生产环境中经过充分验证。这种组合既保证了开发效率又确保了系统稳定性。为什么使用MySQL MongoDB双数据库MySQL存储结构化数据如用户信息、配置项、工单数据MongoDB处理非结构化数据如自动采集的配置信息、巡检结果 这种混合存储策略让每种数据都能找到最合适的家前端技术栈用户体验至上Vue.js Element UI的组合提供了现代化的用户界面和流畅的交互体验。前端采用单页面应用架构支持动态模块加载这意味着✅ 按需加载功能模块减少初始加载时间✅ 模块热更新无需刷新页面✅ 响应式设计支持PC和移动端⚡ 极简体验15分钟快速启动如果你只是想快速体验NeatLogic的核心功能这个极简方案最适合你。第一步环境准备3分钟确保你的系统满足以下最低要求操作系统LinuxUbuntu/CentOS或WindowsJavaJDK 8内存4GB以上推荐8GB存储至少20GB可用空间第二步一键启动5分钟NeatLogic提供了开箱即用的Docker Compose方案# 克隆项目代码 git clone https://gitcode.com/gh_mirrors/ne/neatlogic-itom-all.git --recurse-submodules cd neatlogic-itom-all # 启动所有服务 docker-compose up -d这个命令会自动启动MySQL数据库预置演示数据MongoDB用于自动采集Tomcat应用服务器Nginx反向代理第三步访问验证2分钟服务启动后打开浏览器访问http://localhost:9098/neatlogic使用默认账号登录用户名admin密码neatlogic901简洁现代的登录界面提供统一的IT运维管理入口第四步功能体验5分钟登录后你会看到NeatLogic的功能矩阵平台核心功能矩阵 - 仪表盘、IT服务、知识库、配置管理等八大模块建议按这个顺序体验仪表盘查看系统概览和关键指标IT服务管理创建一个简单的工单流程配置管理浏览预置的CMDB模型自动化查看内置的自动化脚本 生产部署企业级配置指南如果你计划在生产环境中使用NeatLogic需要更详细的配置。别担心我们为你准备了完整方案。架构设计高可用与可扩展性生产环境推荐采用分布式部署架构数据库配置性能优化策略MySQL配置优化-- 创建专用数据库用户 CREATE USER neatlogic% IDENTIFIED BY StrongPassword123!; GRANT ALL PRIVILEGES ON neatlogic.* TO neatlogic%; GRANT ALL PRIVILEGES ON neatlogic_tenant_*.* TO neatlogic%; FLUSH PRIVILEGES; -- 优化InnoDB配置 SET GLOBAL innodb_buffer_pool_size 2G; SET GLOBAL innodb_log_file_size 256M; SET GLOBAL max_connections 500;MongoDB配置建议# mongod.conf 关键配置 storage: dbPath: /data/mongodb journal: enabled: true wiredTiger: engineConfig: cacheSizeGB: 2 # 根据内存调整 replication: replSetName: neatlogic-rs security: authorization: enabled keyFile: /data/mongodb/keyfile应用服务器配置Tomcat优化创建setenv.sh配置文件#!/bin/bash # Tomcat内存配置 export CATALINA_OPTS-Xms4g -Xmx8g -XX:MaxMetaspaceSize512m export CATALINA_OPTS$CATALINA_OPTS -XX:UseG1GC export CATALINA_OPTS$CATALINA_OPTS -XX:MaxGCPauseMillis200 export CATALINA_OPTS$CATALINA_OPTS -Dfile.encodingUTF-8 # NeatLogic特定配置 export CATALINA_OPTS$CATALINA_OPTS -Dnacos.home192.168.1.100:8848 export CATALINA_OPTS$CATALINA_OPTS -Dlog4j.priorityINFONginx配置负载均衡与安全# /etc/nginx/nginx.conf upstream neatlogic_backend { server 192.168.1.101:8080 weight3; server 192.168.1.102:8080 weight2; server 192.168.1.103:8080 weight2; keepalive 32; } server { listen 80; server_name neatlogic.yourcompany.com; # 重定向到HTTPS return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; server_name neatlogic.yourcompany.com; ssl_certificate /etc/ssl/neatlogic.crt; ssl_certificate_key /etc/ssl/neatlogic.key; # 安全头部 add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection 1; modeblock; location / { proxy_pass http://neatlogic_backend; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # 连接超时设置 proxy_connect_timeout 30s; proxy_send_timeout 60s; proxy_read_timeout 60s; } # 静态资源缓存 location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { expires 1y; add_header Cache-Control public, immutable; proxy_pass http://neatlogic_backend; } } 开发环境搭建从源码到运行如果你是开发者想要基于NeatLogic进行二次开发这个部分专门为你准备。环境准备IDE与工具链IntelliJ IDEA配置要点使用2022.2.4及以上版本配置Maven 3.8支持profile功能使用JDK 8在IntelliJ IDEA中正确配置多模块项目结构项目结构解析NeatLogic采用模块化架构理解项目结构对开发至关重要neatlogic-itom-all/ ├── neatlogic-parent/ # 父POM管理公共依赖 ├── neatlogic-framework/ # 基础框架模块 ├── neatlogic-webroot/ # Tomcat部署模块主入口 ├── neatlogic-springboot/ # Spring Boot启动模块 ├── neatlogic-web/ # 前端Vue.js项目 ├── neatlogic-tenant/ # 租户管理API ├── neatlogic-itsm/ # IT服务管理模块 ├── neatlogic-cmdb/ # 配置管理模块 ├── neatlogic-autoexec/ # 自动化模块 ├── neatlogic-runner/ # 自动化执行器 └── ... 其他业务模块关键设计理念每个功能模块拆分为xxx和xxx-base两个子模块xxx-base包含POJO和底层接口供其他模块引用xxx包含业务逻辑Bean模块间隔离Maven构建与启动后端构建# 进入项目根目录 cd neatlogic-itom-all # 安装父模块首次构建需要 cd neatlogic-parent mvn clean install # 构建整个项目 cd .. mvn clean package -P develop # 查看构建结果 ls neatlogic-webroot/target/*.warMaven构建过程 - 显示依赖下载、编译和打包的完整流程前端开发环境# 进入前端项目 cd neatlogic-web # 安装Node.js v18.x # 推荐使用nvm管理Node版本 nvm install 18.16.0 nvm use 18.16.0 # 安装依赖使用cnpm加速 npm install -g cnpm8.2.0 cnpm install # 启动开发服务器 cnpm run serve数据库初始化生产环境需要三个数据库-- 1. 管理库所有租户共享 CREATE DATABASE neatlogic CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; -- 2. 租户业务库示例demo租户 CREATE DATABASE neatlogic_demo CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; -- 3. 租户扩展库存储系统生成的表和视图 CREATE DATABASE neatlogic_demo_data CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; -- 导入初始数据 # 从neatlogic-database/mysql目录导入对应SQL文件配置文件详解核心配置文件config.properties# 数据库配置生产环境建议使用连接池 db.urljdbc:mysql://localhost:3306/neatlogic_demo?useSSLfalsecharacterEncodingUTF-8 db.usernameneatlogic db.passwordyour_secure_password # 文件存储配置MinIO或本地存储 file.handlerMINIO minio.urlhttp://minio.yourcompany.com:9000 minio.bucketneatlogic-attachments # 消息队列可选 jms.urltcp://activemq.yourcompany.com:61616 # 平台访问地址 home.urlhttps://neatlogic.yourcompany.com # 心跳检测配置 heartbeat.rate3 heartbeat.threshold5 启动验证与故障排查服务启动验证成功启动后你应该看到类似这样的日志Tomcat成功启动日志 - 显示各模块初始化和部署状态健康检查端点# 检查后端服务状态 curl http://localhost:8080/neatlogic/tenant/check/demo # 预期返回 { status: OK, message: Service is running, timestamp: 2024-01-01T10:00:00Z }常见问题排查❌ 问题1前端无法访问后端症状前端控制台显示Compiled successfully但页面无法加载排查步骤检查后端服务是否启动curl http://localhost:8080/neatlogic/tenant/check/demo检查前端配置apiconfig.json{ tenantName: demo, urlPrefix: http://localhost:8080/neatlogic }检查防火墙和网络连通性❌ 问题2数据库连接失败症状应用启动时抛出数据库连接异常解决方案验证数据库服务状态mysql -u neatlogic -p -h localhost检查连接配置确保数据库用户有足够权限❌ 问题3Maven依赖下载失败症状构建时提示找不到依赖解决方案# 清理本地仓库缓存 mvn dependency:purge-local-repository # 重新下载依赖 mvn clean install -U 模块化扩展按需启用功能NeatLogic的真正威力在于它的模块化设计。你可以根据实际需求选择启用哪些功能模块。核心模块介绍模块功能描述适用场景neatlogic-itsmIT服务管理需要工单、服务目录、SLA管理的企业neatlogic-cmdb配置管理数据库需要统一资产管理、配置关系管理的组织neatlogic-autoexec运维自动化需要自动化脚本执行、批量操作的环境neatlogic-inspect系统巡检需要定期检查系统健康状态的运维团队neatlogic-deploy应用发布需要标准化发布流程的DevOps团队neatlogic-report报表系统需要数据可视化和报表生成的功能模块依赖关系自定义模块开发如果你需要扩展NeatLogic的功能可以遵循以下步骤创建基础模块结构neatlogic-custom/ ├── neatlogic-custom-base/ # 基础接口和POJO │ ├── src/main/java/com/neatlogic/custom/ │ └── pom.xml └── neatlogic-custom/ # 业务实现 ├── src/main/java/com/neatlogic/custom/ └── pom.xml配置模块依赖!-- neatlogic-custom/pom.xml -- dependencies dependency groupIdcom.neatlogic/groupId artifactIdneatlogic-custom-base/artifactId version${project.version}/version /dependency dependency groupIdcom.neatlogic/groupId artifactIdneatlogic-framework/artifactId version${project.version}/version /dependency /dependencies注册模块到系统实现IModule接口在META-INF/spring.factories中配置自动装配 持续集成与部署Docker容器化部署NeatLogic提供了完整的Docker支持# Dockerfile示例 FROM tomcat:9.0-jdk8-openjdk # 安装中文语言包 RUN apt-get update apt-get install -y locales \ locale-gen zh_CN.UTF-8 \ update-locale LANGzh_CN.UTF-8 # 复制应用 COPY neatlogic-webroot.war /usr/local/tomcat/webapps/ROOT.war # 配置时区 ENV TZAsia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime echo $TZ /etc/timezone # 暴露端口 EXPOSE 8080 # 启动命令 CMD [catalina.sh, run]Kubernetes部署配置# neatlogic-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: neatlogic namespace: itom spec: replicas: 3 selector: matchLabels: app: neatlogic template: metadata: labels: app: neatlogic spec: containers: - name: neatlogic image: your-registry/neatlogic:latest ports: - containerPort: 8080 env: - name: JAVA_OPTS value: -Xms2g -Xmx4g -Dnacos.homenacos-server:8848 resources: requests: memory: 4Gi cpu: 1000m limits: memory: 8Gi cpu: 2000m livenessProbe: httpGet: path: /neatlogic/actuator/health port: 8080 initialDelaySeconds: 60 periodSeconds: 10 readinessProbe: httpGet: path: /neatlogic/actuator/health port: 8080 initialDelaySeconds: 30 periodSeconds: 5 监控与运维系统健康监控NeatLogic内置了健康检查端点# 应用健康状态 curl http://localhost:8080/neatlogic/actuator/health # 数据库连接状态 curl http://localhost:8080/neatlogic/actuator/health/db # 磁盘空间检查 curl http://localhost:8080/neatlogic/actuator/health/disk日志配置优化生产环境建议配置日志轮转和集中管理!-- logback-spring.xml -- configuration property nameLOG_PATH value/var/log/neatlogic/ property nameLOG_FILE value${LOG_PATH}/neatlogic.log/ appender nameFILE classch.qos.logback.core.rolling.RollingFileAppender file${LOG_FILE}/file rollingPolicy classch.qos.logback.core.rolling.TimeBasedRollingPolicy fileNamePattern${LOG_PATH}/neatlogic.%d{yyyy-MM-dd}.log/fileNamePattern maxHistory30/maxHistory totalSizeCap10GB/totalSizeCap /rollingPolicy encoder pattern%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n/pattern /encoder /appender root levelINFO appender-ref refFILE/ /root /configuration性能监控指标建议监控以下关键指标应用层JVM内存使用率、GC频率、线程数、请求响应时间数据库层连接数、查询性能、锁等待时间系统层CPU使用率、内存使用率、磁盘IO、网络流量 下一步行动建议对于评估者从Docker Compose开始使用我们提供的docker-compose.yml快速体验所有功能重点体验核心模块建议按ITSM → CMDB → 自动化的顺序体验联系社区获取支持遇到问题可以在项目仓库中提问对于实施团队制定分阶段实施计划第一阶段部署基础平台 ITSM模块第二阶段添加CMDB和自动化模块第三阶段集成现有监控系统和流程数据迁移策略评估现有系统的数据结构和量级设计数据清洗和转换方案制定割接计划和回滚方案培训与推广为不同角色管理员、运维、开发准备培训材料建立内部支持体系收集用户反馈并持续优化对于开发者熟悉代码结构从neatlogic-framework开始理解核心架构参与社区贡献从修复文档错误开始逐步参与功能开发构建自定义模块基于业务需求开发专用功能模块关键资源获取源码目录neatlogic-itom-all/- 所有模块的源代码配置示例neatlogic-resources/config/- 配置文件模板数据库脚本neatlogic-database/mysql/- 数据库初始化脚本文档目录查看项目根目录下的README.md和各模块文档最后的小贴士NeatLogic的设计哲学是渐进式采用。不要试图一次性部署所有功能而是根据团队的实际需求和接受程度逐步引入各个模块。从解决最痛点的功能开始让团队看到价值再逐步扩展。记住最好的工具是那些真正被用起来的工具。开始你的NeatLogic之旅吧【免费下载链接】neatlogic-itom-allNeatLogic is a progressive ITOM platform offering ITOM solutions for users of various types and sizes. It includes features like ITSM, CMDB, continuous integration, knowledge base, automation, reporting, and inspections. The platform is in active development, with upcoming additions of development and project management functionalities.项目地址: https://gitcode.com/gh_mirrors/ne/neatlogic-itom-all创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

更多文章