Recently, the project needs to begin to understand some web socket-related knowledge, and the demo on the web socket official website shows something like nodejs. To be honest, I just switched from C ++ to upper-layer development, and I don't even know what this is. However, after searching for some information, I also learned something about it, I would like to share with you the integration of some resources ).
The relevant content of Node. js is fully explained. You can refer to this address:
Http://www.ibm.com/?works/cn/opensource/osnodejs/ I think this is still relatively incorrect.
Node. js: The http://nodejs.org/
However, you may not know how to start the node. js program. By searching on the network, we finally learned that in windows, we need to download the software cygwin, which is a unix simulation environment running on windows.
Cygwin use: http://www.linuxidc.com/Linux/2011-02/32324p2.htm
This article is also great, http://www.cnblogs.com/Darren_code/archive/2011/10/31/2207063.html
I have been using cygwin configuration for a long time. I am really tired because wget has never been used. You don't have to worry about downloading it in the command line, you can download it directly from the url I provided above. If you are not good at using commands like me, you can do it manually.
After trying for more than an hour, I read
Bytes.
Note that you want to start the node. js program in cygwin.
If your program name is example. js and is in the test folder of the E disk, you need to enter the following command.
$ Node E: \ test/example. js press Enter.
Hope to help people who need it.
This article is from the "typical lion man" blog, please be sure to keep this source http://zhouhongyu1989.blog.51cto.com/2931598/1288560