try {
Process pro = Runtime.getRuntime().exec("ping -c 2 " + url);
if (Objects.isNull(pro)) {
throw new BusinessException();
}
string = IOUtils.toString(new BufferedReader(new InputStreamReader(pro.getInputStream(), StandardCharsets.UTF_8.name())));
if (ReUtil.count("ttl=(\\d+)\\s+time=(\\S+)(\\s+)ms", string) == 0) {
throw new BusinessException();
}
pro.destroy();
} catch (Exception ex) {
throw new BusinessException();
}