{"id":5141,"date":"2020-04-14T10:33:14","date_gmt":"2020-04-14T08:33:14","guid":{"rendered":"https:\/\/flprog.ru\/?p=5141"},"modified":"2020-10-01T15:33:50","modified_gmt":"2020-10-01T13:33:50","slug":"ustanovka-i-zapusk-node-red-na-aws-ubuntu","status":"publish","type":"post","link":"https:\/\/flprog.ru\/uk\/bez-rubriki\/ustanovka-i-zapusk-node-red-na-aws-ubuntu\/","title":{"rendered":"\u0421\u0432\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a Node-Red \u043d\u0430 AWS (ubuntu)"},"content":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Node-Red \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 Amazon.<\/p>\n<p><strong>\u0414\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e?<\/strong>\u00a0<\/p>\n<p><a title=\"Node-RED\" href=\"http:\/\/wikihandbk.com\/wiki\/Node-RED\">Node-RED<\/a> \u2013 \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0432\u0435\u0449\u0435\u0439 IoT, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0440\u0443\u0433 \u043a \u0434\u0440\u0443\u0433\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, API \u0438 \u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u0414\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 Flprog \u0434\u0443\u043c\u0430\u044e \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 Modbus, MQTT \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043e\u0442\u043e\u0432 Telegram Viber \u0438 \u0442.\u0434. \u0412 \u043e\u0431\u0449\u0435\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438, \u0442.\u043a. \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p><strong>\u041f\u043e\u0447\u0435\u043c\u0443 Amazon AWS?<\/strong><\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0442\u0430\u043a \u0432\u043e\u0442 \u0443 Amazon \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u0430-\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0433\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u0435\u0440\u0432\u044b\u0439 \u0433\u043e\u0434 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0446\u0435\u043d\u0430 \u0437\u0430 1 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 <span style=\"font-size: 16px;\"><strong>0$<\/strong><\/span>, \u043f\u0440\u0438\u0447\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043c\u0435\u0435\u0442 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 1 \u044f\u0434\u0440\u043e 1Gb \u041e\u0417\u0423 \u0438 8Gb SSD. \u0412 \u043e\u0431\u0449\u0435\u043c \u043d\u0435 \u043f\u043b\u043e\u0445\u043e \u0434\u043b\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041c\u043e\u0436\u0435\u0442\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0438 \u0431\u043b\u0430\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0434\u043b\u044f \u043d\u0430\u0441 \u0441\u0442\u043e\u044f\u0442 \u043e\u043d\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u0440\u043e\u0433\u043e 100-200 \u0440\u0443\u0431\u043b\u0435\u0439 \u0432 \u043c\u0435\u0441\u044f\u0446.\u00a0<\/p>\n<hr \/>\n<p><strong>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c:<\/strong><\/p>\n<p>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u043d\u0430 <a href=\"https:\/\/portal.aws.amazon.com\/billing\/signup#\/start\">AWS<\/a><\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/O1_--7IvP5g\" width=\"560\" height=\"314\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u041f\u043e\u0434\u043d\u0438\u043c\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043a \u043d\u0435\u043c\u0443 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0422\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0438\u0441\u0442\u0430\u043d\u0441\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u044d\u0442\u043e\u043c \u0432\u0438\u0434\u0435\u043e \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c Ubuntu.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/LjKGaco0QeQ?t=0\" width=\"560\" height=\"314\" allowfullscreen=\"allowfullscreen\"><\/iframe>\u00a0 \u00a0 \u00a0 \u00a0<\/p>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u043e SSH <a href=\"https:\/\/mobaxterm.mobatek.net\/download.html\">Mobaxtern <\/a>\u044d\u0442\u043e \u0432\u0430\u043c \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<hr \/>\n<p><strong>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f? \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\u00a0 Node.js<\/strong><\/em><\/p>\n<p><em>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0438\u0436\u0435.<\/em><\/p>\n<pre><strong>sudo apt-get update<\/strong>\r\n<strong>sudo apt-get upgrade<\/strong>\r\n<strong>cd ~<\/strong>\r\n<strong>curl -sL https:\/\/deb.nodesource.com\/setup_8.x -o nodesource_setup.sh<\/strong>\r\n<strong>sudo bash nodesource_setup.sh<\/strong>\r\n<strong>sudo apt install nodejs<\/strong>\r\n<strong>sudo apt install build-essential<\/strong><\/pre>\n<p>\u0423<em>\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438? \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c.<\/em><\/p>\n<pre><strong>nodejs -v<\/strong><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434<br \/>\nv8.11.1<\/p>\n<hr \/>\n<p><strong><em>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Node-Red\u00a0<\/em><\/strong><\/p>\n<pre>bash &lt;(curl -sL https:\/\/raw.githubusercontent.com\/node-red\/raspbian-deb-package\/master\/resources\/update-nodejs-and-nodered)<\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><strong>node-red<\/strong><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Node-RED \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0430\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>http:\/\/ip-\u0430\u0434\u0440\u0435\u0441-\u0432\u0430\u0448\u0435\u0433\u043e-\u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430:1880<\/p>\n<hr \/>\n<p><strong>\u0410\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 Node-Red<\/strong><\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043b\u0435\u0437\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a Node-Red<\/p>\n<pre><strong>sudo npm install -g pm2<\/strong>\r\n<strong>sudo pm2 start `which node-red` -- -v<\/strong>\r\n<strong>sudo pm2 save<\/strong>\r\n<strong>sudo pm2 startup<\/strong><\/pre>\n<div class=\"otfm_spoiler\">\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/div>\n<details open=\"open\">\u0417\u0430\u043f\u0443\u0441\u043a Node-Red<br \/>\n<strong><span style=\"background-color: #ccffff;\">sudo pm2 start node-red<\/span><\/strong><br \/>\n\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Node-Red<br \/>\n<strong><span style=\"background-color: #ccffff;\">sudo pm2 stop node-red<\/span><\/strong><br \/>\n\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a Node-Red<br \/>\n<strong><span style=\"background-color: #ccffff;\">sudo pm2 restart node-red<\/span><\/strong><br \/>\n\u0423\u0434\u0430\u043b\u0438\u0442\u044c Node-Red \u0438\u0437 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<br \/>\n<strong><span style=\"background-color: #ccffff;\">sudo pm2 delete node-red<\/span><\/strong><\/details>\n<hr \/>\n<p><strong>\u0417\u0430\u0449\u0438\u0442\u0430 Node-RED<\/strong><br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 Node-RED \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u043e\u043b\u044f. \u0425\u0435\u0448\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b.<\/p>\n<pre><strong>node-red-admin hash-pw<\/strong><\/pre>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442 \u043f\u0430\u0440\u043e\u043b\u044c. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0435\u0433\u043e, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter, \u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0445\u0435\u0448 \u043f\u0430\u0440\u043e\u043b\u044f. \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a Node-RED:<\/p>\n<pre><strong>nano \/home\/ubuntu\/.node-red\/settings.js<\/strong><\/pre>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\u00a0<\/p>\n<p>\u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 adminAuth (\u0443\u0434\u0430\u043b\u0438\u0442\u0435 \/\/ \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438).<\/p>\n<p>\u0412 \u0441\u0442\u0440\u043e\u043a\u0435 username \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430, \u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 password \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0445\u0435\u0448 \u043f\u0430\u0440\u043e\u043b\u044f.<\/p>\n<pre><strong>adminAuth: {<\/strong>\r\n<strong>type: \"credentials\",<\/strong>\r\n<strong>users: [{<\/strong>\r\n<strong>username: \"admin\",<\/strong>\r\n<strong>password: \"$2a$08$Ab9prIr1M8a5a1\/Zx8.B9.uIOCPe.v90ZGuZc2kAATp6BHJ\/WV5KS\",<\/strong>\r\n<strong>permissions: \"*\"<\/strong>\r\n<strong>}]<\/strong><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0430 dashboard \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 httpNodeAuth \u0438 httpStaticAuth<\/p>\n<p>\u0432 \u0441\u0442\u0440\u043e\u043a\u0435 username \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 password \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0445\u0435\u0448 \u043f\u0430\u0440\u043e\u043b\u044f.<\/p>\n<p>\u043f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0430\u0439\u043b\u043e\u043c \u043d\u0430\u0436\u043c\u0438\u0442\u0435 <mark>ctrl+X<\/mark> \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 <mark>Y<\/mark> \u0437\u0430\u0442\u0435\u043c <mark>Enter<\/mark>.<\/p>\n<hr \/>\n<p><strong>\u0412\u044b\u0432\u043e\u0434\u0438\u043c Dashboard \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443<\/strong><\/p>\n<p>\u00a0 \u0421\u0435\u0439\u0447\u0430\u0441 \u0430\u0434\u0440\u0435\u0441\u0430 \u0443 \u043d\u0430\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442\u00a0 \u043a\u0430\u043a <strong>http:\/\/\u0432\u0430\u0448-IP:1880<\/strong> \u0434\u043b\u044f \u043f\u0430\u043d\u0435\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 <strong>http:\/\/\u0432\u0430\u0448-IP:1880\/ui<\/strong> \u0434\u043b\u044f Dashboard. \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u0432\u0441\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442, \u0442\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c. \u041d\u043e \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430 \u0431\u043e\u043b\u0435\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c\u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0434\u043b\u044f Dashboard <strong>http:\/\/\u0432\u0430\u0448-IP<\/strong> \u0438 \u0434\u043b\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0441\u043a\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438\u00a0 \u00a0<strong>http:\/\/\u0432\u0430\u0448-IP\/admin<\/strong> &#8211; \u0442\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c.\u00a0<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Nginx<\/p>\n<pre><strong>sudo apt install nginx<\/strong>\r\n<strong>sudo nano \/etc\/nginx\/sites-enabled\/default<\/strong><\/pre>\n<p>\u043c\u0435\u043d\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 \u043f\u043e\u0441\u043b\u0435 <span style=\"background-color: #99ccff;\">location \/\u00a0<\/span><\/p>\n<p>\u043d\u0430 <span style=\"background-color: #99ccff;\">{ proxy_pass http:\/\/127.0.0.1:1880; }<\/span> \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u043f\u044f\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u00a0<\/p>\n<pre>sudo nano \/home\/ubuntu\/.node-red\/settings.js<\/pre>\n<pre>\u0440\u0430\u0441\u0441\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0438 \u043c\u0435\u043d\u044f\u0435\u043c\r\n\r\n<strong>httpAdminRoot: '\/admin',<\/strong>\r\n<strong>ui: { path: \"\/\" },<\/strong>\r\n<strong>uiHost: \"127.0.0.1\",<\/strong><\/pre>\n<p>\u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0442\u043e\u0447\u043a\u0430 \u044d\u0442\u043e\u00a0<\/p>\n<pre><strong>sudo reboot<\/strong><\/pre>\n<p>&nbsp;<\/p>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0438 \u0433\u043e\u0442\u043e\u0432\u0430 \u043a \u0440\u0430\u0431\u043e\u0442\u0435. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<div class=\"rcl-rating-box rating-type-post box-default\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Node-Red \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 Amazon. \u0414\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e?\u00a0 Node-RED \u2013 \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0432\u0435\u0449\u0435\u0439 IoT, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0440\u0443\u0433 \u043a \u0434\u0440\u0443\u0433\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, API \u0438 \u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u0414\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 Flprog \u0434\u0443\u043c\u0430\u044e \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 Modbus, MQTT \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u043e\u0442\u043e\u0432 Telegram Viber \u0438 \u0442.\u0434. \u0412 &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"\u0421\u0432\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a Node-Red \u043d\u0430 AWS (ubuntu)\" class=\"read-more button\" href=\"https:\/\/flprog.ru\/uk\/bez-rubriki\/ustanovka-i-zapusk-node-red-na-aws-ubuntu\/#more-5141\">\u0414\u0430\u043b\u0435\u0435&#8230;<span class=\"screen-reader-text\">\u0421\u0432\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a Node-Red \u043d\u0430 AWS (ubuntu)<\/span><\/a><\/p>\n<div class=\"rcl-rating-box rating-type-post box-default\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"telegram_tosend":false,"telegram_tosend_message":"","telegram_tosend_target":0,"generate_page_header":"","footnotes":""},"categories":[1],"tags":[234,235],"class_list":["post-5141","post","type-post","status-publish","format-standard","hentry","category-bez-rubriki","tag-iot","tag-node-red"],"translation":{"provider":"WPGlobus","version":"3.0.3","language":"uk","enabled_languages":["ru","en","uk"],"languages":{"ru":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false},"uk":{"title":false,"content":false,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/posts\/5141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/comments?post=5141"}],"version-history":[{"count":29,"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/posts\/5141\/revisions"}],"predecessor-version":[{"id":5513,"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/posts\/5141\/revisions\/5513"}],"wp:attachment":[{"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/media?parent=5141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/categories?post=5141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flprog.ru\/uk\/wp-json\/wp\/v2\/tags?post=5141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}