#!/bin/bash ssh root@110.40.223.170 "/usr/bin/killall iot_service" ssh root@110.40.223.170 "/usr/bin/rm -r /opt/lc/iot_svr/iot_service" scp -r build/* root@110.40.223.170:/opt/lc/iot_svr/ # 以下需要 在线上服务器执行 # /opt/lc/iot_svr/start.sh