<h1><a name="p-2184072-h-1" class="anchor" href="#p-2184072-h-1"></a>介绍:</h1><br><p>n8n,一个低代码工作流平台,可玩性和拓展性远高于dify和fastgpt,无论小白还是程序员使用都很不错。但是论坛好像无相关教程帖或者案例贴,心血来潮做个系列教程。</p><br><h1><a name="p-2184072-h-2" class="anchor" href="#p-2184072-h-2"></a>本次工具:</h1><br><p><a href="https://dashboard.render.com/" rel="noopener nofollow ugc">Render</a><br><br><a href="https://supabase.com/" rel="noopener nofollow ugc">Supabase</a><br><br><a href="https://dashboard.uptimerobot.com/monitors?ref=website-header#mainDashboard" rel="noopener nofollow ugc">Monitors | UptimeRobot</a></p><br><h1><a name="p-2184072-rendern8n-3" class="anchor" href="#p-2184072-rendern8n-3"></a>Render部署n8n</h1><br><p>首先是注册个render账号,注册时需使用纯净节点,无痕模式注册,这样应该不会银行卡验证,接着新建一个<br><br><img src="https://linux.do/uploads/default/original/3X/f/e/fe2149253deb065daf32a7449d2651197b1f7053.png" alt="QQ_1729690493457" data-base62-sha1="Ag8AGZDZDLifxT93ZFTeD6QXu1R" width="445" height="426"></p><br><p>然后如图输入“<a href="http://docker.n8n.io/n8nio/n8n%E2%80%9D" rel="noopener nofollow ugc">docker.n8n.io/n8nio/n8n”</a><br><br><div class="lightbox-wrapper"><a class="lightbox" href="https://linux.do/uploads/default/original/3X/0/e/0ef0236b5d2fd21d4f0df02b27bc8ce27469b85e.png" data-download-href="https://linux.do/uploads/default/0ef0236b5d2fd21d4f0df02b27bc8ce27469b85e" title="QQ_1729690610270"><img src="https://linux.do/uploads/default/optimized/3X/0/e/0ef0236b5d2fd21d4f0df02b27bc8ce27469b85e_2_690x249.png" alt="QQ_1729690610270" data-base62-sha1="289b4HHP32mWUxritKl6V89fJym" width="690" height="249" srcset="https://linux.do/uploads/default/optimized/3X/0/e/0ef0236b5d2fd21d4f0df02b27bc8ce27469b85e_2_690x249.png, https://linux.do/uploads/default/optimized/3X/0/e/0ef0236b5d2fd21d4f0df02b27bc8ce27469b85e_2_1035x373.png 1.5x, https://linux.do/uploads/default/original/3X/0/e/0ef0236b5d2fd21d4f0df02b27bc8ce27469b85e.png 2x" data-dominant-color="F0F5F9"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">QQ_1729690610270</span><span class="informations">1241×449 19.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p><br><p>地区选择新加坡,服务选免费:<br><br><div class="lightbox-wrapper"><a class="lightbox" href="https://linux.do/uploads/default/original/3X/3/0/30f81f34171d52f83f3c872ce861952053b9d8ea.png" data-download-href="https://linux.do/uploads/default/30f81f34171d52f83f3c872ce861952053b9d8ea" title="QQ_1729690648923"><img src="https://linux.do/uploads/default/optimized/3X/3/0/30f81f34171d52f83f3c872ce861952053b9d8ea_2_690x257.png" alt="QQ_1729690648923" data-base62-sha1="6Zcw4po3y3a6srhAb0Qh9kUHgWS" width="690" height="257" srcset="https://linux.do/uploads/default/optimized/3X/3/0/30f81f34171d52f83f3c872ce861952053b9d8ea_2_690x257.png, https://linux.do/uploads/default/optimized/3X/3/0/30f81f34171d52f83f3c872ce861952053b9d8ea_2_1035x385.png 1.5x, https://linux.do/uploads/default/optimized/3X/3/0/30f81f34171d52f83f3c872ce861952053b9d8ea_2_1380x514.png 2x" data-dominant-color="F5F7FB"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">QQ_1729690648923</span><span class="informations">1879×701 74.7 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p><br><h1><a name="p-2184072-h-4" class="anchor" href="#p-2184072-h-4"></a>配置数据库</h1><br><p>在<a href="https://supabase.com/" rel="noopener nofollow ugc">Supabase</a>注册账号并创建数据库,地区同样选择新加坡,接着等待数据库启动,之后点击“connect”,出现如下内容<br><br><div class="lightbox-wrapper"><a class="lightbox" href="https://linux.do/uploads/default/original/3X/c/1/c11fc512683ed9d5941966a95ce12b94c9213fa8.png" data-download-href="https://linux.do/uploads/default/c11fc512683ed9d5941966a95ce12b94c9213fa8" title="image"><img src="https://linux.do/uploads/default/optimized/3X/c/1/c11fc512683ed9d5941966a95ce12b94c9213fa8_2_690x292.png" alt="image" data-base62-sha1="rysdxafgaJ4o0sH7TOh3yaEanuo" width="690" height="292" srcset="https://linux.do/uploads/default/optimized/3X/c/1/c11fc512683ed9d5941966a95ce12b94c9213fa8_2_690x292.png, https://linux.do/uploads/default/optimized/3X/c/1/c11fc512683ed9d5941966a95ce12b94c9213fa8_2_1035x438.png 1.5x, https://linux.do/uploads/default/original/3X/c/1/c11fc512683ed9d5941966a95ce12b94c9213fa8.png 2x" data-dominant-color="222222"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1035×438 33.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p><br><h3><a name="p-2184072-h-5" class="anchor" href="#p-2184072-h-5"></a>得到例如:</h3><br><pre><code class="lang-auto">postgresql://postgres.mpxiqrcjwtjqusjktffu:【创建数据库时得到的密码】@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres<br></code></pre><br><h3><a name="p-2184072-h-6" class="anchor" href="#p-2184072-h-6"></a>则应配置环境变量如下</h3><br><ul><br><li><strong>DB_POSTGRESDB_DATABASE</strong>: <code>postgres</code></li><br><li><strong>DB_POSTGRESDB_HOST</strong>: <code>aws-0-ap-southeast-1.pooler.supabase.com</code></li><br><li><strong>DB_POSTGRESDB_PASSWORD</strong>: 【创建数据库时得到的密码】</li><br><li><strong>DB_POSTGRESDB_PORT</strong>: <code>6543</code></li><br><li><strong>DB_POSTGRESDB_SCHEMA</strong>:  <code>public</code></li><br><li><strong>DB_POSTGRESDB_USER</strong>: <code>postgres.mpxiqrcjwtjqusjktffu</code></li><br><li><strong>DB_TYPE</strong>: <code>postgresdb</code></li><br><li><strong>WEBHOOK_URL</strong>: <code>部署n8n的网址</code></li><br><li><strong>GENERIC_TIMEZONE</strong>: <code>Asia/Shanghai</code></li><br><li><strong>N8N_ENCRYPTION_KEY</strong>: <code>自己记得住的任意密码</code><br><br><div class="lightbox-wrapper"><a class="lightbox" href="https://linux.do/uploads/default/original/3X/8/d/8ddfaeee22ea2c4b1807cb7c236f7016a9b0d038.png" data-download-href="https://linux.do/uploads/default/8ddfaeee22ea2c4b1807cb7c236f7016a9b0d038" title="QQ_1729746273916"><img src="https://linux.do/uploads/default/optimized/3X/8/d/8ddfaeee22ea2c4b1807cb7c236f7016a9b0d038_2_690x397.png" alt="QQ_1729746273916" data-base62-sha1="kf4ySMyuTqpgNm6vrL53x4KXpmU" width="690" height="397" srcset="https://linux.do/uploads/default/optimized/3X/8/d/8ddfaeee22ea2c4b1807cb7c236f7016a9b0d038_2_690x397.png, https://linux.do/uploads/default/optimized/3X/8/d/8ddfaeee22ea2c4b1807cb7c236f7016a9b0d038_2_1035x595.png 1.5x, https://linux.do/uploads/default/optimized/3X/8/d/8ddfaeee22ea2c4b1807cb7c236f7016a9b0d038_2_1380x794.png 2x" data-dominant-color="FBFBFB"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">QQ_1729746273916</span><span class="informations">1470×847 40.8 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></li><br></ul><br><h1><a name="p-2184072-h-7" class="anchor" href="#p-2184072-h-7"></a>保活方法</h1><br><p>使用<a href="https://dashboard.uptimerobot.com/monitors?ref=website-header#mainDashboard" rel="noopener nofollow ugc">Monitors | UptimeRobot</a>监控相应的render链接,从而实现不停歇运行。</p><br><p>当然也可在本地或者云服务器上部署,n8n有部分功能可能需要国外环境,最好国外服务器</p><br><h1><a name="p-2184072-h-8" class="anchor" href="#p-2184072-h-8"></a>系列教程预告</h1><br><p>2.AI绘画工作流教程  体验:<a href="https://oi.yuychat.cn/form/flux" rel="noopener nofollow ugc">在线体验</a></p><aside class="quote quote-modified" data-post="1" data-topic="240907"><br>  <div class="title"><br>    <div class="quote-controls"></div><br>    <img loading="lazy" alt="" width="24" height="24" src="https://linux.do/user_avatar/linux.do/yuyu0.0/48/206641_2.png" class="avatar"><br>    <a href="https://linux.do/t/topic/240907">【n8n系列教程2】AI绘画工作流教程,可在线体验,保姆级教程</a> <a class="badge-category__wrapper " href="/c/resource/14"><span data-category-id="14" style="--category-badge-color: #12A89D; --category-badge-text-color: #FFFFFF;" data-drop-close="true" class="badge-category " title="包括软件分享、开源仓库、视频课程、书籍等分享"><span class="badge-category__name">资源荟萃</span></span></a><br>  </div><br>  <blockquote><br>    请先看完免费部署教程: <br><br>也可以使用官网的,但官网的仅14天试用,可以用临时邮箱薅 <br><a name="p-2192912-h-1" class="anchor" href="#p-2192912-h-1"></a>工作流展示<br> <a class="lightbox" href="https://linux.do/uploads/default/original/3X/a/9/a9e7933205abdacf8c506d539838db0253edf30c.png" data-download-href="https://linux.do/uploads/default/a9e7933205abdacf8c506d539838db0253edf30c" title="QQ_1729755711628">[QQ_1729755711628]</a> <br><a name="p-2192912-h-2" class="anchor" href="#p-2192912-h-2"></a>效果展示<br>在线体验:<a href="https://oi.yuychat.cn/form/flux" class="inline-onebox" rel="noopener nofollow ugc">Flux绘画生成</a> <br> <a class="lightbox" href="https://linux.do/uploads/default/original/3X/b/a/ba3245de14f4dd6594d5bb47d8e3f12976d34637.png" data-download-href="https://linux.do/uploads/default/ba3245de14f4dd6594d5bb47d8e3f12976d34637" title="QQ_1729773916731">[QQ_1729773916731]</a> <br><a class="lightbox" href="https://linux.do/uploads/default/original/3X/5/b/5b76297c792c466f9b6a02bb2229eca2dc824a03.jpeg" data-download-href="https://linux.do/uploads/default/5b76297c792c466f9b6a02bb2229eca2dc824a03" title="image">[image]</a> <br><a name="p-2192912-h-3" class="anchor" href="#p-2192912-h-3"></a>快速使用<br><a name="p-2192912-h-4" class="anchor" href="#p-2192912-h-4"></a>按照如图顺序点击:<br> <a class="lightbox" href="https://linux.do/uploads/default/original/3X/4/0/408ae42e02d4788c06b5184bed7ecfc4911cff8d.png" data-download-href="https://linux.do/uploads/default/408ae42e02d4788c06b5184bed7ecfc4911cff8d" title="QQ_1729755267580">[QQ_1729755267580]</a> <br><a name="p-2192912-jsonctrlv-5" class="anchor" href="#p-2192912-jsonctrlv-5"></a>接着复制我的JSON代码,ctrl+v粘贴<br>{<br>  "name": "Flux",<br> …<br>  </blockquote><br></aside><br><p><br>3.AI绘画工作流接入NEW API<br><br>4.轮询Gemini pro模型工作流教程,实现Gemini pro模型免费高并发<br><br><div class="lightbox-wrapper"><a class="lightbox" href="https://linux.do/uploads/default/original/3X/5/2/528f21da3b9b2197088c776cc712220b5592fc50.jpeg" data-download-href="https://linux.do/uploads/default/528f21da3b9b2197088c776cc712220b5592fc50" title="QQ_1729692320503"><img src="https://linux.do/uploads/default/optimized/3X/5/2/528f21da3b9b2197088c776cc712220b5592fc50_2_490x500.jpeg" alt="QQ_1729692320503" data-base62-sha1="bMlOlfeXy494LVRRn7qA0iFCyYw" width="490" height="500" srcset="https://linux.do/uploads/default/optimized/3X/5/2/528f21da3b9b2197088c776cc712220b5592fc50_2_490x500.jpeg, https://linux.do/uploads/default/optimized/3X/5/2/528f21da3b9b2197088c776cc712220b5592fc50_2_735x750.jpeg 1.5x, https://linux.do/uploads/default/original/3X/5/2/528f21da3b9b2197088c776cc712220b5592fc50.jpeg 2x" data-dominant-color="827D68"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">QQ_1729692320503</span><span class="informations">938×956 95.2 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p><br><p>近期发现需要增添 <code>N8N_ENCRYPTION_KEY</code> 环境变量为任意字符串,不然render重启会导致凭据无法使用,提示ENCRYPTION_KEY不正确。</p>
举报· 246 次点击
登录 注册 站外分享
19 条回复  
xcafe 初学 2024-10-23 14:05:43
<p>终于等到你,。</p>
iwj 初学 2024-10-23 14:05:43
<p>沙发沙发沙发,终于来了</p>
WyInnovate 初学 2024-10-23 14:05:43
<p>来了来了佬!牛批!</p>
ayai 初学 2024-10-23 14:05:43
<p>期待系列教程</p>
Muzych 初学 2024-10-23 14:05:43
<p>我也喜欢 n8n ,顺便分享个follow邀请码:ZGcpQNFcvL</p>
CoolMan 初学 2024-10-23 14:05:43
<p>mark 感谢分享</p>
Wireless 初学 2024-10-23 14:05:43
<p>期待更多教程,不会用n8n <img src="https://linux.do/images/emoji/apple/smiling_face_with_three_hearts.png?v=12" title=":smiling_face_with_three_hearts:" class="emoji" alt=":smiling_face_with_three_hearts:" loading="lazy" width="20" height="20"></p>
whshang 初学 2024-10-23 14:05:43
<aside class="quote no-group" data-username="yuyu0.0" data-post="1" data-topic="240195"><br><div class="title"><br><div class="quote-controls"></div><br><img loading="lazy" alt="" width="24" height="24" src="https://linux.do/user_avatar/linux.do/yuyu0.0/48/206641_2.png" class="avatar"> SiliconFlow:</div><br><blockquote><br><p><strong>DB_TYPE</strong>: <code>postgresql</code></p><br></blockquote><br></aside><br><p>这里的 DB_TYPE 应该是 postgresdb</p><br><p>而且如果希望正常使用,还应该在设置里增加docker的启动命令配置 WEBHOOK_URL 和 GENERIC_TIMEZONE</p>
huangbaoleng 初学 2024-10-23 14:05:43
<p>大概看了一下,插件很多,工作流可玩性极高,自由度很大,上限比其他类型高不少,但对于我这种小白上手难度很大<img src="https://linux.do/uploads/default/original/3X/2/e/2e09f3a3c7b27eacbabe9e9614b06b88d5b06343.png?v=12" alt="tieba_087" width="30" height="30"></p>
12下一页
返回顶部