1.服务器执行如下命令 nohup 后台启动, address=5005 开启idea远程调试监听的端口,game-dragon-tiger-fights-1.0-SNAPSHOT.jar java的jar包, > fight.log写入日志,&后台启动。
nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=n -jar game-dragon-tiger-fights-1.0-SNAPSHOT.jar > fight.log &
2.idea配置