# websocket **Repository Path**: 1165557013/websocket ## Basic Information - **Project Name**: websocket - **Description**: 监控信息统一收集分发 - **Primary Language**: Go - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-09-12 - **Last Updated**: 2022-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: Go语言, WebSocket, 信息分发, 主机监控 ## README ### 项目结构 ```log ├─cmd #项目启动入口 ├─configs #配置文件和配置实体类 │ └─configEntity #配置实体类 ├─dao #数据库操作和Redis操作 ├─domain #领域对象 ├─util #工具对象包 └─web #WebSocket对象 ``` ### 部署步骤 ```log 1.打开控制台进入项目目录 2.设置跨平台编译环境变量 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 3.编译命令 go build start.go -o ./bin/start 4.复制 bin configs 文件夹到服务器的部署文件夹中 5.进入 bin目录进行赋权 chmod 775 monitor 6.运行监控收集器 sudo nohup ./bin/start configs/config.yaml > nohup_start.log 2>&1 & ```