Error:Unable to connect to the localhost:1099

简介: Error:Unable to connect to the localhost:1099

问题

在配置好Tomcat之后去执行,会出现Unable to connect to the localhost:1099这个问题,这个问题是因为我们运行的是本地的代码而不是远程的代码,所以在配置tomcat的时候需要选择local而不是remote。

4bc846d94f1f4814bd6d93951d9a0173.png

方案

1.编辑tomcat的配置

b8d4975411284b62b5e448e45363592a.png

2.将之前配置好的tomcat进行移除

3cdfd80888f2408ea469ee2d91e09cc8.png

3.然后点击添加,找到Tomcat,选择Local即可。

注:如果是运行本地的代码需要选择Local如果运行远程的代码需要选择Remote

f1c304b856bb4206a7f4956ebd318727.png

4.添加完之后在对应的配置jdk和war包什么的就可以了。


相关文章
|
3月前
|
Android开发
SocketException: Failed to create server socket(OS Error: Permission denied, errno = 13)
SocketException: Failed to create server socket(OS Error: Permission denied, errno = 13)
55 3
Error from server error dialing backend remote error tls internal error
Error from server error dialing backend remote error tls internal error
116 0
|
Android开发
Error connecting to the service protocol failed to connect to错误
Error connecting to the service protocol failed to connect to错误
【MySQL8.0】【Junit】Access denied for user ‘‘@‘localhost‘ + Internal Error occurred.
【MySQL8.0】【Junit】Access denied for user ‘‘@‘localhost‘ + Internal Error occurred.
170 0
【MySQL8.0】【Junit】Access denied for user ‘‘@‘localhost‘ + Internal Error occurred.
|
NoSQL MongoDB
运行 mongo 出现 Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed
运行 mongo 出现 Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed
1014 0
运行 mongo 出现 Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
218 0
|
网络协议
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
515 0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案