sunty
2020-10-22 bcaa3f6a736346101c8e4f98fade840f82e00a3d
add index init
1个文件已修改
10 ■■■■■ 已修改文件
ClusterApi.go 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ClusterApi.go
@@ -29,6 +29,15 @@
    return true, nil
}
//初始化索引
func InitIndex(indexPath string) (bool) {
    resultMsg := CMDSC("sh " + indexPath + "/indexInit.sh")
    if resultMsg == "运行失败" {
        return false
    }
    return true
}
//启动服务
func StartServer(binPath string, ip string, port string) bool {
    resultMsg := CMDSC("sh " + binPath + "/es_start.sh")
@@ -51,7 +60,6 @@
    bs := VerifyShortNodeServer(ip, port)
    return bs
}
//更换节点角色
func UpdateNodeRole(configPath string, role string) (bool, error) {