[tomcat] couldn't get host name 解决

错误日志

2016-07-04 15:55:26,899 ERROR [localhost-startStop-1] StdSchedulerFactory.java:1202]-Couldn't generate instance Id!
org.quartz.SchedulerException: Couldn't 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

 

posted @ 2016-07-04 16:40  Cool_King  阅读(3857)  评论(0编辑  收藏  举报