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

时间:2023-03-08 16:30:56
解决C3P0在Linux下Failed to get local InetAddress for VMID问题

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

FailedtogetlocalInetAddressforVMID.Thisisunlikelytomatter.Atall.We'lladdsomeextrarandomnessjava.net.UnknownHostException:host-10-18-16-8:host-10-18-16-8找不到主机。于是,先去看主机在什么位置定义的:cat/etc/sysconfig/networkN       

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