1, download NodeJs
Download the official website: http://nodejs.cn/download/
2, installation
Double-click next full installation.
The installation is complete, view the version command in cmd execute the following command as follows
Here nodejs on the installation finished.
3, create a small program
In any folder, I am here to do presentations on the desktop, create a js file named main.js.
js document reads as follows
After creating main.js complete, cut in cmd window to the desktop path, execute the following command
In the browser, enter http://127.0.0.1:8888/ can see
Hello World
Case Reference Address: http://www.runoob.com/nodejs/nodejs-http-server.html