Option 1

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
apt-get update
yum update
apt-get install git
yum install git
source ~/.bashrc
source ~/.zshrc
nvm ls-remote --lts
nvm install v7.9.0#版本可修改
nvm use v7.8.0#版本可修改
nvm current

Option 2

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash1 #先安装,nvm,即是Node Version Manager(Node版本管理器)
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash1
source ~/.nvm/nvm.sh1 #之后需要激活nvm,激活完成后,安装node
nvm install node 1

nvm use node1 #安装完成后,切换到该版本
npm -v1 #检验是否安装成功
node -v

附带一个Webssh的npm
git clone https://github.com/billchurch/WebSSH2
cd WebSSH2
npm install --production
npm start
打开 http://Webssh服务器IP:Webssh端口/ssh/host/SSH服务器IP 即可使用
修改 config.json 中的 listen.port 即可修改端口
后台直接screen 或 nohup&

Last modification:February 16th, 2019 at 11:32 pm
性感博主,在线要饭