tomcat 启动日志报出以下错误:
ERROR: transport error 202: bind failed: Address already in use ["transport.c",L41]
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) ["debugInit.c",L500]
JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL


以上证明有地址被用,我在系统启动的批处理文件中加了个远程debug端口号7777.结果是因为这个端口已经用了,是开始开启后,进程 没有结束掉


解决方法:

进入cmd命令模式,查看该端口是否在使用
netstat -aon|findstr 7777


TCP    0.0.0.0:7777           0.0.0.0:0              LISTENING       8728


再根据该正在使用的进程号,找到对应的应用程序

2. 查找7777进程号是哪个进程(其他进程号可用同样的方式查看):

tasklist|findstr 8728


java.exe                    8728 Console                 0    710,440 K


以上可以看到该进程占用的程序为java.exe,结束掉譔程序再启动服务就OK了