错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use
mac 下使用:“终端”,执行以下命令,kill这个线程就可以重新运行程序。
AAAdeMacBook-Pro:~ mac$ lsof -i:1099
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 1611 mac 30u IPv6 0xf6ff0e7e4769662f 0t0 TCP *:rmiregistry (LISTEN)
AAAdeMacBook-Pro:~ mac$ kill 1611