首页 > 编程语言 >NacosException: java.net.UnknownHostException: jmenv.tbsite.net

NacosException: java.net.UnknownHostException: jmenv.tbsite.net

时间:2023-01-03 16:35:42浏览次数:80  
标签:http tbsite org apache java net impl

第一次接触Nacos,启动时报错(java.net.UnknownHostException: jmenv.tbsite.net)解决方案。

错误信息:

Caused by: java.net.UnknownHostException: jmenv.tbsite.net
        at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
        at java.net.InetAddress.getAllByName(InetAddress.java:1192)
        at java.net.InetAddress.getAllByName(InetAddress.java:1126)
        at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
        at com.alibaba.nacos.common.http.BaseHttpClient.execute(BaseHttpClient.java:45)
        at com.alibaba.nacos.common.http.NacosSyncHttpClient.get(NacosSyncHttpClient.java:46)
        at com.alibaba.nacos.core.cluster.lookup.AddressServerMemberLookup.syncFromAddressUrl(AddressServerMemberLookup.java:155)
        at com.alibaba.nacos.core.cluster.lookup.AddressServerMemberLookup.run(AddressServerMemberLookup.java:101)
        ... 123 common frames omitted

解决方案:

Nacos默认是集群(cluster)启动,将其设置为单机(standalone)启动则不会报这个错。若需要集群启动则需要进行相关的集群配置。

windows启动:

startup.cmd -m standalone

linux启动:

startup.sh -m standalone
————————————————
版权声明:本文为CSDN博主「Cx_轩」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_25223941/article/details/125309505

标签:http,tbsite,org,apache,java,net,impl
From: https://www.cnblogs.com/abel-he/p/17022607.html

相关文章

  • Javascript条件语句
    Javascript条件语句之ifelse1<!DOCTYPEhtml>2<html>3<head>4<metacharset="utf-8">5<title>helloworld</title>6</head>......
  • JDK的版本有多少种,Java开发者应该选择哪一种?
    JDK的版本有多少种,Java开发者应该选择哪一种?先说结果,一般情况下,我们多数会选择OpenJDK或者AdoptOpenJDK的JDK实现,因为这是最精简最标准的版本,而且没有商业风险。另外,需要结......
  • java AddressUtils获取地址工具类
    /***获取地址类**@authorruoyi*/publicclassAddressUtils{privatestaticfinalLoggerlog=LoggerFactory.getLogger(AddressUtils.class);......
  • JAVA判断字符串是否包含中文或者包含中文字符
      privatestaticPatternpattern=Pattern.compile("[\u4E00-\u9FA5|\\!|\\,|\\。|\\(|\\)|\\《|\\》|\\“|\\”|\\?|\\:|\\;|\\【|\\】]");/***字符串是否......
  • java IpUtils获取ip工具类
    /***获取IP方法**@authorruoyi*/publicclassIpUtils{/***获取客户端IP**@paramrequest请求对象*@returnIP地址......
  • .net 6下创建identityserver4的项目过程记录之【一】
    首先声明一下,我是按照下面的教程来进行操作的:.NET6集成IdentityServer4+AspNetCoreIdentity读取本地数据表用户-董川民(dongchuanmin.com)具体步骤记录如下: 一......
  • java 生成uuid
    /***提供通用唯一识别码(universallyuniqueidentifier)(UUID)实现**@authorruoyi*/publicfinalclassUUIDimplementsjava.io.Serializable,Comparable<UUID......
  • java 线程Threads工具类
    /***线程相关工具类.**@authorruoyi*/publicclassThreads{privatestaticfinalLoggerlogger=LoggerFactory.getLogger(Threads.class);/*......
  • JavaScript 中的数据是如何存储在内存中的
    JavaScript是什么类型的语言JavaScript是一种弱类型的、动态的语言。那这些特点意味着什么呢?弱类型:支持隐式类型转换的语言称为弱类型语言,不支持隐式类型转换的语言称......
  • java MimeTypeUtils媒体类型工具类
    /***媒体类型工具类**@authorruoyi*/publicclassMimeTypeUtils{publicstaticfinalStringIMAGE_PNG="image/png";publicstaticfinal......