Add nohup before the original startup command./catalina. sh start, that is, nohup./catalina. sh start
Where,NohupIt is a linux command and runs without hanging up. The details are as follows:
Syntax: nohup Command [Arg...] [&]
Description: The nohup Command runs the Command specified by the Command parameter and any relevant Arg parameter, ignoring all SIGHUP signals. After logging out, run the nohup command to run the program in the background. To run the nohup command in the background, add the & (symbol indicating "and") to the end of the command.
Whether or not the output of the nohup command is redirected to the terminal, the output will be appended to the nohup. out file in the current directory. If the nohup. out file in the current directory cannot be written, the output will be redirected to the $ HOME/nohup. out file. If no file can be created or opened for append, the Command specified by the Command parameter cannot be called. If a standard error is a terminal, write the specified command to all outputs of the standard error as the standard output and redirect it to the same file descriptor.
Exit status: this command returns the following export values:
126 you can find but cannot call the Command specified by the Command parameter.
127 The nohup Command has an error or cannot find the Command specified by the Command parameter.
Otherwise, the exit status of the nohup Command is the exit status of the Command specified by the Command parameter.
After remotely starting tomcat through SSH, log out of SSH and tomcat.