kill all node server mac terminal code example Example 1: kill all node server mac terminal killall node Example 2: node js stop process.exit();