mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: Add NODE_DEBUG env to the first example.
The first example in cluster.markdown requires NODE_DEBUG env to show debug message. And also fix the message because it was a little bit different with the actual message.
This commit is contained in:
@@ -33,10 +33,11 @@ all share server ports.
|
||||
|
||||
Running node will now share port 8000 between the workers:
|
||||
|
||||
% node server.js
|
||||
Worker 2438 online
|
||||
Worker 2437 online
|
||||
|
||||
% NODE_DEBUG=cluster node server.js
|
||||
23521,Master Worker 23524 online
|
||||
23521,Master Worker 23526 online
|
||||
23521,Master Worker 23523 online
|
||||
23521,Master Worker 23528 online
|
||||
|
||||
This feature was introduced recently, and may change in future versions.
|
||||
Please try it out and provide feedback.
|
||||
|
||||
Reference in New Issue
Block a user