IIS 8 Nodejs + iisnode Configuration

Source: Internet
Author: User

Recently re-configured NODEJS running environment in Server + IIS 8, the specific configuration process will not elaborate (random search a bunch), installed after Nodejs and Iisnode, an error occurred, as follows:

The Iisnode module is unable to start the node.exe process. Make sure the Node.exe executable are available at the location specified in the system.webserver/iisnode/@nodeProcessComma ndline element of Web. config. By default Node.exe are expected in one of the directories listed in the PATH environment variable

Google has a half-day, just beginning to think is X86nodejs installation path problem, later Daoteng half-day always wrong, later found an article https://admin-ahead.com/forum/websitepanel/node-js-error!/

Workaround: In the Web. config "system.webserver node plus:

<iisnode watchedfiles= "*.js;node_modules\*;routes\*.js;views\*.jade" nodeprocesscommandline= "C:\Program Files\ Node.exe "/>

Problem solved, I go to the bird, I hope to help to the rear encounter this problem of child boots, my web. config file is as follows, for reference:

<Configuration>    <system.webserver>        <handlers>                <Removename= "Nodejs" />            <!--indicates that the Server.js file is a node. js application to being handled by the Iisnode module -            <Addname= "Iisnode"Path= "Server.js"verb="*"Modules= "Iisnode" />        </handlers>        <IisnodeWatchedfiles= "*.js;node_modules\*;routes\*.js;views\*.jade"Nodeprocesscommandline= "C:\Program files\node.exe"/>    </system.webserver></Configuration>

IIS 8 Nodejs + iisnode configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.