ubuntu下的nodejs环境搭建

Linux(ubuntu下的nodejs环境搭建)

1: Oracle VM VirtualBox
2: Ubuntu 16.0.4
3: xshell

开始安装

1: 启动VM,创建虚拟机。
2: 添加Ubuntu镜像,next,next,完成。
3: 主机xshell连接虚拟机 参考

1: 虚拟机安装ssh服务,sudo apt-get install openssh-server
2: ps -e | grep sshd
450 ? 00:00:00 sshd
如果看到sshd那说明ssh-server已经启动了。
否则执行/etc/init.d/ssh start 启动SSH
3: 虚拟机新建一个网卡,选择Host-Only网络连接方式,启动虚拟机
4:查看虚拟机IP(ifconfig),在Xshell输入此IP地址作为 主机地址,用户名,密码就是Ubuntu的用户名,密码
5: xshell连接


4:安装atom

  1:apt-get update  
  2:apt-get install -y python-software-properties software-properties-common  
  3:add-apt-repository ppa:chris-lea/node.js  
  4:apt-get update  
  5:apt-get install nodejs
  完成

你可能感兴趣的:(ubuntu下的nodejs环境搭建)