This commit is contained in:
Erope committed 2023-10-24 09:36:10 +00:00
1 parent 503c412f44
commit 93a9fb5dbf
168 files changed
+309 -277

No files matched your search

+3 -3
View File
@@ -10,7 +10,7 @@
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.44fd0451.js">
<link rel="modulepreload" href="/assets/chunks/theme.ccb07a11.js">
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.da4ad0d9.lean.js">
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.e47d6f78.lean.js">
<script src="https://cdn.wwads.cn/js/makemoney.js" async="true"></script>
<script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
</head>
@@ -148,8 +148,8 @@
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">stop</span></span>
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">sleep</span><span style="color:#A6ACCD;"> </span><span style="color:#F78C6C;">2</span></span>
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">start</span></span>
<span class="line"><span style="color:#89DDFF;">}</span></span></code></pre></div><ul><li>Give it permission to execute: <code>chmod +x /etc/init.d/nezha-service</code></li><li>Start the service <code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code><br><br></li></ul><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-label="Permalink to &quot;FAQ&quot;">​</a></h2><h3 id="is-there-a-docker-image-for-agent" tabindex="-1">Is there a Docker image for Agent? <a class="header-anchor" href="#is-there-a-docker-image-for-agent" aria-label="Permalink to &quot;Is there a Docker image for Agent?&quot;">​</a></h3><p><strong>There is currently no Docker image for Agent.</strong><br> The Agent is designed to be the opposite of the Dashboard, in that the Dashboard is designed to work without affecting the server as much as possible, while the Agent needs to execute monitoring services and run commands in the server.<br> Putting the Agent in a container does continue to execute monitoring services, but features such as WebShell do not work, so we do not provide Docker image of the Agent.</p></div></div></main><footer class="VPDocFooter" data-v-c4b0d3cf data-v-face870a><!--[--><!--]--><div class="edit-info" data-v-face870a><div class="edit-link" data-v-face870a><a class="VPLink link 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-face870a data-v-8f4dc553><!--[--><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="edit-link-icon" aria-label="edit icon" data-v-face870a><path d="M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"></path><path d="M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"></path></svg> Edit this page on GitHub<!--]--><!----></a></div><div class="last-updated" data-v-face870a><p class="VPLastUpdated" data-v-face870a data-v-7b3ebfe1>Last Updated: <time datetime="2023-10-23T11:32:36.000Z" data-v-7b3ebfe1></time></p></div></div><div class="prev-next" data-v-face870a><div class="pager" data-v-face870a><a class="pager-link prev" href="/en_US/guide/dashboard.html" data-v-face870a><span class="desc" data-v-face870a>Previous page</span><span class="title" data-v-face870a>Install Dashboard</span></a></div><div class="has-prev pager" data-v-face870a><a class="pager-link next" href="/en_US/guide/servers.html" data-v-face870a><span class="desc" data-v-face870a>Next page</span><span class="title" data-v-face870a>Servers</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-b2cf3e0b data-v-f7fc41f4><div class="container" data-v-f7fc41f4><p class="message" data-v-f7fc41f4>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-f7fc41f4>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"en_us_guide_services.md\":\"da41a1ea\",\"case_case1.md\":\"4b5a1926\",\"case_case3.md\":\"02f97da8\",\"case_case4.md\":\"a9ec79e0\",\"case_case5.md\":\"7bab0f53\",\"case_index.md\":\"a645a508\",\"developer_index.md\":\"760b5bf0\",\"developer_l10n.md\":\"90ad54a5\",\"developer_theme.md\":\"e4d849c1\",\"en_us_case_case1.md\":\"6e924da1\",\"en_us_case_case2.md\":\"b634b07f\",\"en_us_case_case4.md\":\"c6d2413f\",\"en_us_case_index.md\":\"1fc52b25\",\"en_us_developer_index.md\":\"ccf3ad42\",\"en_us_developer_l10n.md\":\"f5cd6586\",\"en_us_developer_theme.md\":\"8cc29485\",\"en_us_guide_agent.md\":\"da4ad0d9\",\"en_us_guide_agentq.md\":\"beb7b316\",\"en_us_guide_loginq.md\":\"46d19e75\",\"en_us_guide_notifications.md\":\"f5555464\",\"en_us_guide_q2.md\":\"7192eeaf\",\"en_us_guide_q3.md\":\"132af09c\",\"en_us_guide_q5.md\":\"91982b4d\",\"en_us_guide_q6.md\":\"5206e1fe\",\"en_us_guide_q7.md\":\"72087885\",\"en_us_guide_servers.md\":\"6a00bd8f\",\"guide_servers.md\":\"9182fa37\",\"en_us_guide_tasks.md\":\"a45f474d\",\"guide_agent.md\":\"8672fda8\",\"en_us_guide_api.md\":\"f3742a7a\",\"en_us_guide_dashboardq.md\":\"d790ed1b\",\"guide_dashboardq.md\":\"c9797262\",\"guide_api.md\":\"3b22870c\",\"guide_dashboard.md\":\"3034325b\",\"en_us_guide_q4.md\":\"b5b1d514\",\"guide_notifications.md\":\"0d4466a7\",\"en_us_case_case3.md\":\"8a6bd5e6\",\"guide_q1.md\":\"d871fd39\",\"guide_loginq.md\":\"7ff6865f\",\"guide_q5.md\":\"c832cf5e\",\"guide_q3.md\":\"0d784547\",\"en_us_case_case5.md\":\"a1283598\",\"case_case2.md\":\"dd5d42e4\",\"en_us_guide_dashboard.md\":\"7419d31e\",\"index.md\":\"8d820a55\",\"guide_q4.md\":\"8f8c0857\",\"guide_q2.md\":\"881eea31\",\"guide_q6.md\":\"ef334163\",\"guide_services.md\":\"70bc2828\",\"guide_q7.md\":\"38c4e4d6\",\"guide_agentq.md\":\"bc9d5909\",\"guide_settings.md\":\"c05ca973\",\"en_us_index.md\":\"7df9b476\",\"en_us_guide_settings.md\":\"3ce173dc\",\"guide_tasks.md\":\"4075ea8a\"}")
<span class="line"><span style="color:#89DDFF;">}</span></span></code></pre></div><ul><li>Give it permission to execute: <code>chmod +x /etc/init.d/nezha-service</code></li><li>Start the service <code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code><br><br></li></ul><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-label="Permalink to &quot;FAQ&quot;">​</a></h2><h3 id="is-there-a-docker-image-for-agent" tabindex="-1">Is there a Docker image for Agent? <a class="header-anchor" href="#is-there-a-docker-image-for-agent" aria-label="Permalink to &quot;Is there a Docker image for Agent?&quot;">​</a></h3><p><strong>There is currently no Docker image for Agent.</strong><br> The Agent is designed to be the opposite of the Dashboard, in that the Dashboard is designed to work without affecting the server as much as possible, while the Agent needs to execute monitoring services and run commands in the server.<br> Putting the Agent in a container does continue to execute monitoring services, but features such as WebShell do not work, so we do not provide Docker image of the Agent.</p></div></div></main><footer class="VPDocFooter" data-v-c4b0d3cf data-v-face870a><!--[--><!--]--><div class="edit-info" data-v-face870a><div class="edit-link" data-v-face870a><a class="VPLink link 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-face870a data-v-8f4dc553><!--[--><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="edit-link-icon" aria-label="edit icon" data-v-face870a><path d="M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"></path><path d="M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"></path></svg> Edit this page on GitHub<!--]--><!----></a></div><div class="last-updated" data-v-face870a><p class="VPLastUpdated" data-v-face870a data-v-7b3ebfe1>Last Updated: <time datetime="2023-10-24T09:35:32.000Z" data-v-7b3ebfe1></time></p></div></div><div class="prev-next" data-v-face870a><div class="pager" data-v-face870a><a class="pager-link prev" href="/en_US/guide/dashboard.html" data-v-face870a><span class="desc" data-v-face870a>Previous page</span><span class="title" data-v-face870a>Install Dashboard</span></a></div><div class="has-prev pager" data-v-face870a><a class="pager-link next" href="/en_US/guide/servers.html" data-v-face870a><span class="desc" data-v-face870a>Next page</span><span class="title" data-v-face870a>Servers</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-b2cf3e0b data-v-f7fc41f4><div class="container" data-v-f7fc41f4><p class="message" data-v-f7fc41f4>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-f7fc41f4>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"en_us_guide_dashboard.md\":\"7a1e4139\",\"case_case3.md\":\"99e8feed\",\"case_case4.md\":\"72aab2b6\",\"case_case5.md\":\"430495eb\",\"case_index.md\":\"b1ae273a\",\"developer_index.md\":\"06c20031\",\"developer_l10n.md\":\"4c2e3dd5\",\"developer_theme.md\":\"758b81f1\",\"en_us_case_case1.md\":\"c0b3b2f0\",\"en_us_case_case4.md\":\"767ec1da\",\"en_us_case_case5.md\":\"fd414507\",\"en_us_case_index.md\":\"61f512ca\",\"en_us_developer_index.md\":\"28998e63\",\"en_us_developer_l10n.md\":\"90911577\",\"en_us_developer_theme.md\":\"be00cee3\",\"en_us_guide_agentq.md\":\"28d0715d\",\"en_us_guide_api.md\":\"a95af444\",\"case_case2.md\":\"e237137a\",\"en_us_case_case2.md\":\"cafb279f\",\"en_us_case_case3.md\":\"710b5d8d\",\"en_us_guide_dashboardq.md\":\"e438f15d\",\"en_us_guide_loginq.md\":\"a1668433\",\"en_us_guide_notifications.md\":\"c1837455\",\"en_us_guide_q2.md\":\"c3762197\",\"en_us_guide_q5.md\":\"c4f1fd6a\",\"en_us_guide_q6.md\":\"de59db9d\",\"en_us_guide_q7.md\":\"891715a3\",\"en_us_guide_servers.md\":\"554d01bc\",\"en_us_guide_agent.md\":\"e47d6f78\",\"en_us_guide_services.md\":\"42dcdb47\",\"en_us_guide_q4.md\":\"1a83ae20\",\"en_us_guide_q3.md\":\"dbcee8cf\",\"en_us_guide_tasks.md\":\"c25e0d20\",\"guide_agent.md\":\"a6d0df64\",\"en_us_index.md\":\"55b811af\",\"guide_agentq.md\":\"bc4a0d89\",\"guide_api.md\":\"7df05091\",\"en_us_guide_settings.md\":\"f455d9a3\",\"guide_q6.md\":\"baf65d2e\",\"guide_dashboard.md\":\"587938e4\",\"guide_dashboardq.md\":\"69047119\",\"guide_loginq.md\":\"0fbe09e0\",\"guide_notifications.md\":\"39f571d1\",\"guide_q1.md\":\"d35c1e4f\",\"guide_q2.md\":\"3259a53b\",\"guide_q3.md\":\"e6853938\",\"guide_q4.md\":\"10b3f7c2\",\"guide_q5.md\":\"ca242584\",\"guide_q7.md\":\"ee36618f\",\"index.md\":\"998aa3b8\",\"guide_servers.md\":\"f083dba0\",\"guide_services.md\":\"69e52e61\",\"guide_settings.md\":\"5d779a5f\",\"case_case1.md\":\"87bbde8b\",\"guide_tasks.md\":\"2c1069bd\"}")
__VP_SITE_DATA__ = JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"}],\"algolia\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\"},\"footer\":{\"message\":\"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\",\"copyright\":\"Copyright © 2022-present NezhaHQ\"}},\"locales\":{\"root\":{\"lang\":\"zh-CN\",\"label\":\"简体中文\",\"title\":\"哪吒监控\",\"description\":\"哪吒监控是一个轻量化的运维工具\",\"link\":\"/\",\"themeConfig\":{\"lastUpdatedText\":\"上次更新\",\"editLink\":{\"pattern\":\"https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/:path\",\"text\":\"在GitHub中编辑\"},\"nav\":[{\"text\":\"使用指南\",\"link\":\"/\",\"activeMatch\":\"^/$|^/guide/\"},{\"text\":\"社区项目\",\"link\":\"/case/index.html\",\"activeMatch\":\"^/case/\"},{\"text\":\"开发手册\",\"link\":\"/developer/index.html\",\"activeMatch\":\"^/developer/\"}],\"sidebar\":{\"/\":[{\"text\":\"安装手册\",\"items\":[{\"text\":\"安装 Dashboard\",\"link\":\"/guide/dashboard.html\"},{\"text\":\"安装 Agent\",\"link\":\"/guide/agent.html\"}]},{\"text\":\"管理面板配置\",\"items\":[{\"text\":\"主机\",\"link\":\"/guide/servers.html\"},{\"text\":\"服务\",\"link\":\"/guide/services.html\"},{\"text\":\"定时任务\",\"link\":\"/guide/tasks.html\"},{\"text\":\"报警通知\",\"link\":\"/guide/notifications.html\"},{\"text\":\"设置\",\"link\":\"/guide/settings.html\"},{\"text\":\"API\",\"link\":\"/guide/api.html\"}]},{\"text\":\"常见问题\",\"items\":[{\"text\":\"TG api 被墙\",\"link\":\"/guide/q1.html\"},{\"text\":\"Agent 无法启动/上线 查看日志并进行排错的步骤\",\"link\":\"/guide/q2.html\"},{\"text\":\"反向代理 gRPC 端口的步骤\",\"link\":\"/guide/q3.html\"},{\"text\":\"实时通道断开/在线终端连接失败\",\"link\":\"/guide/q4.html\"},{\"text\":\"进行数据迁移、备份和恢复的步骤\",\"link\":\"/guide/q5.html\"},{\"text\":\"设置每月重置流量统计的步骤\",\"link\":\"/guide/q6.html\"},{\"text\":\"自定义 Agent 监控项目的步骤\",\"link\":\"/guide/q7.html\"}]},{\"text\":\"排障指南\",\"items\":[{\"text\":\"Dashboard 相关\",\"link\":\"/guide/dashboardq.html\"},{\"text\":\"Agent 相关\",\"link\":\"/guide/agentq.html\"},{\"text\":\"登录相关\",\"link\":\"/guide/loginq.html\"}]}],\"/guide/\":[{\"text\":\"安装手册\",\"items\":[{\"text\":\"安装 Dashboard\",\"link\":\"/guide/dashboard.html\"},{\"text\":\"安装 Agent\",\"link\":\"/guide/agent.html\"}]},{\"text\":\"管理面板配置\",\"items\":[{\"text\":\"主机\",\"link\":\"/guide/servers.html\"},{\"text\":\"服务\",\"link\":\"/guide/services.html\"},{\"text\":\"定时任务\",\"link\":\"/guide/tasks.html\"},{\"text\":\"报警通知\",\"link\":\"/guide/notifications.html\"},{\"text\":\"设置\",\"link\":\"/guide/settings.html\"},{\"text\":\"API\",\"link\":\"/guide/api.html\"}]},{\"text\":\"常见问题\",\"items\":[{\"text\":\"TG api 被墙\",\"link\":\"/guide/q1.html\"},{\"text\":\"Agent 无法启动/上线 查看日志并进行排错的步骤\",\"link\":\"/guide/q2.html\"},{\"text\":\"反向代理 gRPC 端口的步骤\",\"link\":\"/guide/q3.html\"},{\"text\":\"实时通道断开/在线终端连接失败\",\"link\":\"/guide/q4.html\"},{\"text\":\"进行数据迁移、备份和恢复的步骤\",\"link\":\"/guide/q5.html\"},{\"text\":\"设置每月重置流量统计的步骤\",\"link\":\"/guide/q6.html\"},{\"text\":\"自定义 Agent 监控项目的步骤\",\"link\":\"/guide/q7.html\"}]},{\"text\":\"排障指南\",\"items\":[{\"text\":\"Dashboard 相关\",\"link\":\"/guide/dashboardq.html\"},{\"text\":\"Agent 相关\",\"link\":\"/guide/agentq.html\"},{\"text\":\"登录相关\",\"link\":\"/guide/loginq.html\"}]}],\"/case/\":[{\"text\":\"社区项目\",\"items\":[{\"text\":\"1. 搭建哪吒 Telegram 机器人\",\"link\":\"/case/case1.html\"},{\"text\":\"2. 使用Siri语音运行快捷指令查询服务器状态\",\"link\":\"/case/case2.html\"},{\"text\":\"3. 自建多用户多语言 Telegram 服务器状态查询机器人\",\"link\":\"/case/case3.html\"},{\"text\":\"4. Fake-agent,监控数据作弊器\",\"link\":\"/case/case4.html\"},{\"text\":\"5. 使用 Argo 隧道的哪吒服务端\",\"link\":\"/case/case5.html\"}]}],\"/developer/\":[{\"text\":\"开发手册\",\"items\":[{\"text\":\"创建新主题\",\"link\":\"/developer/theme.html\"},{\"text\":\"l10n\",\"link\":\"/developer/l10n.html\"}]}]}}},\"en_US\":{\"lang\":\"en-US\",\"label\":\"English\",\"title\":\"Nezha Monitoring\",\"description\":\"Nezha Monitoring is a lightweight OLine truncated
</body>