Can Node.js be run within Tomcat server?

后端 未结 1 1591
独厮守ぢ
独厮守ぢ 2020-12-09 03:26

From what I have read so far in this blog http://nowjs.com/ I need to install nodejs in the server machine for it to work. But, I am using a shared server and don\'t really

相关标签:
1条回答
  • 2020-12-09 04:06

    Yes, you are thinking of it it the wrong way. The key feature of Nodejs is that it contains, amongst other things, a rather natty embedded HTTP server. Think Jetty. However it might be possible now or in the future to run JavaScript in tomcat.

    I recommend going to http://nodejs.org/ and watching the video, it will surely clear the matter up for you.

    Meanwhile I would recommend getting hosting which includes SSH access, and preferably root access. Root access will make installing node a whole load easier and allow you to run it on a commonly used port (avoid running node as root, use port mapping) . But you don't need a seperate web server to get started, you can install Node.js on windows, mac and linux.

    0 讨论(0)
提交回复
热议问题