在阿里云 ECS 搭建 nginx https nodejs 环境(三、nodejs)
在阿里云 ECS 搭建 nginx https nodejs 环境(三、nodejs)
在阿里云 ECS 搭建 nginx https nodejs 环境(三、nodejs)
第一步 指定版本源
执行 curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
setup_8.x 需要安装的版本号,替换数字就行。
vue@ubuntu-vue:~$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
出现下面这个就说明正在成功安装了!
## Installing the NodeSource Node.js v6.x repo...
## Populating apt-get cache...
第二步 通过 apt-get 进行下载
+ apt-get update
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue InRelease
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue-updates InRelease [95.7 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue-backports InRelease [92.2 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue-security InRelease [94.5 kB]
Hit:5 http://repo.mysql.com/apt/ubuntu vue InRelease
Fetched 282 kB in 0s (615 kB/s)
Reading package lists... Done
apt-get update
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue InRelease
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue-updates InRelease [95.7 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue-backports InRelease [92.2 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu vue-security InRelease [94.5 kB]
Hit:5 http://repo.mysql.com/apt/ubuntu vue InRelease
Get:6 https://deb.nodesource.com/node_6.x vue InRelease [3,914 B]
Get:7 https://deb.nodesource.com/node_6.x vue/main Sources [765 B]
Get:8 https://deb.nodesource.com/node_6.x vue/main amd64 Packages [960 B]
Get:9 https://deb.nodesource.com/node_6.x vue/main i386 Packages [959 B]
Fetched 289 kB in 5s (51.9 kB/s)
Reading package lists... Done
Run `apt-get install nodejs` (as root) to install Node.js v6.x and npm
最后一步 安装 nodejs,执行 apt-get install nodejs !
vue@ubuntu-vue:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 90 not upgraded.
Need to get 10.1 MB of archives.
After this operation, 50.7 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_6.x vue/main amd64 nodejs amd64 6.9.1-1nodesource1~xenial1 [10.1 MB]
Fetched 10.1 MB in 1min 25s (119 kB/s)
Selecting previously unselected package nodejs.
(Reading database ... 60366 files and directories currently installed.)
Preparing to unpack .../nodejs_6.9.1-1nodesource1~xenial1_amd64.deb ...
Unpacking nodejs (6.9.1-1nodesource1~xenial1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (6.9.1-1nodesource1~xenial1) ...
vagrant@ubuntu-vue:~$ node -v
v8.3.0
vagrant@ubuntu-vue:~$ npm -v
5.3.0
哇~~~终于看到 node 的版本啦~~ 说明,我们已经全部成功的安装了 nodejs 在 linux 下~~
好了~~ 基于 linux(ubuntu) 下的 的nginx 、https、 nodejs 的安装使用,到这里基本算是告一段落了~
后面 笔者 也会专注于 服务端 ssr 的研究~
欢迎推荐噢~
在阿里云 ECS 搭建 nginx https nodejs 环境(三、nodejs)的更多相关文章
- 在阿里云 ECS 搭建 nginx https nodejs 环境(二、https)
在阿里云 ECS 搭建 nginx https nodejs 环境(二) 这次主要内容是 如何在 ubuntu 的nginx 下配置 二级域名. 一. 域名解析 首先你需要去到你的 域名服务商那边 进 ...
- 在阿里云 ECS 搭建 nginx https nodejs 环境 (一、 nginx)
首先介绍下相关环境.软件的版本 1.阿里云 ECS . ubuntu-14.04.5 LTS 2.nginx 版本 1.9.2 可能会遇到的问题: 一.在 ssh 服务器上的时候,提示 这个时候需要将 ...
- 阿里云上安装mysql步骤/ 阿里云ECS搭建Java+mysql+tomcat环境
使用阿里云ECS挺长一段时间了.这两天碰巧朋友小白让我一步一步教他在ECS上搭建Java+mysql+tomcat环境,所以把在这里把步骤在这简单整理了一下,以便需要的人查阅. 我购买的阿里云服务器系 ...
- 阿里云ECS搭建node/mongodb开发环境及部署
一.前端的er在window或mac上安装开发环境应该再清楚不过了.但在服务器上安装还是有点不同的,毕竟是 centOS,从此不得不走上用命令操作…… 二.前期准备 1.首先,我们去阿里云网站阿里云服 ...
- 阿里云ECS搭建SVN配置外网
阿里云ECS搭建SVN后,配置外网启动不了,检查云服务器没发现问题,后来发现是阿里云拦截,需要在阿里云控制台ECS安全组新增如下配置:
- 阿里云ECS搭建开源跳板机jumpserver无法获取验证邮件的问题及解决办法
这段时间自己在阿里云上搭建了jumpserver3.0,在安装过程中需要输入邮箱smtp地址,输入之后会有一封验证邮件的,但是在阿里云ECS服务器上却无法收到邮件.查阅了阿里云官方的说明: 为什么无法 ...
- 手把手教你如何在阿里云ECS搭建Python TensorFlow Jupyter
前段时间在阿里云买了一台服务器,准备部署网站,近期想玩一些深度学习项目,正好拿来用.TensorFlow官网的安装仅提及Ubuntu,但我的ECS操作系统是 CentOS 7.6 64位,搭建Pyth ...
- 阿里云ECS搭建kubernetes1.11
环境信息 说明 1.使用kubeadm安装集群 虚拟机信息 hostname memory cpu disk role node1.com 4G 2C vda20G vdb20G master nod ...
- centos(Linux)系统阿里云ECS搭建 jdk,tomcat和MySQL环境,并部署web程序
之前我对这个东西一无所知,攻击力为0,谢谢各个论坛上面的兄弟们的帮助. 过程: 首先ssh远程登陆: ssh root@你的公网ip ,输入密码 1,jdk我用的版本是jdk-7u80-linux-x ...
随机推荐
- 多版本VisualStudio导致的.net版本问题
写在前面:本博文是在我现有知识状态下写的, 我现在是小白, 有错误欢迎指正. 以后假如接触到更合理的见解, 我一定会修正这篇博文的. 本文原是在我本地笔记中待着的, 写于2016/05/17. 下 ...
- 设计模式 - 装饰者模式(Decorator Pattern) 具体解释
装饰者模式(Decorator Pattern) 具体解释 本文地址: http://blog.csdn.net/caroline_wendy/article/details/26707033 装饰者 ...
- java注解(转并做修改)
本文由 ImportNew - 人晓 翻译自 idlebrains.欢迎加入翻译小组.转载请见文末要求. 自Java5.0版本引入注解之后,它就成为了Java平台中非常重要的一部分.开发过程中,我们也 ...
- SSM学习(二)mybatis和spring的集成
上一篇文章大概搭建了一下ssm的框架,其实还是不完整,我们往项目中添加了spring和mybatis的配置文件,还差一个spring mvc的配置文件,在resource中在新建一个Applicati ...
- JavaScript操作符(一元操作符)
JavaScript操作符包括算术操作符.位操作符.关系操作符和相等操作符.只能操作一个值的操作符叫做一元操作符. 递增和递减操作符 递增和递减操作符有两个版本:前置型和后置型.前置型操作符位于要操作 ...
- Java Restful Web Service 学习指南
Restful是一种架构style,目前常说的有restful web service, resultful http.现在热搜榜的微服务,大多数会采用Restful方式. JAX-RS 作为一个Re ...
- 安装Redis后RedisDesktopManager无法连接
1.查看端口,发现端口不通 2.修改安装redis的目录的redis.conf文件,把bind改为虚拟机的本机ip 3.关闭虚拟机的防火墙 #1.查看防火墙状态[root@localhost src] ...
- 【java设计模式】【创建模式Creational Pattern】单例模式Singleton Pattern
//饿汉式:资源利用率较低(无论是否需要都会创建),性能较高(使用前无需判断实例是否存在,可直接使用) public class EagerSingleton{ private static fina ...
- Python Web框架(URL/VIEWS/ORM)
一.路由系统URL1.普通URL对应 url(r'^login/',views.login) 2.正则匹配 url(r'^index-(\d+).html',views.index) url(r'^i ...
- Linux权限分析
我看过网上的一些有关Linux的权限分析,有些说的不够清楚,另外一些说的又太复杂.这里我尽量简单.清楚的把Linux权限问题阐述明白,Linux权限没有那么复杂. Linux权限问题要区分文件权限和目 ...