LoginSignup
1
1

More than 1 year has passed since last update.

ラズパイでNode-Redをインストールする

Last updated at Posted at 2021-07-21

インストール

apt install でnode.jsとnpmとnode-redをインストールします。

sudo apt install nodejs npm nodered -y

起動

以下のコマンドで起動できます。
Ctrl+Cで停止します。

node-red

サービスとして起動

起動

以下のコマンドで起動できます。
Ctrl+Cでプロンプトに戻りますが停止しません。

node-red-start

停止

以下のコマンドで停止します。

node-red-stop

自動起動

自動起動を登録

以下のコマンドで自動起動を登録します。

sudo systemctl enable nodered.service

自動起動を解除

以下のコマンドで自動起動を解除します。

sudo systemctl disable nodered.service

Node-Redにアクセス

ラズベリーパイでNode-Redを起動し、PCブラウザのアドレスバーに{ラズベリーパイのホストネーム}:1880を入力します。
※ラズベリーパイの初期の干すストネームはraspberrypiです。
例:raspberrypi:1880
ラズベリーパイのデスクトップからアクセスする場合はlocalhost:1880です。
image.png

My Accounts

1
1
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
1
1