자바 이상한 Couldn't get host name![See nested exception: java.net.UnknownHostException: ceshi: ceshi:

1314 단어 java 이상
오류 코드:
[ERROR][2017-04-25 15:37:14] org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1202) Couldn't generate instance Id! 
org.quartz.SchedulerException: Couldn't get host name! [See nested exception: java.net.UnknownHostException: ceshi: ceshi:  ]
    at org.quartz.simpl.SimpleInstanceIdGenerator.generateInstanceId(SimpleInstanceIdGenerator.java:36)
    at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1199)
    at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1525)
    at org.springframework.scheduling.quartz.SchedulerFactoryBean.createScheduler(SchedulerFactoryBean.java:595)
    at org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:478)
    at 
...

[ceshi]는 오프라인 테스트 서버의 서버 이름입니다.해결 방법:
[root@ceshi ~]# vi /etc/hosts

추가:
127.0.1.1    ceshi

OK

좋은 웹페이지 즐겨찾기