// influxdb客户端超时是由于http超时导致.
// 1. 声明 OkHttpClient 设置超时时间
static OkHttpClient.Builder build = new OkHttpClient.Builder()
.readTimeout(20, TimeUnit.SECONDS);
// 2.
InfluxDB influxDB = InfluxDBFactory.connect("http://127.0.0.1:8086", build);