pid files are used to prevent a process from starting multiple vm instances.
For example, through file locks, it can be ensured that only one process can hold the write permission of this file at a time, so adding the logic of obtaining the pid file lock and writing the pid file to the program startup detection logic can prevent repeated startup of multiple copies of the vm instance.
pid filesare used to prevent a process from starting multiple vm instances.For example, through file locks, it can be ensured that only one process can hold the write permission of this file at a time, so adding the logic of obtaining the pid file lock and writing the pid file to the program startup detection logic can prevent repeated startup of multiple copies of the vm instance.