Background mount process and uninstall process in linux

Using ssh to connect to linux will open a process. When ssh is closed, the process will be closed, so that the process cannot continue to be allowed in the Linux background, which is more troublesome.

Therefore, it is necessary to use the linux background process to mount and unload;

(1) Mounting of background processes: If you want to mount the sh test.sh process, you need to use: nohup sh test.sh &. The process will automatically run in the background.

(2) Uninstallation of background processes: first check the background processes: ps -ef, you can view all processes in the linux, and ps -ef|grep filter conditions, you can add filter conditions.

What dead process: kill -9 process number (pid), you can close the current process;

See the following article: https://blog.csdn.net/yongh701/article/details/78378041

Please use your mobile phone to "scan" x

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324854870&siteId=291194637