zoukankan      html  css  js  c++  java
  • 在log4j里出现Name or service not known时该怎么办【备忘】

    出现以下问题时

    2013-05-09 22:40:28 [net.rubyeye.xmemcached.XMemcachedClient]-[WARN] - XMemcachedClient use Binary protocol
    2013-05-09 22:40:28 [net.rubyeye.xmemcached.monitor.XMemcachedMbeanServer]-[ERROR] - Get HostName Error
    java.net.UnknownHostException: Test159: Test159: Name or service not known

    在hosts文件中增加Memcached中连接的IP 和机器名,例如Memcached中的IP为10.10.3.159,机器名为Test159

    vi /etc/hosts

    10.10.3.159    Test159

  • 相关阅读:
    个人博客
    个人博客
    个人博客
    个人博客
    个人博客
    团队作业—个人记录
    4.21
    4.20
    4.19
    4.18
  • 原文地址:https://www.cnblogs.com/kgdxpr/p/3068983.html
Copyright © 2011-2022 走看看