我是靠谱客的博主 风中发卡,这篇文章主要介绍Unable to open debugger port,现在分享给大家,希望可以做个参考。

使用IDEA启动Tomcat进行调试时系统报 Unable to open debugger port的错误:
unable to open debugger port

解决方法:修改调试端口
这里写图片描述

修改了端口系统仍然报这个错误,并且直接Run Tomcat时系统报错
这里写图片描述

解决办法修改Tomcat 配置文件,在server.xml中添加

<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
certificateFile="conf/localhost-rsa-cert.pem"
certificateChainFile="conf/localhost-rsa-chain.pem"
type="RSA" />
</SSLHostConfig>
</Connector>

这段配置可能已经存在,只是默认被注释了,只要取消就可以了。

最后

以上就是风中发卡最近收集整理的关于Unable to open debugger port的全部内容,更多相关Unable内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部