The script is already running at this time. Even if the shell terminal is closed, the program is still running, because the direct terminal that starts the program is tmux, not your securecrt. If you want to check the process status, reopen securecrt and execute
$nohup your_service & Convert to background operation, ignore stderr, stdout is transferred to nohup.out. It will continue even if you exit the terminal.
Or search how to register a linux service so that it can be managed with $service xxx start
It is recommended to use tmux (Linux terminal reuse software), the solution is as follows: (CentOS machine)
The script is already running at this time. Even if the shell terminal is closed, the program is still running, because the direct terminal that starts the program is tmux, not your securecrt.
If you want to check the process status, reopen securecrt and execute
tmux detailed documentation
documentation
One process management supervisord is all it takes
$nohup your_service &
Convert to background operation, ignore stderr, stdout is transferred to nohup.out. It will continue even if you exit the terminal.
Or search how to register a linux service so that it can be managed with
$service xxx start
The methods mentioned above can be used. I'm talking about one that uses screen. For example:
screen -S xyz (Choose a memorable name)
xxxx (your command)
ctrl+a+d
Then just exit.
After logging in next time, execute:
screen -r xyz
You can return to the last interface you exited
System V init
、supervisord
未来都是systemd
dishes^_^