controllers/es.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
controllers/es.go
@@ -412,7 +412,7 @@ if ip == hosts.OldIp { nodeType = tmpType } if tmpType == "master" { if tmpType == "主节点" { newMasterHosts = append(newMasterHosts, ip) } if ip != hosts.OldIp { @@ -420,7 +420,7 @@ } } if nodeType == "master" { if nodeType == "主节点" { str1 := "sed -ie 's/network.host: " + hosts.OldIp + "/network.host: " + hosts.NewIp + "/g' /opt/elasticsearch/config/elasticsearch.yml" msg1 := runScript(str1) if msg1 == "运行失败" {