python * * py & is this how I run, or is it disconnected?
python * * py & is this how I run, or is it disconnected?
the same old question. If your process needs to run stably in the background for a long time, it is recommended to write it as service. For CentOS 7, Ubuntu 16.04 and other operating systems, systemd is used to do service manager, to write systemd scripts. For operating systems such as CentOS 6 and Ubuntu 14.04, using upstart-managed services, you can write upstart service scripts. The relevant data can be accessed by yourself, and it is not difficult to write.
if you only need to run in the background temporarily, you can consider running it in screen or tmux virtual terminal, which can help you hold session, to prevent accidental disconnection.
configure ServerAliveInterval: on the local virtual machine
Both of the two ways mentioned by @ Feng_Yu are feasible.
in addition, you can also use pm2
supervisor
and other process management tools
Previous: How does vue convert the current page to html and download it?
Next: This error occurred when using Alipay SDK to get user information?
the time is as follows: every day 08 30,10 code 10, 10:40 < time > how to write it out with one command? can you write multiple arbitrary time points, for example: 2018-12-03 14 purge 09, 2019-03-22 15:17 ...
main server jps shows DataNodeDataNode jps: dead nodes is displayed as 0 ...
for work reasons, I used the strace command to track the whole process of curl and wget requests, and the conclusion about DNS domain name resolution is as follows. Some of them do not understand, and the source code does not understand (operation and m...
1. Recently, I encountered a strange thing when I configured adsl dialing on linux. When adding vlan to linux, the VLAN Dev name of vlan normally ends with [network card .xx]. As a result, mine ends with [renamexx], which is directly above the figure. ...
operating system: windows server2008 R2 uses virtualbox5.12 accidentally delete vdi files, snapshots are still there, how to restore ...
question 1: obviously, when you install IPtable, query, you are prompted not to install question 2: Baidu said that you still need to install iptable-service, if you are uneasy, how to keep the rules saved after IPtable restart? Please forgive me if y...
cpu has a high load, which means there are more waiting processes, but cpu itself is idle or can handle other tasks, so why does the system change cards when the cpu load is high? ...
there is a server whose IP is 10.99.40.xxx, which is used to deploy the project, and a server with an IP of 10.99.1.x, which is used to store video images. if I want to access the server where the video images are stored on the project server. Should b...
is installed with yum on the Internet I. the software package required to install the NFS server: yum install-y nfs-utils then start the service directly with systemctl start nfs-server.service but I compiled and installed it, how do I start it?...
use rmtrash instead of rm, to do alias rm= bin rmtrash.sh in bashrc found that when a personal account uses rm, the files will be moved to the ~ .rmtrash folder, and the root account will also be moved to ~ .rmtrash under the root directory. but...
simulate a redis cluster on a linux host according to the tutorial https: redis.io topics clust... on the official website, where the command to set up the cluster is as follows: redis-cli --cluster create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7...
I have a ubuntu physical machine with two network cards installed on it. Now the network cable is plugged into the 100-megabit network card enp2s0, and the gigabit network card network port enp1s0 is not plugged into the network cable, but checking the ...