XMEMCACHED部署时抛UnknownHostException

抛错信息:

net.rubyeye.xmemcached.monitor.XMemcachedMbeanServer 88 initialize - Get HostName Error java.net.UnknownHostException: redhat6.4: redhat6.4: Name or service not known

原因:

XMEMCACHED初始化时需要读取LOCALHOST配置,而服务器LOCALHOST未配置。

 

解决方案:

配置/etc/hosts

127.0.0.1 redhat6.4

其中redhat6.4为hostname

猜你喜欢

转载自jdkleo.iteye.com/blog/2274221