go build -o server main.gohttp://192.168.1.151:5300/web/ cat <<EOF >/etc/systemd/system/imserver.service
[Unit]
Description=imserver
After=network.target
[Service]
Type=simple
ExecStart=/data/server/imserver -config /data/server/configs/tsdd.yaml
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl start imserver
systemctl enable imserver
systemctl status imserver