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