[关闭]
@c-Ku 2017-11-14T16:25:52.000000Z 字数 718 阅读 842

Debian系统安装nodejs

vps node


文章參照:
http://www.jianshu.com/p/7b3c45046fb0

最新版:
https://www.zybuluo.com/c-Ku/note/951389

进行连接

Windows用户请使用 putty

地 址:VPS对应IP
端 口:22
用户名:root
密 码:在管理面板查看

Mac用户请在终端输入

ssh root@域名
或如同 ssh root@192.168.1.2 -p 8080 的制定端口连接

输入以下指令安装 VestaCP 管理面板

apt-get update -y && apt-get install wget git vim curl -y && curl -O http://vestacp.com/pub/vst-install.sh && bash vst-install.sh

安装node

  1. // 先升级系统
  2. # sudo apt-get update
  3. # sudo apt-get install git-core curl build-essential openssl libssl-dev
  4. // 然后如下
  5. # sudo apt-get install build-essential
  6. # cd node/
  7. // # git tag # // 此步骤可列出当前全部版本
  8. # git checkout v0.12.7 // 指定安装版本
  9. // 然后编译并安装
  10. # ./configre
  11. # make
  12. # sudo make install
  13. // 可输入以下查看安装结果
  14. # node -v // 0.12.7

安装npm

  1. # wget https://npmjs.org/install.sh --no-check-certificate
  2. # chmod 777 install.sh
  3. # ./install.sh
  4. # npm -v // 2.11.3
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注