Ben 1 年之前
父节点
当前提交
5348887c47
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      run_master.sh
  2. 1 1
      run_slave.sh

+ 1 - 1
run_master.sh

@@ -1,4 +1,4 @@
 git pull origin master
 go build ./cmd/master.go
-ps aux | grep master | awk '{print "kill -9 " $2}' | sudo sh -x
+ps aux | grep master | awk '{print "kill -9 " $2}' | sh -x
 nohup ./master &

+ 1 - 1
run_slave.sh

@@ -1,4 +1,4 @@
 git pull origin master
 go build ./cmd/slave.go
-ps aux | grep slave | awk '{print "kill -9 " $2}' | sudo sh -x
+ps aux | grep slave | awk '{print "kill -9 " $2}' | sh -x
 nohup ./slave &