문서의 이전 판입니다!
/etc/hosts
에 127.0.0.1 localhost
존재시 올바른 hostname이 아닌 무조건 localhost
리턴/etc/hosts
is 127.0.0.1 localhost localhost.localdomain centos57
, then Java8 returns localhost
for getHostName()
.127.0.0.1 centos57 localhost.localdomain localhost
then getHostName()
returns centos57
.