idea 远程调试线上springboot项目
1.远程项目启动
java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 zipkin-0.0.1-SNAPSHOT.jar
2.系统防火墙
firewall-cmd --zone=public --add-port=5005/tcp --permanent
firewall-cmd --reload
3.本地idea配置
Edit Configuration->"+"->remote->填写服务器IP、端口,command line arguments for remote JVM,点击Debug按钮即可!
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005