Authored by qinchao

nginx自动伸缩

... ... @@ -364,22 +364,11 @@ public class CloudToolServiceImpl implements CloudToolService {
if(2==infoReq.getCloudType()){
cloud="qcloud";
}
commond.append("\""+cloud+"\"");
String ips=infoReq.getNewInstanceIps();
commond.append(" ");
commond.append(cloud);
commond.append(" ");////要有空格
commond.append(infoReq.getNewInstanceIps());
String allips="";
for(String ip:ips.split(",")){
if(allips.length()>0){
allips += " ";
}
allips += ip;
}
commond.append("\"");
commond.append(allips);
commond.append("\"");
logger.error(" - begin - updateNginxConfig- sql"+commond.toString());
logger.error(" - begin - updateNginxConfig- "+commond.toString());
response.setMessage(commond.toString());
try{
CommodUtil.exe(commond.toString());
... ...