您的当前位置:首页正文

[tomcat] couldn't get host name 解决

2024-11-20 来源:个人技术集锦

错误日志

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

 

转载于:https://www.cnblogs.com/coolking/p/5640931.html

显示全文