This commit is contained in:
cantoblanco committed 2024-10-09 16:41:38 +00:00
1 parent 307b1394ff
commit 42be774bd6
211 files changed
+341 -341

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.BmdFiWrL.js">
<link rel="modulepreload" href="/assets/chunks/theme.D1TJKLdg.js">
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.eLGrY1b1.lean.js">
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.B0V4MVNQ.lean.js">
<script src="https://cdn.wwads.cn/js/makemoney.js" async></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FDME8GJGTW"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-FDME8GJGTW");</script>
@@ -87,8 +87,8 @@
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> stop</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sleep</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> start</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><ul><li>Run <code>chmod +x /etc/init.d/nezha-service</code> to grant execution permission.</li><li>Start the service: <code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code></li></ul></details><h2 id="does-the-agent-have-a-docker-image" tabindex="-1">Does the Agent Have a Docker Image? <a class="header-anchor" href="#does-the-agent-have-a-docker-image" aria-label="Permalink to &quot;Does the Agent Have a Docker Image?&quot;">​</a></h2><p><strong>The Agent does not currently have a Docker image.</strong><br> The design philosophy of the Agent is opposite to that of the Dashboard. While the Dashboard should minimally impact the server, the Agent needs to execute monitoring services and run commands within the server.<br> Running the Agent inside a container can still perform monitoring tasks, but features like WebShell will not function properly, so no Docker image is provided.</p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-d4a0bba5><!--[--><!--]--><div class="edit-info" data-v-d4a0bba5><div class="edit-link" data-v-d4a0bba5><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/en_US/guide/agent.md" target="_blank" rel="noreferrer" data-v-d4a0bba5><!--[--><span class="vpi-square-pen edit-link-icon" data-v-d4a0bba5></span> Edit this page on GitHub<!--]--></a></div><div class="last-updated" data-v-d4a0bba5><p class="VPLastUpdated" data-v-d4a0bba5 data-v-7e05ebdb>Last Updated: <time datetime="2024-10-06T03:53:28.000Z" data-v-7e05ebdb></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-d4a0bba5><span class="visually-hidden" id="doc-footer-aria-label" data-v-d4a0bba5>Pager</span><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link prev" href="/en_US/guide/dashboard.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Previous page</span><span class="title" data-v-d4a0bba5>Install Dashboard</span><!--]--></a></div><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link next" href="/en_US/guide/servers.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Next page</span><span class="title" data-v-d4a0bba5>Servers</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-5d98c3a5 data-v-e315a0ad><div class="container" data-v-e315a0ad><p class="message" data-v-e315a0ad>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License</p><p class="copyright" data-v-e315a0ad>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"developer_index.md\":\"BxHPGI4D\",\"developer_l10n.md\":\"BXKiVAed\",\"en_us_case_case3.md\":\"i5w3qiCe\",\"en_us_case_case2.md\":\"B5ew0MAj\",\"en_us_guide_agent.md\":\"eLGrY1b1\",\"en_us_case_case6.md\":\"i9Dyurwq\",\"guide_nat.md\":\"D3Wi3iDN\",\"en_us_case_case5.md\":\"DGiMAHZr\",\"case_case2.md\":\"uWaImfP5\",\"case_case1.md\":\"Cy-fj0KG\",\"case_case4.md\":\"D3OIw7rR\",\"en_us_case_index.md\":\"BQhUGfPN\",\"en_us_case_case7.md\":\"COy08vvv\",\"developer_theme.md\":\"CBNDJrhp\",\"guide_q10.md\":\"DmCS0p_V\",\"en_us_developer_index.md\":\"CKNI60FK\",\"en_us_guide_q4.md\":\"DdZdNi_N\",\"en_us_developer_l10n.md\":\"B4KyXnVw\",\"en_us_guide_nat.md\":\"CaHPz97h\",\"guide_q1.md\":\"CvYW_nrh\",\"en_us_guide_q5.md\":\"ChJ6wB6R\",\"en_us_developer_theme.md\":\"BTp8bKqD\",\"en_us_guide_loginq.md\":\"gjVvg0fB\",\"guide_dashboard.md\":\"D5aT48Vj\",\"case_case3.md\":\"jjw6EPXz\",\"en_us_guide_q7.md\":\"APtby8ZA\",\"en_us_guide_q8.md\":\"mEJq9arg\",\"en_us_guide_services.md\":\"UdqHU2eY\",\"en_us_guide_q9.md\":\"ChDyXv2S\",\"en_us_guide_agentq.md\":\"XAZgZFB0\",\"en_us_guide_api.md\":\"nmBhgcw3\",\"case_case7.md\":\"DBKz_Vxe\",\"index.md\":\"B-1w-4-C\",\"en_us_case_case4.md\":\"BitHPJB9\",\"guide_tasks.md\":\"dCoTQlJG\",\"guide_api.md\":\"B4Y59-mI\",\"guide_agentq.md\":\"B3CLMKGD\",\"guide_dashboardq.md\":\"PGgMu2gV\",\"guide_servers.md\":\"CHvbs_bq\",\"guide_loginq.md\":\"BREhEvZa\",\"guide_agent.md\":\"YP61D2Sg\",\"guide_notifications.md\":\"DYN_LdB2\",\"en_us_guide_q3.md\":\"NNjIgGbh\",\"case_case6.md\":\"DdQSHal4\",\"en_us_guide_notifications.md\":\"DzEMZ4fM\",\"en_us_guide_q11.md\":\"C4WENyG_\",\"en_us_guide_q2.md\":\"Bjwldk7H\",\"en_us_case_case1.md\":\"Dh22iL0h\",\"en_us_guide_q10.md\":\"CwW53nPW\",\"en_us_guide_settings.md\":\"B9nzENlN\",\"en_us_guide_servers.md\":\"ttsfzdCS\",\"en_us_guide_tasks.md\":\"Bz5ATSX-\",\"en_us_guide_q6.md\":\"DgNrOFKS\",\"guide_q2.md\":\"DXfolJ9t\",\"case_index.md\":\"DSeyDNXF\",\"guide_q6.md\":\"BeVocVaB\",\"guide_q11.md\":\"BvbW4bA7\",\"guide_q4.md\":\"B7lFBkdh\",\"guide_q9.md\":\"Da6Beenw\",\"en_us_index.md\":\"DRz4-f6e\",\"case_case5.md\":\"CR61PZ8I\",\"en_us_guide_dashboard.md\":\"B7jTJxeS\",\"en_us_guide_dashboardq.md\":\"BqoM5H4p\",\"guide_q5.md\":\"C735mg_Y\",\"guide_q7.md\":\"D9qxsgnw\",\"guide_q3.md\":\"Czq_ENGT\",\"guide_q8.md\":\"D6i_20q2\",\"guide_services.md\":\"b_7Bjs4S\",\"guide_settings.md\":\"B3cshTUZ\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":{\"src\":\"/logo.png\",\"width\":24,\"height\":24,\"alt\":\"NezhaLogo\"},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"},{\"icon\":{\"svg\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 496 512\\\"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d=\\\"M248 8C111 8 0 119 0 256S111 504 248 504 496 393 496 256 385 8 248 8zM363 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3 .7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7A43.8 43.8 0 0 1 363 176.7z\\\"/></svg>\"},\"link\":\"https://t.me/nezhanews\"}],\"search\":{\"provider\":\"algolia\",\"options\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\",\"locales\":{\"root\":{\"placeholder\":\"搜索文档\",\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"searchBox\":{\"resetButtonTitle\":\"清除查询条件\",\"resetButtonAriaLabel\":\"清除查询条件\",\"cancelButtonText\":\"取消\",\"cancelButtonAriaLabel\":\"取消\"},\"startScreen\":{\"recentSearchesTitle\":\"搜索历史\",\"noRecentSearchesText\":\"没有搜索历史\",\"saveRecentSearchButtonTitle\":\"保存至搜索历史\",\"removeRecentSearchButtonTitle\":\"从搜索历史中移除\",\"favoriteSearchesTitle\":\"收藏\",\"removeFavoriteSearchButtonTitle\":\"从收藏中移除\"},\"errorScreen\":{\"titleText\":\"无法获取结果\",\"helpText\":\"你可能需要检查你的网络连接\"},\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"searchByText\":\"搜索提供者\"},\"noResultsScreen\":{\"noResultsText\":\"无法找到相关结果\",\"suggestedQueryText\":\"你可以尝试查询\",\"reportMissingResultsText\":\"你认为该查询应该有结果?\",\"reportMissingResultsLinkText\":\"点击反馈\"}}}}}}},\"footer\":{Line truncated
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><ul><li>Run <code>chmod +x /etc/init.d/nezha-service</code> to grant execution permission.</li><li>Start the service: <code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code></li></ul></details><h2 id="does-the-agent-have-a-docker-image" tabindex="-1">Does the Agent Have a Docker Image? <a class="header-anchor" href="#does-the-agent-have-a-docker-image" aria-label="Permalink to &quot;Does the Agent Have a Docker Image?&quot;">​</a></h2><p><strong>The Agent does not currently have a Docker image.</strong><br> The design philosophy of the Agent is opposite to that of the Dashboard. While the Dashboard should minimally impact the server, the Agent needs to execute monitoring services and run commands within the server.<br> Running the Agent inside a container can still perform monitoring tasks, but features like WebShell will not function properly, so no Docker image is provided.</p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-d4a0bba5><!--[--><!--]--><div class="edit-info" data-v-d4a0bba5><div class="edit-link" data-v-d4a0bba5><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/en_US/guide/agent.md" target="_blank" rel="noreferrer" data-v-d4a0bba5><!--[--><span class="vpi-square-pen edit-link-icon" data-v-d4a0bba5></span> Edit this page on GitHub<!--]--></a></div><div class="last-updated" data-v-d4a0bba5><p class="VPLastUpdated" data-v-d4a0bba5 data-v-7e05ebdb>Last Updated: <time datetime="2024-10-09T16:41:10.000Z" data-v-7e05ebdb></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-d4a0bba5><span class="visually-hidden" id="doc-footer-aria-label" data-v-d4a0bba5>Pager</span><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link prev" href="/en_US/guide/dashboard.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Previous page</span><span class="title" data-v-d4a0bba5>Install Dashboard</span><!--]--></a></div><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link next" href="/en_US/guide/servers.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Next page</span><span class="title" data-v-d4a0bba5>Servers</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-5d98c3a5 data-v-e315a0ad><div class="container" data-v-e315a0ad><p class="message" data-v-e315a0ad>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License</p><p class="copyright" data-v-e315a0ad>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"case_case1.md\":\"lObhpcrq\",\"case_case3.md\":\"DlO1-HWe\",\"en_us_case_index.md\":\"DVHKcxk0\",\"en_us_guide_dashboardq.md\":\"BNu3Ld-y\",\"case_case7.md\":\"D6poBqD0\",\"case_case2.md\":\"BdHxH947\",\"case_case6.md\":\"lIpANs5n\",\"en_us_case_case6.md\":\"D2bkv7oE\",\"en_us_guide_dashboard.md\":\"D1Qh93zT\",\"developer_index.md\":\"D1Zc83um\",\"en_us_guide_agentq.md\":\"DNLdXhIX\",\"en_us_guide_q11.md\":\"C7c-X5_T\",\"en_us_guide_loginq.md\":\"CRJInjxW\",\"guide_q11.md\":\"CPY-lvy2\",\"guide_dashboard.md\":\"DMWWdqdx\",\"en_us_guide_agent.md\":\"B0V4MVNQ\",\"en_us_case_case5.md\":\"CKeTOENY\",\"en_us_case_case3.md\":\"Dd723h43\",\"en_us_case_case2.md\":\"qfT2UmYT\",\"en_us_guide_nat.md\":\"o4vKIZ7i\",\"en_us_case_case4.md\":\"DgijToRC\",\"guide_tasks.md\":\"BKsDGUAB\",\"case_case4.md\":\"DKqXC2tT\",\"en_us_developer_theme.md\":\"BGJg9A9c\",\"en_us_guide_notifications.md\":\"SkEk--hO\",\"en_us_guide_q3.md\":\"CKEdCaKz\",\"developer_l10n.md\":\"BMZ0va84\",\"en_us_guide_q8.md\":\"B6oHs_wI\",\"developer_theme.md\":\"LXd3I0fP\",\"guide_nat.md\":\"DWMKL-u8\",\"guide_q4.md\":\"BKell4VJ\",\"case_index.md\":\"JxuTgbwS\",\"en_us_case_case7.md\":\"BvZgDm2W\",\"en_us_guide_q4.md\":\"ub4VgP_j\",\"en_us_guide_q7.md\":\"DKrudz_a\",\"en_us_case_case1.md\":\"YjcYYda6\",\"en_us_developer_index.md\":\"B10iFWO8\",\"guide_q7.md\":\"DdCVT-5D\",\"index.md\":\"BuipbyfS\",\"en_us_guide_q10.md\":\"2-1eXX6y\",\"guide_q2.md\":\"D-NERJCm\",\"en_us_guide_services.md\":\"BX0rPGUj\",\"guide_agentq.md\":\"DsDreE1U\",\"en_us_guide_settings.md\":\"C0VictGQ\",\"en_us_guide_q6.md\":\"BDkZ8PrO\",\"guide_api.md\":\"ClLoGUsw\",\"guide_agent.md\":\"D-_1NXck\",\"en_us_guide_q5.md\":\"DvJPQVBk\",\"guide_q8.md\":\"CR3mzjcr\",\"guide_q10.md\":\"-xTkhcBL\",\"guide_servers.md\":\"BM2v9lPx\",\"en_us_guide_q2.md\":\"DlIP-rb9\",\"guide_q5.md\":\"BaCjbgaz\",\"guide_loginq.md\":\"BT6ajW9o\",\"guide_q3.md\":\"B9r6nvDU\",\"en_us_guide_q9.md\":\"CMdq2dE2\",\"guide_q9.md\":\"DMQE5zpo\",\"guide_dashboardq.md\":\"Bl-6d3qN\",\"case_case5.md\":\"DJnLZv8G\",\"guide_q6.md\":\"D_xeoXrf\",\"guide_settings.md\":\"BMndL0DK\",\"en_us_index.md\":\"BcXIIHal\",\"en_us_developer_l10n.md\":\"IvKNL-pl\",\"en_us_guide_servers.md\":\"EwdzScr0\",\"guide_services.md\":\"CSARHKpl\",\"guide_q1.md\":\"CEdF3_3u\",\"guide_notifications.md\":\"CUiz2n2Q\",\"en_us_guide_api.md\":\"BdXceq9g\",\"en_us_guide_tasks.md\":\"Bh8c0_OT\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":{\"src\":\"/logo.png\",\"width\":24,\"height\":24,\"alt\":\"NezhaLogo\"},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"},{\"icon\":{\"svg\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 496 512\\\"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d=\\\"M248 8C111 8 0 119 0 256S111 504 248 504 496 393 496 256 385 8 248 8zM363 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3 .7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7A43.8 43.8 0 0 1 363 176.7z\\\"/></svg>\"},\"link\":\"https://t.me/nezhanews\"}],\"search\":{\"provider\":\"algolia\",\"options\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\",\"locales\":{\"root\":{\"placeholder\":\"搜索文档\",\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"searchBox\":{\"resetButtonTitle\":\"清除查询条件\",\"resetButtonAriaLabel\":\"清除查询条件\",\"cancelButtonText\":\"取消\",\"cancelButtonAriaLabel\":\"取消\"},\"startScreen\":{\"recentSearchesTitle\":\"搜索历史\",\"noRecentSearchesText\":\"没有搜索历史\",\"saveRecentSearchButtonTitle\":\"保存至搜索历史\",\"removeRecentSearchButtonTitle\":\"从搜索历史中移除\",\"favoriteSearchesTitle\":\"收藏\",\"removeFavoriteSearchButtonTitle\":\"从收藏中移除\"},\"errorScreen\":{\"titleText\":\"无法获取结果\",\"helpText\":\"你可能需要检查你的网络连接\"},\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"searchByText\":\"搜索提供者\"},\"noResultsScreen\":{\"noResultsText\":\"无法找到相关结果\",\"suggestedQueryText\":\"你可以尝试查询\",\"reportMissingResultsText\":\"你认为该查询应该有结果?\",\"reportMissingResultsLinkText\":\"点击反馈\"}}}}}}},\"footer\":{Line truncated
</body>
</html>