仅运行一次(从unix shell提示符):
$ PORT=1234 node app.js
更永久地:
$ export PORT=1234$ node app.js
在Windows中:
set PORT=1234
在Windows PowerShell中:
$env:PORT = 1234

仅运行一次(从unix shell提示符):
$ PORT=1234 node app.js
更永久地:
$ export PORT=1234$ node app.js
在Windows中:
set PORT=1234
在Windows PowerShell中:
$env:PORT = 1234