process.pid 属性返回进程的 PID。
process.pid
console.log(`This process is pid ${process.pid}`);
The process.pid property returns the PID of the process.