mac java.rmi.server.ExportException: Port already in use: 1099; nested exception is

出现问题:1099端口被占用

分析问题:启动多个 tomcat 没有关闭

解决问题:1.关闭多余的不使用的 tomcat

        2.找不到多余的 tomcat 使用以下的方式


错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: 

java.net.BindException: Address already in use: JVM_Bind

1099被占用了

1)打开终端输入:

2)lsof -i tcp:1099;

找到被占用的数字,我的是5943;

3)kill 5943;


mac java.rmi.server.ExportException: Port already in use: 1099; nested exception is