The console that Putty used to connect to the server was first downloaded, and FLASHFXP was used to upload files. Here are the detailed steps to take a look.
1. Download Node.js
Download Address: Node.js
Never download with the command line, too slow.
Upload to the server when the download is complete.
2. Decompression
Enter the directory for the Node.js installation package, and then enter the command:
Tar zxf node-latest.tar.gz
3. Compile
into the unpacked folder
Enter command:
Wait a little while.
And then enter the command:
4. Installation
Command:
Just wait a minute.
When you are finished, enter
If the version number is output, it means the installation is successful!
5. Deployment Applications
You can then use the NPM command to install the required modules.
There was a bit of an episode when installing Bower, installed with root when using Bower installation dependencies, but the sudo problem came and there was "cannot is run with sudo". The error message is as follows:
Fortunately, however, he made it clear, using the following command:
Bower Install bootstrap--allow-root
Well, the problem solved, the above is the Aliyun ECS Server deployment of installation Node.js All the steps, I hope that the need for friends can help, if you have questions you can message exchange.