标签:save waiting ted 安装 文件 efk 下载 .tar.xz ica
打开nodejs官网
https://nodejs.org/en/download/
选择二进制 右键复制链接
1.在Linux控制台输入 wget https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xz
[root@iZm5efk0kft7tkZ home]# wget https://nodejs.org/dist/v6.10.2/node-v6.10.2-l inux-x64.tar.xz
--2017-04-07 08:48:46-- https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64. tar.xz
Resolving nodejs.org... 104.20.22.46, 104.20.23.46, 2400:cb00:2048:1::6814:162e, ...
Connecting to nodejs.org|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9366128 (8.9M) [application/x-xz]
Saving to: `node-v6.10.2-linux-x64.tar.xz‘
100%[======================================>] 9,366,128 521K/s in 18s
2017-04-07 08:49:06 (499 KB/s) - `node-v6.10.2-linux-x64.tar.xz‘ saved [9366128/ 9366128]
2.下载完成后解压文件
tar xf node-v6.10.2-linux-x64.tar.xz -C /usr/local/
3.建立连接
ln -s /usr/local/node-v6.10.2-linux-x64/bin/node /
ln -s /usr/local/node-v6.10.2-linux-x64/bin/npm /usr/local/bin
完成
测试一下输入node
没提示错误,搞定
标签:save waiting ted 安装 文件 efk 下载 .tar.xz ica
原文地址:https://www.cnblogs.com/tiechui2015/p/10390984.html