Fast installation of node. JS and Go languages on CENTOS7

Source: Internet
Author: User
Tags install go install node

Fast installation of node. JS and Go languages on CENTOS7

First, installation environment

Centos7.4

Ii. installing node. js

Reference article: Easiest steps to install Nodejs Linux system

1, to the official website to download and its own system matching files:

English website: https://nodejs.org/en/download/

English Address: http://nodejs.cn/download/

Download the Linux system (x86/x64) in 64-bit, that is, this installation is a binary file installation, non-compiled installation A.

2. Install node. js

Download node. js

Upload the downloaded node-v10.8.0-linux-x64.tar.xz to the server's/USR/LOCAL/SRC

Extract

cd /usr/local/srctar -xvf node-v10.8.0-linux-x64.tar.xz

Install node

mv node-v6.10.0-linux-x64 /usr/local/ln -s /usr/local/node-v6.10.0-linux-x64 /usr/local/bin# 测试node.js安装成功node -v

3. Install the Go language

Reference article: Installation configuration and simple use of Go on Linux

Download the Go Language binary installation package

Download Address: https://golang.org/dl/

Download go1.10.3.linux-amd64.tar.gz

Upload go1.10.3.linux-amd64.tar.gz to/usr/lcoal/src

Extract

cd /usr/local/srctar -zxf go1.10.3.linux-amd64.tar.gzmv go /usr/local

Install Go

Writes the path of go to the PATH environment variable

vim /etc/profile# 在最后写入环境变量export PATH=$PATH:/usr/local/go/binsource /etc/profile# 检测go安装成功go version
Related Article

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.