{"id":17425,"date":"2024-09-29T20:45:32","date_gmt":"2024-09-29T12:45:32","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=17425"},"modified":"2025-02-11T18:33:35","modified_gmt":"2025-02-11T10:33:35","slug":"%e5%9c%a8%e6%a0%91%e8%8e%93%e6%b4%be%e4%b8%8a%e9%83%a8%e7%bd%b2%e5%bc%80%e6%ba%90%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f-zoneminder","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=17425","title":{"rendered":"\u5728\u6811\u8393\u6d3e\u4e0a\u90e8\u7f72\u5f00\u6e90\u76d1\u63a7\u7cfb\u7edf ZoneMinder"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E5%89%8D%E8%A8%80\" >\u524d\u8a00<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E7%8E%AF%E5%A2%83\" >\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E9%83%A8%E7%BD%B2\" >\u90e8\u7f72<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E9%85%8D%E7%BD%AE%E6%95%B0%E6%8D%AE%E5%BA%93\" >\u914d\u7f6e\u6570\u636e\u5e93<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E9%85%8D%E7%BD%AE_ZoneMinder\" >\u914d\u7f6e ZoneMinder<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E4%BD%BF%E7%94%A8\" >\u4f7f\u7528<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E9%A6%96%E6%AC%A1%E4%BD%BF%E7%94%A8\" >\u9996\u6b21\u4f7f\u7528<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E4%BF%AE%E6%94%B9%E5%9C%B0%E5%8C%BA%E5%92%8C%E6%97%B6%E5%8C%BA\" >\u4fee\u6539\u5730\u533a\u548c\u65f6\u533a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E6%B7%BB%E5%8A%A0_USB_%E6%91%84%E5%83%8F%E5%A4%B4\" >\u6dfb\u52a0 USB \u6444\u50cf\u5934<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E6%9F%A5%E7%9C%8B%E6%91%84%E5%83%8F%E5%A4%B4%E6%94%AF%E6%8C%81%E7%9A%84%E8%BE%93%E5%87%BA%E6%A0%BC%E5%BC%8F\" >\u67e5\u770b\u6444\u50cf\u5934\u652f\u6301\u7684\u8f93\u51fa\u683c\u5f0f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E8%AE%BE%E7%BD%AE%E6%91%84%E5%83%8F%E5%A4%B4%E8%BE%93%E5%87%BA%E6%A0%BC%E5%BC%8F%EF%BC%88%E5%8F%AA%E9%9C%80%E8%A6%81%E4%BA%86%E8%A7%A3%EF%BC%89\" >\u8bbe\u7f6e\u6444\u50cf\u5934\u8f93\u51fa\u683c\u5f0f\uff08\u53ea\u9700\u8981\u4e86\u89e3\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E6%B7%BB%E5%8A%A0%E6%91%84%E5%83%8F%E5%A4%B4\" >\u6dfb\u52a0\u6444\u50cf\u5934<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F%E5%AE%9E%E7%8E%B0%E5%85%AC%E7%BD%91%E8%AE%BF%E9%97%AE\" >\u5185\u7f51\u7a7f\u900f\u5b9e\u73b0\u516c\u7f51\u8bbf\u95ee<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E5%90%AF%E7%94%A8%E7%99%BB%E5%BD%95%E9%AA%8C%E8%AF%81\" >\u542f\u7528\u767b\u5f55\u9a8c\u8bc1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E5%AE%A2%E6%88%B7%E7%AB%AF%E7%A8%8B%E5%BA%8F%EF%BC%88%E6%A1%8C%E9%9D%A2%E7%A8%8B%E5%BA%8F%E3%80%81%E6%89%8B%E6%9C%BAAPP\" >\u5ba2\u6237\u7aef\u7a0b\u5e8f\uff08\u684c\u9762\u7a0b\u5e8f\u3001\u624b\u673aAPP)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E9%85%8D%E7%BD%AE_API_%E8%AE%BF%E9%97%AE\" >\u914d\u7f6e API \u8bbf\u95ee<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E2%80%9CLogin_Auth_Sucess_but_api_failed%E2%80%9D%E2%80%9C%E7%99%BB%E5%BD%95%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E6%88%90%E5%8A%9F%EF%BC%8C%E4%BD%86_API_%E5%A4%B1%E8%B4%A5%E2%80%9D%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3\" >\u201cLogin Auth Sucess but api failed\u201d\/\u201c\u767b\u5f55\u8eab\u4efd\u9a8c\u8bc1\u6210\u529f\uff0c\u4f46 API \u5931\u8d25\u201d\u95ee\u9898\u89e3\u51b3<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E5%BD%95%E5%83%8F%E5%AD%98%E5%82%A8\" >\u5f55\u50cf\u5b58\u50a8<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E8%B7%AF%E5%BE%84\" >\u8def\u5f84<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E6%A0%BC%E5%BC%8F\" >\u683c\u5f0f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E8%87%AA%E5%8A%A8%E5%88%A0%E9%99%A4%E6%9C%80%E6%97%A9%E5%BD%95%E5%83%8F%EF%BC%88%E5%8F%AF%E4%BB%A5%E7%BB%B4%E6%8C%81%E9%BB%98%E8%AE%A4%E8%AE%BE%E7%BD%AE%EF%BC%89\" >\u81ea\u52a8\u5220\u9664\u6700\u65e9\u5f55\u50cf\uff08\u53ef\u4ee5\u7ef4\u6301\u9ed8\u8ba4\u8bbe\u7f6e\uff09<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/blog.iyatt.com\/?p=17425\/#%E8%B6%85%E9%A2%91\" >\u8d85\u9891<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E5%89%8D%E8%A8%80\"><\/span>\u524d\u8a00<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u81ea\u5df1\u642d\u5efa\uff0c\u53ef\u4ee5\u7528\u624b\u91cc\u5df2\u6709\u7684\u8bbe\u5907\uff0c\u4e0d\u9700\u8981\u989d\u5916\u4e70\u3002\u8fd9\u5957\u7cfb\u7edf\u7684\u6e90\u7801\u662f\u516c\u5f00\u7684\uff0c\u5f55\u50cf\u6570\u636e\u4e5f\u638c\u63e1\u5728\u81ea\u5df1\u624b\u91cc\uff0c\u4e0d\u7ecf\u8fc7\u4e0d\u53ef\u63a7\u7684\u4e09\u65b9\u3002<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727615539953.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1193px; --smush-placeholder-aspect-ratio: 1193\/752;\" \/><\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727615186841.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 512px; --smush-placeholder-aspect-ratio: 512\/755;\" \/><\/p>\n<p>\u652f\u6301\u8bbe\u7f6e\u8bbf\u95ee\u8d26\u53f7<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727668882931.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 535px; --smush-placeholder-aspect-ratio: 535\/365;\" \/><\/p>\n<p>\u53ef\u4ee5\u4fdd\u5b58\u5f55\u50cf\uff0c\u542f\u7528\u8fd0\u52a8\u4fa6\u6d4b<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727668763948.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 386px; --smush-placeholder-aspect-ratio: 386\/234;\" \/><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727668981332.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 939px; --smush-placeholder-aspect-ratio: 939\/321;\" \/><\/p>\n<p>\u6709\u914d\u5957 APP \u4f7f\u7528<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727701218160.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 510px; --smush-placeholder-aspect-ratio: 510\/323;\" \/><\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E7%8E%AF%E5%A2%83\"><\/span>\u73af\u5883<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ul>\n<li>\u6811\u8393\u6d3eCM4<\/li>\n<li>raspios 20240704 Debian 12 arm64<\/li>\n<li>ZoneMinder 1.36.33<\/li>\n<\/ul>\n<h1><span class=\"ez-toc-section\" id=\"%E9%83%A8%E7%BD%B2\"><\/span>\u90e8\u7f72<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/zoneminder.readthedocs.io\/en\/stable\/installationguide\/debian.html#debian-12-bookworm\">https:\/\/zoneminder.readthedocs.io\/en\/stable\/installationguide\/debian.html#debian-12-bookworm<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE%E6%95%B0%E6%8D%AE%E5%BA%93\"><\/span>\u914d\u7f6e\u6570\u636e\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5b89\u88c5 Mariadb \u6570\u636e\u5e93\uff08MySQL \u5f00\u6e90\u66ff\u4ee3\u54c1\uff09<\/p>\n<pre><code class=\"language-bash\">sudo apt update\nsudo apt install -y mariadb-server<\/code><\/pre>\n<p>\u521b\u5efa\u6570\u636e\u5e93<\/p>\n<pre><code class=\"language-bash\">sudo mariadb # \u8fde\u63a5\u6570\u636e\u5e93\u8fdb\u5165\u4ea4\u4e92\u7ec8\u7aef\nCREATE DATABASE zm; # \u521b\u5efa\u6570\u636e\u5e93 zm\uff0c\u8fd9\u4e2a\u4e0d\u5efa\u8bae\u81ea\u5b9a\u4e49\u540d\u5b57\nCREATE USER zm_user@localhost IDENTIFIED BY &#039;zm123456&#039;; # \u521b\u5efa\u7528\u6237 zm_user\uff0c\u5e76\u8bbe\u7f6e\u767b\u5f55\u5bc6\u7801\u4e3a zm123456\nGRANT ALL PRIVILEGES ON zm.* TO zm_user@localhost; # \u5c06 zm \u6240\u6709\u6743\u9650\u6388\u4e88 zm_user \u7528\u6237\nFLUSH PRIVILEGES; # \u5237\u65b0\nexit; # \u9000\u51fa\u6570\u636e\u5e93\u4ea4\u4e92<\/code><\/pre>\n<p>\u5bfc\u5165\u6570\u636e\u5e93\u7ed3\u6784<\/p>\n<pre><code class=\"language-bash\"># zm_user \u548c zm \u5bf9\u5e94\u524d\u4e00\u6b65\u521b\u5efa\u7684\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\uff0c\u6267\u884c\u540e\u8981\u8f93\u5165\u4e0a\u9762\u8bbe\u7f6e\u7684\u547d\u4ee4\u786e\u8ba4\nmariadb -u zm_user -p zm &lt; \/usr\/share\/zoneminder\/db\/zm_create.sql<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE_ZoneMinder\"><\/span>\u914d\u7f6e ZoneMinder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5b89\u88c5\u8f6f\u4ef6<\/p>\n<pre><code class=\"language-bash\">sudo apt install -y zoneminder apache2<\/code><\/pre>\n<p>\u66f4\u65b0 ZoneMinder \u5230\u6700\u65b0\u7248<\/p>\n<pre><code class=\"language-bash\">sudo echo &#039;deb http:\/\/deb.debian.org\/debian bookworm-backports main contrib&#039; &gt;&gt; \/etc\/apt\/sources.list\nsudo apt update\nsudo apt -t bookworm-backports install zoneminder<\/code><\/pre>\n<p>\u4fee\u6539\u6587\u4ef6\u6743\u9650<\/p>\n<pre><code class=\"language-bash\">sudo chgrp -c www-data \/etc\/zm\/zm.conf\nsudo chown -R www-data:www-data \/usr\/share\/zoneminder\/www\nsudo find \/usr\/share\/zoneminder\/www -type d -exec chmod 755 {} \\;\nsudo find \/usr\/share\/zoneminder\/www -type f -exec chmod 644 {} \\;<\/code><\/pre>\n<p>\u4ee5 root \u8eab\u4efd\u7f16\u8f91 \/etc\/zm\/zm.conf\uff0c\u627e\u5230ZM_DB_NAME\u3001ZM_DB_USER\u3001ZM_DB_PASS\uff0c\u5206\u522b\u5bf9\u5e94\u524d\u9762\u521b\u5efa\u7684\u6570\u636e\u5e93\u3001\u7528\u6237\u3001\u5bc6\u7801\uff0c\u4fee\u6539\u5230\u7b49\u53f7\u540e\u9762<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727592622201.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 386px; --smush-placeholder-aspect-ratio: 386\/202;\" \/><\/p>\n<p>\u542f\u7528\u670d\u52a1<\/p>\n<pre><code class=\"language-bash\">sudo a2enconf zoneminder\nsudo a2enmod cgi\nsudo systemctl restart apache2.service\nsudo systemctl restart zoneminder.service\nsudo systemctl status zoneminder.service # \u67e5\u770b\u8fd0\u884c\u72b6\u6001<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8\"><\/span>\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"%E9%A6%96%E6%AC%A1%E4%BD%BF%E7%94%A8\"><\/span>\u9996\u6b21\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8bbf\u95ee\u6d4b\u8bd5<br \/>\n\u9996\u6b21\u4f7f\u7528\u4f1a\u51fa\u73b0\u9690\u79c1\u534f\u8bae\uff0c\u7ffb\u5230\u5e95\u90e8\u540c\u610f\u534f\u8bae<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727592840552.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 592px; --smush-placeholder-aspect-ratio: 592\/617;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%BF%AE%E6%94%B9%E5%9C%B0%E5%8C%BA%E5%92%8C%E6%97%B6%E5%8C%BA\"><\/span>\u4fee\u6539\u5730\u533a\u548c\u65f6\u533a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e0a\u9762\u4ece\u5de6\u5230\u53f3\u7b2c\u4e8c\u4e2a option \u9009\u9879\uff0c<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727613637338.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 613px; --smush-placeholder-aspect-ratio: 613\/108;\" \/><\/p>\n<p>\u8bed\u8a00\u9009 zh_cn \u5c31\u662f\u4e2d\u6587\uff08\u53ea\u662f\u6c49\u5316\u4e0d\u5f7b\u5e95\uff0c\u5f88\u591a\u4e2d\u82f1\u6df7\u5408\uff09\uff0c\u8fd8\u6709 LOCALE_DEFAULT \u9009 zh_Hans_CN<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727613684331.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1325px; --smush-placeholder-aspect-ratio: 1325\/548;\" \/><\/p>\n<p>\u518d\u5f80\u4e0b\u9009\u65f6\u533a\uff0c\u4e2d\u56fd\u5927\u9646\u5730\u533a\u7684\u65f6\u533a\u9009\u4e9a\u6d32\u4e0a\u6d77\uff08\u56fd\u9645\u6807\u51c6\u65f6\u533a\u5728\u65b0\u4e2d\u56fd\u6210\u7acb\u4e4b\u524d\u5c31\u5b9a\u4e0b\u6765\u4e86\uff0c\u6bd5\u7adf\u5f53\u65f6\u6d0b\u4eba\u591a\u5728\u4e0a\u6d77\uff0c\u8fd8\u662f\u56fd\u9645\u90fd\u5e02\uff09\uff0c\u4fee\u6539\u540e\u53f3\u4e0b\u89d2\u70b9\u4fdd\u5b58<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727613717004.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 485px; --smush-placeholder-aspect-ratio: 485\/118;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%B7%BB%E5%8A%A0_USB_%E6%91%84%E5%83%8F%E5%A4%B4\"><\/span>\u6dfb\u52a0 USB \u6444\u50cf\u5934<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8B%E6%91%84%E5%83%8F%E5%A4%B4%E6%94%AF%E6%8C%81%E7%9A%84%E8%BE%93%E5%87%BA%E6%A0%BC%E5%BC%8F\"><\/span>\u67e5\u770b\u6444\u50cf\u5934\u652f\u6301\u7684\u8f93\u51fa\u683c\u5f0f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5b89\u88c5\u5a92\u4f53\u5de5\u5177\u5e93<\/p>\n<pre><code class=\"language-bash\">sudo apt install -y v4l-utils<\/code><\/pre>\n<p>\u67e5\u770b\u6444\u50cf\u5934\u8bbe\u5907<\/p>\n<pre><code class=\"language-bash\">v4l2-ctl --list-devices<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727609767300.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 421px; --smush-placeholder-aspect-ratio: 421\/421;\" \/><\/p>\n<p>\u8fd9\u91cc\u7684 imx291 \u5c31\u662f\u6211\u7684 USB \u6444\u50cf\u5934\uff0c\u4e00\u822c\u4e00\u4e2a\u6444\u50cf\u5934\u6709\u4e24\u4e2a \/dev\/video \u8bbe\u5907\u6587\u4ef6\uff0c\u5176\u4e2d\u7b2c\u4e00\u4e2a\u53ef\u4ee5\u8f93\u51fa\u89c6\u9891\u6d41\uff0c\u67e5\u770b\u652f\u6301\u7684\u5a92\u4f53\u683c\u5f0f<\/p>\n<pre><code class=\"language-bash\">v4l2-ctl -d \/dev\/video0 --list-formats-ext<\/code><\/pre>\n<p>\u6211\u8fd9\u91cc\u8f93\u51fa\u4e86\u4e0b\u9762\u7684\u5185\u5bb9<\/p>\n<pre><code class=\"language-bash\">yx@raspberrypi:~ $ v4l2-ctl -d \/dev\/video0 --list-formats-ext\nioctl: VIDIOC_ENUM_FMT\n        Type: Video Capture\n\n        [0]: &#039;MJPG&#039; (Motion-JPEG, compressed)\n                Size: Discrete 1920x1080\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 1280x1024\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 1280x720\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 800x600\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 640x480\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 320x240\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n        [1]: &#039;YUYV&#039; (YUYV 4:2:2)\n                Size: Discrete 1920x1080\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 1280x1024\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 1280x720\n                        Interval: Discrete 0.100s (10.000 fps)\n                Size: Discrete 800x600\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 640x480\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)\n                Size: Discrete 320x240\n                        Interval: Discrete 0.033s (30.000 fps)\n                        Interval: Discrete 0.040s (25.000 fps)\n                        Interval: Discrete 0.050s (20.000 fps)\n                        Interval: Discrete 0.067s (15.000 fps)\n                        Interval: Discrete 0.100s (10.000 fps)\n                        Interval: Discrete 0.200s (5.000 fps)<\/code><\/pre>\n<p>\u5373\u652f\u6301MJPG\u548cYUYV\uff0c\u4ee5\u53ca\u5728\u5404\u79cd\u5206\u8fa8\u7387\u8f93\u51fa\u4e0b\u652f\u6301\u7684\u5e27\u7387\u5927\u5c0f<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%AE%BE%E7%BD%AE%E6%91%84%E5%83%8F%E5%A4%B4%E8%BE%93%E5%87%BA%E6%A0%BC%E5%BC%8F%EF%BC%88%E5%8F%AA%E9%9C%80%E8%A6%81%E4%BA%86%E8%A7%A3%EF%BC%89\"><\/span>\u8bbe\u7f6e\u6444\u50cf\u5934\u8f93\u51fa\u683c\u5f0f\uff08\u53ea\u9700\u8981\u4e86\u89e3\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>YUYV \u8f93\u51fa\u65f6\u6ca1\u6709\u538b\u7f29\u56fe\u50cf\uff0c\u504f\u5411\u539f\u59cb\u7684\u6570\u636e\uff0c\u56e0\u6b64\u6570\u636e\u91cf\u5c31\u5f88\u5927\uff08\u5f53\u7136\u56fe\u50cf\u8d28\u91cf\u4e5f\u6bd4\u8f83\u9ad8\uff09\uff0c\u4e0a\u9762\u8f93\u51fa\u7684\u4fe1\u606f\u53ef\u4ee5\u770b\u5230\u5728\u8f93\u51fa 1920\u00d71080 \u7684\u65f6\u5019\u5e27\u7387\u5c31\u53ea\u6709 5 \u5e27\u4e86\u3002\u800c\u91c7\u7528 MJPG \u8f93\u51fa\u5c31\u4f1a\u538b\u7f29\u56fe\u50cf\uff0c\u4f1a\u635f\u5931\u4e00\u5b9a\u7684\u56fe\u50cf\u8d28\u91cf\uff0c\u4f46\u662f\u4f20\u8f93\u6570\u636e\u91cf\u5c31\u964d\u4f4e\u4e86\uff0c1920\u00d71080 \u4e5f\u80fd\u8f93\u51fa 30 \u5e27\u3002<br \/>\n\u8fd9\u91cc\u6211\u5c31\u8bbe\u7f6e\u6444\u50cf\u5934\u91c7\u7528 MJPG \u8f93\u51fa\uff0c\u5206\u8fa8\u7387\u9009\u62e9 1280\u00d7720<br \/>\n\uff08\u5728 ZoneMinder \u8bbe\u7f6e\u9009\u62e9\u7684\u65f6\u5019\u4f1a\u81ea\u52a8\u6267\u884c\u64cd\u4f5c\uff09<\/p>\n<pre><code class=\"language-bash\">v4l2-ctl --device=\/dev\/video0 --set-fmt-video=width=1280,height=720,pixelformat=MJPG<\/code><\/pre>\n<p>\u9a8c\u8bc1<\/p>\n<pre><code class=\"language-bash\">v4l2-ctl --device=\/dev\/video0 --get-fmt-video<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727767711210.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 472px; --smush-placeholder-aspect-ratio: 472\/171;\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%B7%BB%E5%8A%A0%E6%91%84%E5%83%8F%E5%A4%B4\"><\/span>\u6dfb\u52a0\u6444\u50cf\u5934<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5728\u63a7\u5236\u53f0\u9009\u9879\u5361\u4e0b\u70b9\u51fb\u65b0\u5efa\u76d1\u89c6\u5668<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727613556073.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 656px; --smush-placeholder-aspect-ratio: 656\/165;\" \/><\/p>\n<p>\u53d6\u4e00\u4e2a\u540d\u5b57\uff0c\u4fe1\u53f7\u6e90\u9009\u672c\u5730<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727613758448.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 713px; --smush-placeholder-aspect-ratio: 713\/614;\" \/><br \/>\n\u5de6\u4fa7\u5207\u6362\u5230\u4fe1\u53f7\u6e90\uff0c\u586b\u4e0a\u6444\u50cf\u5934\u7684\u8bbe\u5907\u6587\u4ef6\u8def\u5f84\uff0c\u8bbe\u7f6e\u4e00\u4e0b\u5206\u8fa8\u7387\uff0c\u6355\u83b7\u8c03\u8272\u677f\u9009 MJPG\uff0c\u4f1a\u81ea\u52a8\u8bbe\u7f6e\u6444\u50cf\u5934\u7684\u8f93\u51fa\u5206\u8fa8\u7387\u548c\u683c\u5f0f<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727769191530.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 884px; --smush-placeholder-aspect-ratio: 884\/493;\" \/><br \/>\n\u7136\u540e\u5de6\u4fa7\u5207\u6362\u5230\u7f13\u51b2\u5668\uff0cMaxImageBufferCount \u9650\u5236\u6700\u5927\u7684\u7f13\u51b2\u5e27\u6570\uff0c<strong>\u975e\u5e38\u5efa\u8bae<\/strong>\u9650\u5236\u8fd9\u4e2a\uff0c\u4e0b\u9762\u4f1a\u663e\u793a\u9884\u8ba1\u7684\u5185\u5b58\u4f7f\u7528\u91cf\uff0c\u9ed8\u8ba4\u662f\u8bbe\u7f6e\u7684 0\uff0c\u5373\u65e0\u9650\u5236\uff0c\u4f7f\u7528\u4e2d\u9047\u5230\u597d\u51e0\u6b21\u628a\u6211 8G \u5185\u5b58\u90fd\u8dd1\u6ee1\u7684\u60c5\u51b5\uff0c\u6700\u540e\u6b7b\u673a\uff0c\u53ea\u80fd\u65ad\u7535\u91cd\u542f<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727769326605.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 687px; --smush-placeholder-aspect-ratio: 687\/490;\" \/><br \/>\n\u9875\u9762\u53f3\u4e0a\u89d2\u5207\u6362\u72b6\u6001\u5230\u8fd0\u884c<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727613875046.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1000px; --smush-placeholder-aspect-ratio: 1000\/545;\" \/><\/p>\n<p>\u7531\u4e8e zoneminder \u662f\u4ee5 www-data \u7528\u6237\u8fd0\u884c\u7684\uff0c\u800c \/dev\/video* \u8bbe\u5907\u5c5e\u4e8e video \u7528\u6237\u7ec4\uff0c\u53ef\u80fd\u6ca1\u6709\u6743\u9650\u8bbf\u95ee<br \/>\n\u5c06 www-data \u6dfb\u52a0\u5230 video \u7528\u6237\u7ec4\uff0c\u8fd9\u6837\u5c31\u80fd\u6b63\u5e38\u4f7f\u7528\u4e86<\/p>\n<pre><code class=\"language-bash\"># \u6dfb\u52a0\nsudo usermod -aG video www-data\n\n# \u5237\u65b0\nsudo newgrp video<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F%E5%AE%9E%E7%8E%B0%E5%85%AC%E7%BD%91%E8%AE%BF%E9%97%AE\"><\/span>\u5185\u7f51\u7a7f\u900f\u5b9e\u73b0\u516c\u7f51\u8bbf\u95ee<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5927\u4f53\u8fd8\u662f\u57fa\u4e8e\u8fd9\u4e2a\u601d\u8def\uff1a<a href=\"https:\/\/blog.iyatt.com\/?p=17340\">https:\/\/blog.iyatt.com\/?p=17340<\/a><br \/>\nZoneMinder \u63d0\u4f9b\u7684\u914d\u7f6e\u65b9\u6848\u662f\u57fa\u4e8e Apache2 \u7684\uff0c\u6211\u770b\u4e86\u597d\u4e45\u90fd\u6ca1\u641e\u61c2\u600e\u4e48\u7ed9 ZoneMinder \u914d\u7f6e https \u8bbf\u95ee\uff0c\u6700\u540e\u5728\u672c\u5730\u7528 Nginx \u53cd\u5411\u4ee3\u7406 Apache2 \u7684 80 \u7aef\u53e3\uff0c\u8f6c\u4e3a https\uff0c\u518d\u7528 frp \u628a Nginx \u4ee3\u7406\u7684\u7aef\u53e3\u6620\u5c04\u5230\u516c\u7f51\uff0c\u8fd9\u6837\u76f4\u63a5\u516c\u7f51\u5c31\u80fd\u8bbf\u95ee\u4e86\uff0c\u670d\u52a1\u5668\u8fd8\u662f\u65b0\u52a0\u5761\u7684\uff0c\u89c6\u9891\u5148\u9001\u5230\u65b0\u52a0\u62ab\u518d\u4f20\u56de\u6765\uff0c\u611f\u89c9\u5ef6\u65f6\u90fd\u8fd8\u53ef\u4ee5\uff0c\u5e94\u8be5\u5728 1 \u79d2\u5185\uff0c\u4e0d\u4f1a\u611f\u89c9\u660e\u663e\u7684\u8fdf\u949d\u3002<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727618103659.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1000px; --smush-placeholder-aspect-ratio: 1000\/379;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%90%AF%E7%94%A8%E7%99%BB%E5%BD%95%E9%AA%8C%E8%AF%81\"><\/span>\u542f\u7528\u767b\u5f55\u9a8c\u8bc1<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6253\u5f00\u9009\u9879\uff0c\u5de6\u4fa7\u7528\u6237\u680f\u53ef\u4ee5\u521b\u5efa\u6216\u7f16\u8f91\u7528\u6237<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727669216628.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 517px; --smush-placeholder-aspect-ratio: 517\/820;\" \/><\/p>\n<p>\u8bbe\u7f6e\u7528\u6237\u5bc6\u7801\u3001\u8bed\u8a00\u3001\u5e26\u5bbd\u9650\u5236\u3001\u662f\u5426\u542f\u7528\u3001\u53ef\u8bbf\u95ee\u7684\u8bbe\u5907\u3001\u4eab\u6709\u7684\u8bbe\u5907\u6743\u9650&#8230;<br \/>\n\u8bbe\u7f6e\u540e\u70b9\u51fb\u4fdd\u5b58<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727669255154.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 808px; --smush-placeholder-aspect-ratio: 808\/747;\" \/><\/p>\n<p>\u9009\u9879\u5de6\u4fa7\u6253\u5f00\u7cfb\u7edf\uff0c\u52fe\u9009<strong>OPT_USE_AUTH<\/strong>\uff0c\u7136\u540e\u4fdd\u5b58\uff0c\u8fd9\u6837\u5c31\u652f\u6301\u767b\u5f55\u9a8c\u8bc1\u4e86<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727669352668.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1175px; --smush-placeholder-aspect-ratio: 1175\/847;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%A2%E6%88%B7%E7%AB%AF%E7%A8%8B%E5%BA%8F%EF%BC%88%E6%A1%8C%E9%9D%A2%E7%A8%8B%E5%BA%8F%E3%80%81%E6%89%8B%E6%9C%BAAPP\"><\/span>\u5ba2\u6237\u7aef\u7a0b\u5e8f\uff08\u684c\u9762\u7a0b\u5e8f\u3001\u624b\u673aAPP)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727701207602.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 509px; --smush-placeholder-aspect-ratio: 509\/1087;\" \/><br \/>\n\u53ef\u4ee5\u4ece GitHub \u4e0b\u8f7d\uff1a<a href=\"https:\/\/github.com\/ZoneMinder\/zmNinja\/releases\">https:\/\/github.com\/ZoneMinder\/zmNinja\/releases<\/a><br \/>\n\u6211\u662f\u7528\u7684 Android \u624b\u673a\uff0c\u6700\u5f00\u59cb\u662f\u5728 Google Play \u4e0a\u67e5\u627e APP\uff0c\u53d1\u73b0\u662f\u6536\u8d39\u7684\uff0c\u540e\u9762\u624d\u53bb GitHub \u4e0a\u67e5\u627e ZoneMinder \u9879\u76ee\uff0c\u5012\u662f\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\uff08\u4e0a\u9762\u7684\u94fe\u63a5\uff09<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE_API_%E8%AE%BF%E9%97%AE\"><\/span>\u914d\u7f6e API \u8bbf\u95ee<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5728\u9009\u9879-\u7cfb\u7edf\u4e2d\u52fe\u9009<strong>OPT_USE_API<\/strong>\u7136\u540e\u4fdd\u5b58\uff0c\u5373\u542f\u7528 API<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727700617828.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 467px; --smush-placeholder-aspect-ratio: 467\/77;\" \/><\/p>\n<p>\u7136\u540e\u5728\u9009\u9879-\u7528\u6237\u4e2d\uff0c\u4e3a\u6307\u5b9a\u7528\u6237\u542f\u7528 API\uff0c\u8fd9\u6837\u8be5\u7528\u6237\u5c31\u80fd\u5728 APP \u4e0a\u4f7f\u7528\u4e86<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%80%9CLogin_Auth_Sucess_but_api_failed%E2%80%9D%E2%80%9C%E7%99%BB%E5%BD%95%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E6%88%90%E5%8A%9F%EF%BC%8C%E4%BD%86_API_%E5%A4%B1%E8%B4%A5%E2%80%9D%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3\"><\/span>\u201cLogin Auth Sucess but api failed\u201d\/\u201c\u767b\u5f55\u8eab\u4efd\u9a8c\u8bc1\u6210\u529f\uff0c\u4f46 API \u5931\u8d25\u201d\u95ee\u9898\u89e3\u51b3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>APP \u88c5\u4e0a\u4e86\uff0c\u4f46\u662f\u4f7f\u7528\u7684\u65f6\u5019\u5c31\u9047\u5230\u6807\u9898\u7684\u9519\u8bef\uff0c\u7f51\u9875\u7aef\u4e5f\u80fd\u6b63\u5e38\u4f7f\u7528\u3002<br \/>\n\u5ba2\u6237\u7aef\u5e94\u8be5\u662f\u901a\u8fc7 API \u8fde\u63a5\u7684\uff0c\u5c31\u662f\u8fd9\u4e2a API \u6709\u95ee\u9898\u3002<br \/>\n\u6628\u5929\u665a\u4e0a\u5c31\u5361\u5728\u8fd9\u91cc\uff0c\u4eca\u5929\uff082024.9.30\uff09\u4e0b\u73ed\u56de\u5bb6\u540e\uff0c\u665a\u4e0a\u53c8\u7ee7\u7eed\u5c1d\u8bd5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4e00\u76f4\u4e0d\u505c\u5730\u5728\u8c37\u6b4c\u4e0a\u641c\u7d22\u5c1d\u8bd5\uff0cZoneMinder \u7684\u9879\u76ee issues \u627e\u4e86\u90fd\u6ca1\u89e3\u51b3\uff0c\u641c\u4e86\u4e24\u4e2a\u5c0f\u65f6\uff0c\u6700\u540e\u5728 ZoneMinder \u8bba\u575b\u4e0a\u627e\u5230\u7684\u56de\u7b54\u89e3\u51b3\u4e86\uff1a<a href=\"https:\/\/forums.zoneminder.com\/viewtopic.php?p=111193#p111193\">https:\/\/forums.zoneminder.com\/viewtopic.php?p=111193#p111193<\/a><br \/>\n\u63a8\u6d4b\u5c31\u662f\u6811\u8393\u6d3e\u7248\u672c\u7684 ZoneMinder \u5305\u6709\u95ee\u9898\uff0c\u6211\u7528\u4e2d\u6587\u518d\u8f6c\u8ff0\u4e00\u4e0b\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p>\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u540d\u4e3a <strong>.htaccess<\/strong>\uff0c\u5199\u5165<\/p>\n<pre><code class=\"language-bash\">&lt;IfModule mod_rewrite.c&gt;\n    RewriteEngine On\n    RewriteCond %{REQUEST_FILENAME} !-d\n    RewriteCond %{REQUEST_FILENAME} !-f\n    RewriteRule ^ index.php [L]\n    RewriteBase \/zm\/api\n&lt;\/IfModule&gt;<\/code><\/pre>\n<p>\u4fee\u6539\u6587\u4ef6\u6240\u5c5e\u7528\u6237\u548c\u6743\u9650<\/p>\n<pre><code class=\"language-bash\">sudo chown www-data:www-data .htaccess\nsudo chmod 644 .htaccess<\/code><\/pre>\n<p>\u7136\u540e\u5c06\u8fd9\u4e2a\u6587\u4ef6\u590d\u5236\u5230\u4e0b\u9762\u4e09\u4e2a\u8def\u5f84\u4e0b\u9762<\/p>\n<ul>\n<li>\/usr\/share\/zoneminder\/www\/api<\/li>\n<li>\/usr\/share\/zoneminder\/www\/api\/app<\/li>\n<li>\/usr\/share\/zoneminder\/www\/api\/app\/webroot<\/li>\n<\/ul>\n<p>\u542f\u7528rewrite<\/p>\n<pre><code class=\"language-bash\">sudo a2enmod rewrite\nsudo systemctl restart apache2<\/code><\/pre>\n<p>\u53ef\u4ee5\u6d4b\u8bd5\u8bbf\u95ee\uff0c\u5f53\u53ef\u4ee5\u663e\u793a\u7248\u672c\u6216\u4e0b\u56fe\u683c\u5f0f\u7684\u9519\u8bef\u4fe1\u606f\u7684\u65f6\u5019\uff0c\u5c31\u4ee3\u8868 API \u6b63\u5e38\u5de5\u4f5c\u4e86<\/p>\n<pre><code class=\"language-bash\">\u5730\u5740\/\/zm\/api\/host\/getVersion.json<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727700317873.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 528px; --smush-placeholder-aspect-ratio: 528\/146;\" \/><br \/>\n\u5982\u679c\u9009\u9879\u6ca1\u6709\u52fe\u9009<strong>OPT_USE_LEGACY_API_AUTH<\/strong>\uff08\u65e7\u7248 API \u8ba4\u8bc1\uff0c\u5728\u542f\u7528 API \u4e0b\u4e00\u9879\uff09\uff0c\u5c31\u4f1a\u663e\u793a\u4e0b\u9762\u7684\u72b6\u6001\uff0c\u4e0d\u542f\u7528\u4e5f\u4e0d\u5f71\u54cd APP \u4f7f\u7528<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727700700095.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 380px; --smush-placeholder-aspect-ratio: 380\/205;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%BD%95%E5%83%8F%E5%AD%98%E5%82%A8\"><\/span>\u5f55\u50cf\u5b58\u50a8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"%E8%B7%AF%E5%BE%84\"><\/span>\u8def\u5f84<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6253\u5f00\u9009\u9879-Storage\uff0c\u81ea\u5df1\u65b0\u5efa\u5b58\u50a8\u8def\u5f84\uff0c\u586b\u597d\u8def\u5f84\u5e76\u53d6\u4e00\u4e2a\u540d\u5b57<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727702350405.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1545px; --smush-placeholder-aspect-ratio: 1545\/535;\" \/><\/p>\n<p>\u5728\u5177\u4f53\u7684\u6444\u50cf\u5934\u914d\u7f6e\u7684 Storage \u91cc\u6709\u4e2a\u5b58\u50a8\u533a\u57df\uff0c\u5c31\u53ef\u4ee5\u9009\u8bbe\u7f6e\u7684\u8def\u5f84\u540d\u79f0<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727778154610.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 757px; --smush-placeholder-aspect-ratio: 757\/455;\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%A0%BC%E5%BC%8F\"><\/span>\u683c\u5f0f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u65b0\u5efa\u7684\u76d1\u89c6\u5668\u9ed8\u8ba4\u8bbe\u7f6e\u662f\u4fdd\u5b58 JPEG \u56fe\u7247\u800c\u4e0d\u662f\u89c6\u9891\uff0c\u8fd9\u6837\u4fdd\u5b58\u5f55\u50cf\u7684\u65f6\u5019 CPU \u5f00\u9500\u4f1a\u6bd4\u8f83\u5c0f\uff0c\u4f46\u662f\u56fe\u7247\u4f1a\u6bd4\u8f83\u5360\u7528\u50a8\u5b58\u7a7a\u95f4\u3002\u6211\u8fd9\u91cc\u662f\u7981\u7528\u4e86\u56fe\u7247\u4fdd\u5b58\uff0c\u7136\u540e\u542f\u7528\u4e86\u89c6\u9891\u4fdd\u5b58\uff0c\u8f93\u51fa\u7f16\u7801\u9009\u62e9\u7684 h264\uff0c\u7f16\u7801\u5668\u4f7f\u7528 libx264\uff0c\u53ef\u4ee5\u517c\u987e CPU \u5360\u6709\u548c\u5b58\u50a8\u5927\u5c0f\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727777459327.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 748px; --smush-placeholder-aspect-ratio: 748\/472;\" \/><\/p>\n<p>\u56fe\u7247\u7f16\u7801\u4e3a\u89c6\u9891\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u76d1\u63a7\u89c6\u9891\u6765\u8bf4\uff0c\u80cc\u666f\u57fa\u672c\u56fa\u5b9a\uff0c\u7f16\u7801\u4e3a\u89c6\u9891\u53ef\u4ee5\u51cf\u5c11\u5bf9\u76f8\u540c\u5185\u5bb9\u7684\u91cd\u590d\u4fdd\u5b58\uff0c\u53ef\u4ee5\u6781\u5927\u7684\u7f29\u5c0f\u5360\u7528\u3002\u53ea\u662f\u6211\u8fd9\u91cc\u662f\u7528\u7684\u6811\u8393\u6d3e\uff0cCPU \u6027\u80fd\u6709\u9650\uff0c\u5c31\u9009 H.264\uff0c\u8fd9\u662f\u6298\u4e2d\u9009\u62e9\u3002H.265 \u538b\u7f29\u80fd\u529b\u66f4\u5f3a\uff0c\u89c6\u9891\u6587\u4ef6\u53ef\u4ee5\u66f4\u5c0f\uff0c\u4f46\u662f CPU \u5f00\u9500\u4f1a\u66f4\u5927\u3002\u5982\u679c\u662f\u4f7f\u7528\u5177\u6709\u663e\u5361\u7684\u8bbe\u5907\u90e8\u7f72\u7684\uff0c\u662f\u53ef\u4ee5\u4f7f\u7528\u786c\u4ef6\u52a0\u901f\u7f16\u7801\u7684\u3002\u5982\u679c\u6709 NVIDIA \u7684\u72ec\u663e\uff0c\u53ef\u4ee5\u4f7f\u7528 nvenc \u7f16\u7801\u5668\uff0c\u800c\u4e14\u5c31\u7b97\u7f16\u7801\u4e3a H.265(HEVC\uff09\u4e5f\u6ca1\u591a\u5c11\u538b\u529b\u3002\u8fd9\u91cc\u89c6\u9891\u7f16\u7801\u662f\u4f7f\u7528\u7684 FFmpeg \u6765\u5b8c\u6210\uff0c\u8fd9\u4e9b\u7f16\u7801\u5668\u9009\u9879\u90fd\u662f FFmpeg \u91cc\u7684\uff0c\u4e0d\u8fc7\u4e5f\u5c11\u4e00\u4e9b\uff0cFFmpeg \u662f\u652f\u6301 Intel \u6838\u663e\u7f16\u7801\u7684\uff0c\u8fd9\u91cc\u6ca1\u770b\u5230 qsv \u7f16\u7801\u5668\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727777825993.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 292px; --smush-placeholder-aspect-ratio: 292\/330;\" \/><\/p>\n<p>\u5982\u679c\u662f\u8981\u5168\u7a0b\u56fe\u50cf\u7684\uff0c\u8fd8\u662f\u7528\u7684\u6811\u8393\u6d3e\u5c31\u4e0d\u5efa\u8bae\u7f16\u7801\u89c6\u9891\u4e86\uff0c\u90a3\u6837 CPU \u4f1a\u5168\u7a0b\u6ee1\u8f7d\u3002\u6211\u8fd9\u91cc\u662f\u5f00\u7684\u8fd0\u52a8\u4fa6\u6d4b\uff0c\u53ea\u8bb0\u5f55\u753b\u9762\u53d8\u5316\u7684\u90e8\u5206\uff0c\u8fd9\u6837\u7f16\u7801\u7f16\u7801\u89c6\u9891\u8fd8\u52c9\u5f3a\u53ef\u4ee5\u5de5\u4f5c\u3002\u4e0d\u8fc7\u5728\u540c\u65f6\u4e24\u4e2a\u6444\u50cf\u5934\u7684\u60c5\u51b5\u4e0b\uff0c\u5f55\u50cf\u62cd\u6444\u5403\u996d\u7684\u65f6\u5019\uff0c\u6301\u7eed\u6709\u8fd0\u52a8\uff0c\u4e00\u76f4\u7f16\u7801\u89c6\u9891\uff0c\u6700\u540e CPU \u6ee1\u8f7d\u540e\u7cfb\u7edf\u76f4\u63a5\u5d29\u6e83\u4e86\uff0c\u5d29\u6e83\u540e\u7cfb\u7edf\u5185\u6838\u90fd\u88ab\u6740\u6b7b\u4e86\uff0c\u7ec8\u7aef\u53ef\u4ee5\u8f93\u5165\u4f46\u662f\u5c31\u662f\u627e\u4e0d\u5230\u547d\u4ee4\uff0c\u65e0\u6cd5\u8bfb\u5199\u6587\u4ef6\uff0c\u4ec0\u4e48\u64cd\u4f5c\u90fd\u6267\u884c\u4e0d\u4e86\uff0c\u6700\u540e\u65ad\u7535\u91cd\u542f\uff0c\u8fd8\u662f\u53ea\u80fd\u4fdd\u5b58\u56fe\u7247\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%87%AA%E5%8A%A8%E5%88%A0%E9%99%A4%E6%9C%80%E6%97%A9%E5%BD%95%E5%83%8F%EF%BC%88%E5%8F%AF%E4%BB%A5%E7%BB%B4%E6%8C%81%E9%BB%98%E8%AE%A4%E8%AE%BE%E7%BD%AE%EF%BC%89\"><\/span>\u81ea\u52a8\u5220\u9664\u6700\u65e9\u5f55\u50cf\uff08\u53ef\u4ee5\u7ef4\u6301\u9ed8\u8ba4\u8bbe\u7f6e\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5b58\u50a8\u8bbe\u5907\u5bb9\u91cf\u662f\u6709\u9650\u7684\uff0c\u5c31\u9700\u8981\u5faa\u73af\u5220\u9664\u5f55\u50cf\uff0c\u6211\u8fd9\u91cc\u662f\u989d\u5916\u63a5\u4e86\u4e00\u5f20 64G \u7684\u5185\u5b58\u5361\u4f5c\u4e3a\u5f55\u50cf\u5b58\u50a8\u8bbe\u5907\uff0c\u4e24\u5e74\u524d\u4e70\u7684\uff0c\u6309\u7167\u4ee5\u5f80\u7684\u7ecf\u9a8c\u6bcf\u6b21\u5185\u5b58\u5361\u7528\u5230\u4e24\u5e74\u591a\u4ee5\u540e\u67d0\u5929\u5c31\u4f1a\u7a81\u7136\u574f\u6389\uff0c\u5c31\u628a\u5b83\u4f5c\u4e3a\u6d88\u8017\u54c1\u7528\u574f\u518d\u8bf4\u3002\u8981\u662f\u4e13\u95e8\u5b58\u50a8\u5f55\u50cf\uff0c\u8fd8\u662f\u5efa\u8bae\u641e\u4e2a\u4f01\u4e1a\u786c\u76d8\uff0c\u5e76\u4e14\u7528\u673a\u68b0\u786c\u76d8\uff0c\u5b58\u50a8\u6570\u636e\u66f4\u7a33\u59a5\u4e00\u4e9b\u3002<br \/>\n\u4e0a\u9762\u9009\u9879\u5361\u5207\u6362\u5230\u8fc7\u6ee4\u5668\uff0c\u7b5b\u9009\u5668\u9009 PurgeWhenFull\uff0c\u8bbe\u7f6e\u78c1\u76d8\u5360\u7528\u5927\u4e8e\u4e00\u5b9a\u91cf\u5c31\u6267\u884c<br \/>\n\u6309\u5347\u5e8f\u6392\uff0c\u6700\u65e9\u7684\u6587\u4ef6\u5c31\u5728\u6700\u524d\u9762\uff0c\u7136\u540e\u8bbe\u7f6e\u8981\u5904\u7406\u7684\u6570\u91cf\uff0c\u6267\u884c\u5237\u65b0\u78c1\u76d8\u7a7a\u95f4\u548c\u5220\u9664\u5339\u914d\u9879\uff08\u5237\u65b0\u78c1\u76d8\u7a7a\u95f4\u53ef\u4ee5\u4e0d\u7528\u52fe\u9009\uff09\uff0c\u7136\u540e\u4fdd\u5b58<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/09\/image-1727834990891.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 2487px; --smush-placeholder-aspect-ratio: 2487\/828;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%B6%85%E9%A2%91\"><\/span>\u8d85\u9891<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/blog.iyatt.com\/?p=11738\">https:\/\/blog.iyatt.com\/?p=11738<\/a><br \/>\n\u6211\u7528\u7684 CM4 \u9ed8\u8ba4\u6700\u9ad8\u9891\u7387 1.5GHz\uff0c\u5982\u679c ZoneMinder  \u5f00\u542f\u4e86\u8fd0\u52a8\u4fa6\u6d4b\uff0cCPU \u5c31\u4f1a\u6bd4\u8f83\u5403\u7d27\uff0c\u53ef\u4ee5\u542f\u7528\u8d85\u9891\u63d0\u5347\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u81ea\u5df1\u642d\u5efa\uff0c\u53ef\u4ee5\u7528\u624b\u91cc\u5df2\u6709\u7684\u8bbe\u5907\uff0c\u4e0d\u9700\u8981\u989d\u5916\u4e70\u3002\u8fd9\u5957\u7cfb\u7edf\u7684\u6e90\u7801\u662f\u516c\u5f00\u7684\uff0c\u5f55\u50cf\u6570\u636e\u4e5f\u638c\u63e1\u5728\u81ea\u5df1\u624b\u91cc\uff0c\u4e0d\u7ecf\u8fc7\u4e0d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,598,600,595],"tags":[],"class_list":["post-17425","post","type-post","status-publish","format-standard","hentry","category-all","category-linux","category-600","category-595"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/17425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17425"}],"version-history":[{"count":2,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/17425\/revisions"}],"predecessor-version":[{"id":18821,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/17425\/revisions\/18821"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}