ClusterApi.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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 } //更换节点角色