| | |
| | | <li class="toctree-l1 current"><a class="reference internal current" >Node-red相关</a> |
| | | <ul class="current"> |
| | | <li class="toctree-l2 current"><a class="reference internal current" href="#">安装node-red记录</a> |
| | | <ul class="current"> |
| | | </ul> |
| | | </li> |
| | | <li class="toctree-l2"><a class="reference internal" href="../%E5%A6%82%E4%BD%95%E6%8A%8Anode-red%E5%AE%89%E8%A3%85%E5%88%B0orangepiZero3/">如何把node-red安装到orangepiZero</a> |
| | | </li> |
| | |
| | | <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| | | <div class="section" itemprop="articleBody"> |
| | | |
| | | <p>unning Node-RED install for user orangepi at /home/orangepi on ubuntu</p> |
| | | <p>[sudo] password for orangepi: </p> |
| | | <p>This can take 20-30 minutes on the slower Pi versions - please wait.</p> |
| | | <p>Stop Node-RED ✔ |
| | | <div class="codehilite"><pre><span></span><code>unning Node-RED install for user orangepi at /home/orangepi on ubuntu |
| | | |
| | | [sudo] password for orangepi: |
| | | |
| | | This can take 20-30 minutes on the slower Pi versions - please wait. |
| | | |
| | | Stop Node-RED ✔ |
| | | Remove old version of Node-RED ✔ |
| | | Remove old version of Node.js ✔ <br /> |
| | | Remove old version of Node.js ✔ |
| | | Install Node 20.19.3-1nodesource1 ✔ v20.19.3 Npm 10.8.2 |
| | | Clean npm cache ✔ |
| | | Install Node-RED core ✔ 4.0.9 |
| | |
| | | Npm rebuild existing nodes ✔ |
| | | Install extra Pi nodes ✔ |
| | | Add shortcut commands ✘ |
| | | Update systemd script ✔</p> |
| | | <p>Any errors will be logged to /var/log/nodered-install.log |
| | | Update systemd script ✔ |
| | | </code></pre></div> |
| | | |
| | | <div class="codehilite"><pre><span></span><code>Any errors will be logged to /var/log/nodered-install.log |
| | | All done. |
| | | You can now start Node-RED with the command node-red-start |
| | | or using the icon under Menu / Programming / Node-RED |
| | | Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880</p> |
| | | <p>Started : Wed Jul 9 12:28:33 PM CST 2025 |
| | | Finished: Wed Jul 9 12:37:17 PM CST 2025</p> |
| | | Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880 |
| | | |
| | | Started : Wed Jul 9 12:28:33 PM CST 2025 |
| | | Finished: Wed Jul 9 12:37:17 PM CST 2025 |
| | | </code></pre></div> |
| | | |
| | | <hr /> |
| | | <p>### WARNING ### |
| | | DO NOT EXPOSE NODE-RED TO THE OPEN INTERNET WITHOUT SECURING IT FIRST</p> |
| | | <p>### WARNING</p> |
| | | <p>DO NOT EXPOSE NODE-RED TO THE OPEN INTERNET WITHOUT SECURING IT FIRST</p> |
| | | <p>Even if your Node-RED doesn't have anything valuable, (automated) attacks will |
| | | happen and could provide a foothold in your local network</p> |
| | | <p>Follow the guide at https://nodered.org/docs/user-guide/runtime/securing-node-red |
| | | to setup security.</p> |
| | | <p>### ADDITIONAL RECOMMENDATIONS ### |
| | | - You can customise the initial settings by running:</p> |
| | | <div class="codehilite"><pre><span></span><code> node-red admin init |
| | | </code></pre></div> |
| | | |
| | | <p>### ADDITIONAL RECOMMENDATIONS </p> |
| | | <ul> |
| | | <li> |
| | | <p>You can customise the initial settings by running:</p> |
| | | <p>node-red admin init</p> |
| | | </li> |
| | | </ul> |
| | | <hr /> |
| | | <h1 id="node-red-settings-file-initialisation">Node-RED Settings File initialisation<a class="headerlink" href="#node-red-settings-file-initialisation" title="Permanent link">¶</a></h1> |
| | | <p>This tool will help you create a Node-RED settings file.</p> |
| | | <p>✖ Settings file · /home/orangepi/.node-red/settings.js</p> |
| | | <p>orangepi@orangepizero3:~$ ^C |
| | | orangepi@orangepizero3:~$ </p> |
| | | <div class="codehilite"><pre><span></span><code>Node-RED Settings File initialisation |
| | | ===================================== |
| | | This tool will help you create a Node-RED settings file. |
| | | |
| | | ✖ Settings file · /home/orangepi/.node-red/settings.js |
| | | |
| | | orangepi@orangepizero3:~$ ^C |
| | | orangepi@orangepizero3:~$ |
| | | </code></pre></div> |
| | | |
| | | </div> |
| | | </div><footer> |