<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>arm | 折腾啥</title><description>Power Users/Automators 折腾/讨论/分享各种开源工具/脚本/自动化工作流👥 @zhetengsha_group📌 合集 https://t.me/zhetengsha/2🎁 恰饭 https://t.me/zhetengsha/957📢 广告投放 @xream @xream_botBuy ads: https://telega.io/c/zhetengshafeedId:55438372655431680+userId:62307599601855488</description><link>http://telegram.zhetengsha.eu.org</link><item><title>#哪吒探针  #agent #nezha-agent #哪吒 #探针 #监控 #IP #VPS #服务器 #编译 #arm #k3 #路由器 #openwrt #go #golangK3 路由器 OPENWRT 哪吒探针 agent 编译 与 使用▎成品 &amp; 使用文件见评论区二进制文件 /etc/nezha/nezha-agent配置文件 /etc/nezha/config.yml 重新配置可用 /etc/nezha/nezha-agent -c(硬盘可能有问题, 需要手动编辑文件设为 []) 或直接编辑此文件服务 /etc/init.d/nezha-agent 记得把此文件中的 通信网址 端口  通信密钥 改成你自己的chmod +x /etc/nezha/nezha-agent #设置可执行权限</title><link>http://telegram.zhetengsha.eu.org/posts/1348</link><guid isPermaLink="true">http://telegram.zhetengsha.eu.org/posts/1348</guid><pubDate>Tue, 23 Apr 2024 03:38:47 GMT</pubDate><content:encoded>&lt;div class=&quot;image-list-container image-list-odd&quot;&gt;
      &lt;button type=&quot;button&quot; class=&quot;image-preview-button image-preview-wrap&quot; popovertarget=&quot;modal-1348-0&quot; popovertargetaction=&quot;show&quot; aria-label=&quot;Open image preview: #哪吒探针  #agent #nezha-agent #哪吒 #探针 #监控 #IP #VPS #服务器 #编译 #arm #k3 #路由器 #openwrt #go #golangK3 路由器 OPENWRT 哪吒探针 agent 编译 与 使用▎成品 &amp;amp; 使用文件见评论区二进制文件 /etc/nezha/nezha-agent配置文件 /etc/nezha/config.yml 重新配置可用 /etc/nezha/nezha-agent -c(硬盘可能有问题, 需要手动编辑文件设为 []) 或直接编辑此文件服务 /etc/init.d/nezha-agent 记得把此文件中的 通信网址 端口  通信密钥 改成你自己的chmod +x /etc/nezha/nezha-agent #设置可执行权限&quot;&gt;
        &lt;img src=&quot;/static/https://cdn5.telesco.pe/file/a3CrlpbBFnf31yCv7r5khtkxL-wvtCZUXH66ltMhSfc7I5H_epcphrRz1VgqXwskJxounlokiLzsZk-euIAMgrRhopYtjdbNDHgwJa1ljO9nt2k693JxEL6lb1QzKWTZxPy0HYT3nXRxHKHwIj3vRFhvyvF35J2yts8nhmwOr9eDbs8EE-AM58OPHyjM7qf6JRNGvjaNoUsxq-Lg1rebdmKgDDPIO-O_f7IiHCZMWdjaSNB_CtLetNNWzB2A0nBCKE1W8tST3dU60lv0i71AORrq0H4tAwi4L66NUgzCOFenxk6gAra629V0bh6u7RcwcrrbTbRWpU0PaZxOFZnn0w.jpg&quot; alt=&quot;#哪吒探针  #agent #nezha-agent #哪吒 #探针 #监控 #IP #VPS #服务器 #编译 #arm #k3 #路由器 #openwrt #go #golangK3 路由器 OPENWRT 哪吒探针 agent 编译 与 使用▎成品 &amp;amp; 使用文件见评论区二进制文件 /etc/nezha/nezha-agent配置文件 /etc/nezha/config.yml 重新配置可用 /etc/nezha/nezha-agent -c(硬盘可能有问题, 需要手动编辑文件设为 []) 或直接编辑此文件服务 /etc/init.d/nezha-agent 记得把此文件中的 通信网址 端口  通信密钥 改成你自己的chmod +x /etc/nezha/nezha-agent #设置可执行权限&quot; width=&quot;713&quot; height=&quot;800&quot; loading=&quot;eager&quot; /&gt;
      &lt;/button&gt;
      &lt;div class=&quot;modal&quot; id=&quot;modal-1348-0&quot; popover=&quot;auto&quot; aria-label=&quot;Image preview&quot;&gt;
        &lt;button type=&quot;button&quot; class=&quot;modal__backdrop&quot; popovertarget=&quot;modal-1348-0&quot; popovertargetaction=&quot;hide&quot; aria-label=&quot;Close image preview&quot;&gt;&lt;/button&gt;
        &lt;button type=&quot;button&quot; class=&quot;modal__close&quot; popovertarget=&quot;modal-1348-0&quot; popovertargetaction=&quot;hide&quot; aria-label=&quot;Close image preview&quot;&gt;×&lt;/button&gt;
        &lt;div class=&quot;modal__surface&quot;&gt;
          
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;&lt;a href=&quot;/search/result?q=%23%E5%93%AA%E5%90%92%E6%8E%A2%E9%92%88&quot; title=&quot;#哪吒探针&quot;&gt;#哪吒探针&lt;/a&gt;  &lt;a href=&quot;/search/result?q=%23agent&quot; title=&quot;#agent&quot;&gt;#agent&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23nezha&quot; title=&quot;#nezha&quot;&gt;#nezha&lt;/a&gt;-agent &lt;a href=&quot;/search/result?q=%23%E5%93%AA%E5%90%92&quot; title=&quot;#哪吒&quot;&gt;#哪吒&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E6%8E%A2%E9%92%88&quot; title=&quot;#探针&quot;&gt;#探针&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E7%9B%91%E6%8E%A7&quot; title=&quot;#监控&quot;&gt;#监控&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23IP&quot; title=&quot;#IP&quot;&gt;#IP&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23VPS&quot; title=&quot;#VPS&quot;&gt;#VPS&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E6%9C%8D%E5%8A%A1%E5%99%A8&quot; title=&quot;#服务器&quot;&gt;#服务器&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E7%BC%96%E8%AF%91&quot; title=&quot;#编译&quot;&gt;#编译&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23arm&quot; title=&quot;#arm&quot;&gt;#arm&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23k3&quot; title=&quot;#k3&quot;&gt;#k3&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E8%B7%AF%E7%94%B1%E5%99%A8&quot; title=&quot;#路由器&quot;&gt;#路由器&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23openwrt&quot; title=&quot;#openwrt&quot;&gt;#openwrt&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23go&quot; title=&quot;#go&quot;&gt;#go&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23golang&quot; title=&quot;#golang&quot;&gt;#golang&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;K3 路由器 OPENWRT 哪吒探针 agent 编译 与 使用&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;▎成品 &amp;amp; 使用&lt;br /&gt;&lt;br /&gt;文件见评论区&lt;br /&gt;&lt;br /&gt;二进制文件 &lt;code&gt;/etc/nezha/nezha-agent&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;配置文件 &lt;code&gt;/etc/nezha/config.yml&lt;/code&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/4963274970445644587.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; 重新配置可用 &lt;code&gt;/etc/nezha/nezha-agent -c&lt;/code&gt;(硬盘可能有问题, 需要手动编辑文件设为 &lt;code&gt;[]&lt;/code&gt;) 或直接编辑此文件&lt;br /&gt;&lt;br /&gt;服务 &lt;code&gt;/etc/init.d/nezha-agent&lt;/code&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/4963274970445644587.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; 记得把此文件中的 &lt;code&gt;通信网址 端口&lt;/code&gt;  &lt;code&gt;通信密钥&lt;/code&gt; 改成你自己的&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;chmod +x /etc/nezha/nezha-agent #设置可执行权限
chmod +x /etc/init.d/nezha-agent #设置可执行权限
/etc/init.d/nezha-agent enable # 启用
/etc/init.d/nezha-agent start # 启动&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;▎编译&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/4961044117187462239.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;https://github.com/nezhahq/agent&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;agent 源码&quot;&gt;agent 源码&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;GOOS=linux GOARCH=&lt;mark class=&quot;highlight&quot;&gt;arm&lt;/mark&gt; GOARM=5 GOMIPS=softfloat CGO_ENABLED=0 go build -trimpath -ldflags &quot;-s -w&quot;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;▎压缩&lt;br /&gt;&lt;br /&gt;觉得太大的话 用 &lt;a href=&quot;https://github.com/upx/upx/releases&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;upx&quot;&gt;upx&lt;/a&gt; 压缩一下试试: &lt;code&gt;upx --best -o compressed uncompressed&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;▎性能&lt;br /&gt;&lt;br /&gt;agent 有参数&lt;br /&gt;&lt;br /&gt;&lt;code&gt;--report-delay&lt;/code&gt;  控制系统信息上报的间隔，默认为 1 秒，可以设置为 3 来进一步降低 agent 端系统资源占用（配置区间 1-4）&lt;br /&gt;&lt;code&gt;--skip-conn&lt;/code&gt; 不监控连接数，推荐 机场/连接密集型 服务器或CPU占用较高的服务器设置&lt;br /&gt;&lt;code&gt;--skip-procs&lt;/code&gt; 不监控进程数，也可以降低 Agent 占用&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/5976801477509778431.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;https://t.me/zhetengsha/40&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;资源合集导航&quot;&gt;资源合集导航&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6321129052874738405.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; 欢迎评论 &amp;amp; 转发&lt;br /&gt;&lt;br /&gt;加入 &lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/5136735372247565035.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt;折腾啥&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/5976771524407856876.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;https://t.me/zhetengsha&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;频道&quot;&gt;频道&lt;/a&gt; | &lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6001526766714227911.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;https://t.me/zhetengsha_group&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;群组&quot;&gt;群组&lt;/a&gt;</content:encoded></item></channel></rss>