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

来源:互联网 发布:c语言国家二级考试时间 编辑:程序博客网 时间:2024/05/22 05:15


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: host-10-18-16-8: host-10-18-16-8

找不到主机。
于是,先去看主机在什么位置定义的:
cat /etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=no
**HOSTNAME=v-dxt-guankong1**

注:粗体部分可能没有

然后,修改host文件
vi /etc/hosts 在行127.0.0.1 localhost localhost.localdomain 后加上host-10-18-16-8保存即可。

0 0