Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to install node.js in IIS7? [closed]

Is there a way to install node.js in IIS7?

I have very little experience with node.js but the idea of writing server-side JavaScript intrigues me.

like image 987
Kenneth J Avatar asked Nov 18 '11 21:11

Kenneth J


People also ask

Can NodeJS be installed on Windows 7?

Normally old operating system needs an old version of Node. JS. you can refer to old version of Node. JS here, you can also download this one, which is tested and working fine with Win7( win7 Ultimate v6.

Is it safe to install Node JS?

js security, like all other frameworks or programming languages, is prone to all kinds of web application vulnerabilities. The core of Node. js is secure, but third-party packages may require additional security measures to protect your web applications.

Can I install Node JS in Windows 10?

You can install Node.js on your Windows system using the .msi installer from the official website of Node.

Can we host node js in IIS?

IISNode is an open source native IIS module written in C++ that allows node. js (node.exe) to be run inside Windows IIS.


1 Answers

Yes, you can do it...but it's still not going to be as easy as you'd hope. :-)

The github wiki for iisnode lists many benefits:

  • Process management.
  • Side by side with other content types
  • Scalability on multi-core servers
  • Integrated debugging
  • Auto-update
  • Access to logs over HTTP
  • Minimal changes to node.js application code
  • Integrated management experience
  • Others

The first stable build on node.js for windows was released earlier this month. http://blogs.msdn.com/b/interoperability/archive/2011/11/07/first-stable-build-of-nodejs-on-windows-released.aspx

More information on hosting IIS on Windows can be found here and here.


Prerequisites for using

  • Windows
  • IIS 7.x with IIS Management Tools
  • URL rewrite module for IIS
  • Latest node.js build for Windows
    • You can also do it manually by downloading node.exe from nodejs.org and saving to %programfiles%\nodejs on a 32 bit system or %programfiles(x86)%\nodejs on a 64 bit system
  • Visual C++ 2010 Redistributable Package for x86 or x64 (skip this if you install Visual Studio; on x64 systems you need to install both x86 and x64 if you intend to use IIS Express/WebMatrix)

Installing for IIS 7.x

  • Install iisnode for IIS 7.x: x86 or x64 - choose bitness matching your system
  • To set up samples, from the administrative command prompt call %programfiles%\iisnode\setupsamples.bat
  • Go to http://localhost/node

Installing for IIS Express/WebMatrix

  • Install WebMatrix
  • Install iisnode for IIS Express 7.x
  • Install node.js templates for WebMatrix
  • Open WebMatrix, choose "Site from folder", enter %localappdata%\iisnode\www, start the site, and play with the iisnode samples, or
  • Use node.js templates to get started quickly with an Express application or a skeleton Hello World
like image 160
David Murdoch Avatar answered Oct 01 '22 16:10

David Murdoch