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包什么的就可以了。


相关文章
|
4月前
|
应用服务中间件 网络安全 Apache
403 Forbidden 500 Internal Server Error
403 Forbidden 500 Internal Server Error
|
Java 应用服务中间件 PHP
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
812 0
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
Error from server error dialing backend remote error tls internal error
Error from server error dialing backend remote error tls internal error
146 0
|
Android开发
Error connecting to the service protocol failed to connect to错误
Error connecting to the service protocol failed to connect to错误
|
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
1132 0
运行 mongo 出现 Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed
Failed to connect to 127.0.0.1 port 1080: Connection refused package 问题解决方法
Failed to connect to 127.0.0.1 port 1080: Connection refused package 问题解决方法
863 0
Failed to connect to 127.0.0.1 port 1080: Connection refused package 问题解决方法