1、打包linux程序包
set GOOS=linux
set GOARCH=amd64
go build
set GOOS=windows
2、linux 安装 Linux Supervisor
https://atey.ink/post/linux-supervisor/
yum install python-setuptools
easy_install supervisor
# 新建目录
mkdir -p /etc/supervisor/conf.d
mkdir -p /var/log/supervisor
# 建立 supervisor 配置文件
touch /etc/supervisor/supervisord.conf
/etc/supervisor/conf.d/collection.conf
vim /lib/systemd/system/supervisord.service
/root/datacollection/dataCollection_linux
3、192.168.100.41 账号:root 密码:redhat
测试板子 账号:root 密码:redhat
NM安监板子 账号:root 密码:111