报错:om.mchange.v2.c3p0.impl.C3P0ImplUtils {C3P0ImplUtils.java:125} - Failed to get local InetAddress for VMID. This is unlikely to matter. At
或者这么一个错:
com.mchange.v2.c3p0.impl.C3P0ImplUtils - Failed to get local InetAddress for VMID.
This is unlikely to matter. At all. We'll add some extra randomness
java.net.UnknownHostException: v-dxt-guankong1: v-dxt-guankong1
找不到主机。
于是,先去看主机在什么位置定义的:
cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=v-dxt-guankong1
然后,修改host文件
vi /etc/hosts 在行127.0.0.1 localhost localhost.localdomain 后加上v-dxt-guankong1保存即可。
加上主机名即可!