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}`);