How does IDEA set up a remote tomcat server?

the goal I want to achieve is as follows:

I use IDEA on my computer (win10) to link to remote tomcat (on my own CVM, in centOS7 environment). Then when the test is run, IDEA will automatically update the file to the server and call tomcat on the server to run the test, so that the information transmitted by system.out.println () in my program can be seen directly in the IDEA on my computer. I don"t know if it can be realized.

< hr >

I"ve tried it myself, and it should be stuck on a JMX port right now.
first of all, I google "remote server" + IDEA + tomcat ", and get a tutorial-- idea/creating-a-remote-server-configuration.html" rel= "nofollow noreferrer" > Portal -- which I generally understand, but I do set up depolyment. It is possible for me to run the tests locally and then go to Tools--Deployment--Upload to to deploy the local project to the server. But it"s not enough to make tomcat--remote server work.

then look at idea/2017.3/run-debug-configuration-tomcat-server.html" rel=" nofollow noreferrer "> Run/Debug Configuration: Tomcat Server , I fill in everything I can, but this JMX port doesn"t work. Obviously, the official manual says" If you are not deploying anything with this run configuration, you don"t need to specify this port ". This should mean that if you don"t use JMX, you can"t specify it here, then I"ll delete it and leave it blank. I"m not allowed to keep it. Set to 1099 (silently serious), after running, remind me that I can"t connect. I can"t do that. I"ll try to turn on the head office.

so google went to "tomcat7 + JMX" and got this official description , and then according to the description file given by the hyperlink in" (see RUNNING.txt for details). "(search setenv.bat in), I think it means

.

1. Create a new setenv.sh file in the tomcat7%/bin directory

2. Enter: (delete all newline characters, do not set)

into the file


CATALINA_OPTS=-Dcom.sun.management.jmxremote-Dcom.sun.management.jmxremote.port=1099-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote.authenticate=false

3. Exit Save

4. And then it should be all right.

then go back to IDEA and try to call the remote server, but it doesn"t work.

what else can I say? Can only say, Boss Happy New year, Boss take me!


remote deployment tool, you can use off-the-shelf plug-in jrebel

in addition, don't use system.out.println () and use the logging framework.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8ee45-120f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8ee45-120f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?