Unable to set localhost. This prevents creation of a GUID

2017-12-22 15:27:31

Unable to set localhost. This prevents creation of a GUID. Cause was: LM-SHC-00950646: LM-SHC-00950646: nodename nor servname provided, or not known

java.net.UnknownHostException: LM-SHC-00950646: LM-SHC-00950646: nodename nor servname provided, or not known



请放心,这不是你的锅。

经过对比以前配置的各个服务器,和网上查询资料,找到了解决方案。


在etc/hosts上添加  127.0.0.1 LM-SHC-00950646


后面的事你的机器号  登录服务器的时候能看到,或者你可以通过命令去查看这个机器号。



为什么不是我们的锅呢,因为别的服务器没有这情况,是因为别的服务器买的时候,里面就有了这个配置。


你说去哪说理去。

  • 2017-11-10 00:06:15

    CORS: credentials mode is 'include'

    XMLHttpRequest cannot load http://localhost/Foo.API/token. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:5000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

  • 2017-11-19 00:17:51

    Java如何获取Date的“昨天”与“明天”示例代码

    最近在做项目的时候用到Date和Calendar比较多,而且用到的方式也比较全,突然想到一个问题,Java如何获取Date的"昨天"与"明天",也就是前一天和后一天呢?思考后写出了方法,想着万一以后用到,就总结出来,也方便有需要的朋友们参考借鉴,下面来一起看看吧。

  • 2017-11-23 02:00:51

    js 分页插件twbs-pagination

    ​cdn地址 http://www.bootcdn.cn/twbs-pagination/ 官网地址 可以在cdn地址上面查看到