1 在Linux环境上部署host项目,解压war包

jar -xvf smartBus-host-v1.war

tomcat+eclipse 远程debug

2 配置tomact  startup.sh  文件  加入:

 

##############remoteDebugStart###########################i

declare -xCATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7000"

###############remoteDebugEnd############################

 tomcat+eclipse 远程debug

3 启动host项目

              ps -ef|grep java

               ./startup.sh  启动

4  配置本地eclipse(1配置地址和端口号  2引入项目包)

 tomcat+eclipse 远程debugtomcat+eclipse 远程debug

 

 

 

 

 

注:

 

debug:

vim startup.sh

 ps-ef|grep java

kill -9 25190

 ./bin/startup.sh

//启动debug监听端口

nestat -an |grep 6000

//查看监听端口是否开启

netstat -an |grep 6000

                tomcat+eclipse 远程debugtomcat+eclipse 远程debugtomcat+eclipse 远程debugtomcat+eclipse 远程debug         

相关文章:

  • 2021-07-30
  • 2021-09-13
  • 2021-06-04
  • 2021-05-04
  • 2021-12-18
  • 2021-06-03
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2021-10-17
  • 2021-09-08
  • 2021-08-11
  • 2022-01-23
  • 2021-06-09
相关资源
相似解决方案