LoginSignup
4
5

More than 5 years have passed since last update.

IoTハンズオン向けサーバ構築手順(IDCFクラウド)

Last updated at Posted at 2016-02-20

以下に、IoTハンズオン向けサーバの構築手順をメモしておく。

1. 仮想マシン作成(詳しくは「めちゃ楽ガイド」を参照)
light.S1
Ubuntu Server 14.04 LTS 64-bit

サービス ポート番号
SSH 22
http 80
https 443
MQTT 1883
Node-RED 1880

(ファイアウォールおよびポートフォワード)

2. node.js(4.2.x)をインストール

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install make
sudo apt-get install build-essential
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v

3. Node-RED(0.13.1)のインストール

sudo npm install -g --unsafe-perm node-red

4. MQTT(1.4.8)関連のインストール

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto mosquitto-clients

5. MongoDBのインストール

sudo apt-get install libkrb5-dev
sudo apt-get install mongodb

6. Node-REDのノードを追加
ノードを追加する前に、一度Node-REDを起動する。

cd ~/.node-red
sudo npm install node-red-node-mongodb
4
5
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
4
5