码迷,mamicode.com
首页 > 其他好文 > 详细

[tomcat] couldn't get host name 解决

时间:2016-07-04 17:10:16      阅读:1888      评论:0      收藏:0      [点我收藏+]

标签:

错误日志

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 解决

标签:

原文地址:http://www.cnblogs.com/coolking/p/5640931.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!