diff --git a/dsSso/Shell/remote.sh b/dsSso/Shell/remote.sh new file mode 100644 index 00000000..d2c5bba4 --- /dev/null +++ b/dsSso/Shell/remote.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# 先杀掉内存中的进程 +kill -9 `pgrep -f dsSso` 2>/dev/null +# 休息3秒 +sleep 3 + +cd /usr/local/dsMin/dsSso +chmod +x dsSso + +# 运行为后台进程 +cd /usr/local/dsMin/dsSso && + +# 使用dlv方便远程调试 +dlv --listen=:2345 --headless=true --api-version=2 exec ./dsSso