From 49dbcc5797b17cff523fdafec62a5417a9753d50 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 29 Jul 2020 08:35:44 +0800 Subject: [PATCH] 'commit' --- dsSso/Shell/remote.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 dsSso/Shell/remote.sh 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