赞
踩
这个很好解决,网上大部分都说是端口占用冲突,打开Evet Log 查看会显示
Address localhost:1088 is already in use
直接干掉1088对应的进程就ok了
当试过第二种方法之后发现还是没法启动,idea依旧显示
Unable to open debugger port
这时候可以退出idea,然后在外部单独运行tomcat尝试看能不能启动,如果启动不了显示
java.net.BindException: Cannot assign requested address: JVM_Bind
很明显就是无法分配请求的地址,我才想起来 本地hosts
文件,打开一看
192.168.7.24 localhost
localhost被绑定到了一个192.168.7.24的局域网上,本地tomcat无法绑定到这个ip地址,所以改为
127.0.0.1 localhost
这样就可以正常启动了
由于开发过程中经常在本地、测试系统、线上切换hosts文件,所以也要多注意一下host文件的内容,不能乱添加。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。