Environment: Ubuntu12.0464-bit. In order not to be affected by permission issues, I chose to directly use the root account to download Node. js & gt; wgethttp: // response;
Environment: Ubuntu 12.04 64-bit
In order not to be affected by permission issues, I chose to use the root account directly.
Download Node. js
> Wget http://nodejs.org/dist/v0.10.26/node-v0.10.24.tar.gz
So you can find the node-v0.10.24.tar.gz file in your current directory.
Decompress:
> Tar-zxvf node-v0.10.24.tar.gz
Enter the decompressed directory:
> Cd node-v0.10.24
>./Configure
> Make
> Make install
If no error occurs, you can view the version in the command line.
> Node -- version
Show v0.10.26
Now, after nodeJS is installed, you can develop it.
Reading:
Node. Js getting started [PDF + related Code] http://www.linuxidc.com/Linux/2013-06/85462.htm
Node. js getting started development guide Chinese edition http://www.linuxidc.com/Linux/2012-11/73363.htm
Node. js installation and configuration http://www.linuxidc.com/Linux/2013-05/84836.htm
Ubuntu build and install Node. js http://www.linuxidc.com/Linux/2013-10/91321.htm
Node. js details: Click here
Node. js: Click here
Of course, as a programmer, what we cannot tolerate is that all the details require us to write code, instead of using the existing functional code. In order to quickly develop a website, we must select some development tools. Here I recommend Express
Okay, let's install it.
> Npm install-g express
(Npm has built-in-g after version 0.6 to indicate that it is set as a global variable)
> Npm install-g express-generator
If no error message is displayed, you can view its version.
> Express-V
So how can I use express to quickly build a website?
First create a folder
> Mkdir app
> Cd app
> Npm install ejs
> Npm install jade
> Express-e ejs website
For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-05/101418p2.htm