[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 解决的主要内容,如果未能解决你的问题,请参考以下文章

解决Mac Linux USB Loader“Couldn't get security scoped bookmarks”错误

error execution phase preflight: couldn't validate the identity of the API Server: Get https://1

Ubuntu16.04更新软件源,执行apt-get update时出现“The following signatures couldn't be verified”错误

关于hue安装后出现KeyError: "Couldn't get user id for user hue"的解决方法

打开CentOS7的终端显示:couldn't get a file descriptor referring to the console。中文意思是:无法获取指向控制台的文件描述符

quartz报错 Couldn't retrieve job because the BLOB couldn't be deserialized: null