对 iisnode 使用多个节点版本
Use multiple node versions with iisnode
我正在使用 iisnode。在同一台服务器上,我需要 运行 不同版本的节点用于不同的网站。我在服务器上安装了 nvm。我如何告诉 iisnode 我想为每个站点启动哪个版本的节点?[=10=]
您需要将 nodeProcessCommandLine 条目添加到 web.config 以指向您要使用的特定 node.exe 文件:
<configuration>
...
<system.webServer>
...
<iisnode nodeProcessCommandLine="C:\Users\Administrator\AppData\Roaming\nvm\v6.9.2\node.exe" />
</system.webServer>
</configuration>
我正在使用 iisnode。在同一台服务器上,我需要 运行 不同版本的节点用于不同的网站。我在服务器上安装了 nvm。我如何告诉 iisnode 我想为每个站点启动哪个版本的节点?[=10=]
您需要将 nodeProcessCommandLine 条目添加到 web.config 以指向您要使用的特定 node.exe 文件:
<configuration>
...
<system.webServer>
...
<iisnode nodeProcessCommandLine="C:\Users\Administrator\AppData\Roaming\nvm\v6.9.2\node.exe" />
</system.webServer>
</configuration>