ClusterApi.go
@@ -40,8 +40,15 @@ } //关闭服务 func StopServer(binPath string) { func StopServer(pidPath string, ip string, port string) bool { bool := VerifyShortNodeServer(ip, port) if bool == true { resultMsg := CMDSC("kill `cat " + pidPath + "pid`") if resultMsg == "运行失败" { return false } } return true } //更换节点角色