LoginSignup
16
8

More than 5 years have passed since last update.

ec2(amazon linux)にnode.jsを導入

Posted at

前提
 ・EC2のインスタンスを作成済み(yumのupdateも完了)
 ・インスタンスのセキュリティーグループでsshを許可している
 ・インスタンスにSSHに繋げる
 ・Macでターミナルを使用

手順
 1. 依存パッケージのインストール
 2. node.js v6 をインストール(当時の安定版の最新版)
 3. node.jsのインストール

1. 依存パッケージのインストール

sudo yum install -y gcc-c++ make

2. node.js v6 をインストール(当時の安定版の最新版)

curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -

3. node.jsのインストール

sudo yum install -y nodejs

以上〜♪

16
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
8