解决C3P0在Linux下Failed to get local InetAddress for VMID问题

这么一个错:

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保存即可。

你可能感兴趣的:(InetAddress)