[tomcat] couldn't get host name 解决

Posted Cool King

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[tomcat] couldn't get host name 解决相关的知识,希望对你有一定的参考价值。

错误日志

2016-07-04 15:55:26,899 ERROR [localhost-startStop-1] StdSchedulerFactory.java:1202]-Couldnt generate instance Id!
org.quartz.SchedulerException: Couldnt get host name! [See nested exception: java.net.UnknownHostException: crm_pre: crm_pre: Name or service not known]

解决

vim /etc/hosts
# 将自己主机名按以下方式添加
127.0.0.1   localhost myhost

 

以上是关于[tomcat] couldn't get host name 解决的主要内容,如果未能解决你的问题,请参考以下文章