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-06 01:00:17

    撤销git add

    如何撤销git add,不小心执行了git add . 操作,但是又不能提交所有的文件,因为对应不同的分支,现在怎么样可以将git add 撤销回来

  • 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.