bangnaga icon

Install Node-red Google Cloud Deb-Jessie

bangnaga | PRO | 06/23/25 06:35:34 AM UTC (Edited) | 0 ⭐ | 173 👁️ | Never ⏰ | []
Bash |

1.65 KB

|

None

|

0 👍

/

0 👎

apt-get remove nodered
apt-get remove nodejs nodejs-legacy
apt-get remove npm
apt-get remove nodered
 
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
apt-get install -y build-essential python-dev python-rpi.gpio nodejs
 
cd /root
npm cache clean
npm install -g --unsafe-perm node-red
 
cd /root
npm install bcryptjs
apt-get install nodejs-legacy
mkdir .node-red
cd .node-red
npm install  moment
npm install node-red-contrib-grove
npm install node-red-contrib-bigtimer
npm install node-red-contrib-esplogin
npm install node-red-node-pushbullet
npm install node-red-contrib-freeboard
npm install node-red-node-openweathermap
npm install node-red-node-google
npm install node-red-node-sqlite
npm install node-red-contrib-ui
npm install node-red-node-emoncms
npm install node-red-node-geofence
npm install node-red-contrib-ivona
npm install node-red-contrib-moment
npm install node-red-contrib-particle
npm install node-red-contrib-graphs
npm install node-red-node-ledborg
npm install node-red-node-ping
npm install node-red-node-random
npm install node-red-node-smooth
 
And have I missed anything off for accessing ports ?
 
 
Tambahan : https://mmphego.wordpress.com/2017/02/11/node-red-dashboard-running-on-nginx-port-80/
 
 
Buat Firewall:\
In order to access the Node-RED VM from other machines, you must open the firewall for port 1880. Use this command:
 
gcloud compute firewall-rules create allow-node-red \
--project=$PROJECT \
--allow tcp:1880 \
--network=default \
--source-ranges=0.0.0.0/0 \
--target-tags=node-red
Sumber: https://medium.com/@DazWilkin/running-node-red-on-google-cloud-platform-under-docker-3d4185e97f28

Comments