About the linux nohup command feedback about

Copyright: Copyright Rights Reserved https://blog.csdn.net/weixin_39921821/article/details/90747939

  First, after the usual you connect linux server with Xshell or CRT or what other client tools, it is inevitable that some sort of problem when operating on one page: When is that you start a service, or start a jar engineering, service starts up it will occupy the entire page, so you can not operate other things, of course, if you add a link or certainly possible, but no longer the same page very troublesome, if the exit will result in the operation of other things the service stopped or turned off process, is not it will feel very unhappy miles? By the way, I myself feel very uncomfortable it! I believe the majority of fellow citizens feel about the same. So the question is, how to finish publishing service, but will not quit the service stopped the process, but also the operation of other stuff mile?

          Yes, that is the nohup command +

Here is the magical effect of the nohup command:

nohup That literally means not hang up the run command (stands for no hang up), and & means running in the background myself!

nohup jar engineering / service name &: This refers to jar the project / service name does not hang in the background slightly ~

nohup java -jar XXXXXX.jar &

E.g:

It can be seen then automatically withdrawn after completion of starting the service, and the other can operate

Next, check whether the process really is started

 

Guess you like

Origin blog.csdn.net/weixin_39921821/article/details/90747939