1. jar -jar 开启远程调试
nohup java -server -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n -Dfile.encoding=UTF-8 -Dspring.config.location=application.properties -jar $JAR_NAME >/home/app/eye/logs/eye_service.log 2>&1 &
核心配置
-Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n
2. 远程调试端(IDEA jdk版本有关)