@c-Ku
2017-11-14T16:25:52.000000Z
字数 718
阅读 842
vps node
进行连接
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
// 先升级系统# sudo apt-get update# sudo apt-get install git-core curl build-essential openssl libssl-dev// 然后如下# sudo apt-get install build-essential# cd node/// # git tag # // 此步骤可列出当前全部版本# git checkout v0.12.7 // 指定安装版本// 然后编译并安装# ./configre# make# sudo make install// 可输入以下查看安装结果# node -v // 0.12.7
安装npm
# wget https://npmjs.org/install.sh --no-check-certificate# chmod 777 install.sh# ./install.sh# npm -v // 2.11.3