process.pid


process.pid 属性返回进程的 PID。

console.log(`This process is pid ${process.pid}`);

The process.pid property returns the PID of the process.

console.log(`This process is pid ${process.pid}`);