Install node under Linux

Source: Internet
Author: User

After some of the toss finally installed on Linux node, recorded to avoid forgetting

1. Download node

Go to the official website to download the latest Linux version of the corresponding node.js,node-v6.10.2-linux-x64.tar.gz

2. Upload the node file to the server

I use Xshell with the xftp upload to the node directory, this is a compressed file, in the command line input TAR-XVF node-v6.10.2-linux-x64.tar.gz, small hint: file name is longer, enter the first few characters, press the TAB key to automatically fill

3. Edit the configuration file

> Vim/etc/profile
Enter the following at the end of the file
Export node_home=/node/node-v6.10.2-linux-x64
Export path= $PATH: $NODE _home/bin
Export Node_path= $NODE _home/lib/node_modules
Edit File Command:
: QW, exit does not save: Q! exit Edit Status

4. Let the configuration file take effect

Command line enter the following command
> source/etc/profile The third-step configuration file takes effect

5. Check if the installation is successful

command Line Enter the following command > node-v to view the node version, if the version number is displayed, the installation is successful

Install node under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.