nacos2.2.1启动报错:org.springframework.context.ApplicationContextException: Unable to start web server;等
windows下启动 nacos 界面的报错日志如下: 解决方法一 解决方法二
windows下启动 nacos 界面的报错日志如下:
找到 nacos.log 日志文件去查看详细的启动日志,在最后几行发现这样的报错日志:
Caused by: com.alibaba.nacos.api.exception.NacosException: java.net.UnknownHostException: jmenv.tbsite.netat com.alibaba.nacos.core.cluster.lookup.AddressServerMemberLookup.run(AddressServerMemberLookup.java:152)at com.alibaba.nacos.core.cluster.lookup.AddressServerMemberLookup.doStart(AddressServerMemberLookup.java:100)at com.alibaba.nacos.core.cluster.AbstractMemberLookup.start(AbstractMemberLookup.java:55)at com.alibaba.nacos.core.cluster.ServerMemberManager.initAndStartLookup(ServerMemberManager.java:224)at com.alibaba.nacos.core.cluster.ServerMemberManager.init(ServerMemberManager.java:171)at com.alibaba.nacos.core.cluster.ServerMemberManager.<init>(ServerMemberManager.java:152)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)... 115 common frames omittedCaused by: java.net.UnknownHostException: jmenv.tbsite.netat java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:196)at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162)at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)at java.net.Socket.connect(Socket.java:606)at sun.net.NetworkClient.doConnect(NetworkClient.java:175)at sun.net.www.http.HttpClient.openServer(HttpClient.java:499)at sun.net.www.http.HttpClient.openServer(HttpClient.java:594)at sun.net.www.http.HttpClient.<init>(HttpClient.java:278)at sun.net.www.http.HttpClient.New(HttpClient.java:375)at sun.net.www.http.HttpClient.New(HttpClient.java:393)at sun.net.www.protocol.http.HttpURLConnection.