{"id":7127,"date":"2022-10-09T14:08:44","date_gmt":"2022-10-09T06:08:44","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=7127"},"modified":"2022-10-13T14:57:35","modified_gmt":"2022-10-13T06:57:35","slug":"%e5%b0%86%e6%9f%90%e4%b8%aa%e6%9c%8d%e5%8a%a1%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e9%9b%86%e6%88%90%e5%88%b0%e7%b3%bb%e7%bb%9f%e5%b9%b6%e5%88%b6%e4%bd%9c%e5%bc%80%e6%9c%ba%e5%90%af%e5%8a%a8","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=7127","title":{"rendered":"\u5c06\u67d0\u4e2a\u670d\u52a1\u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u5230\u7cfb\u7edf\u5e76\u5236\u4f5c\u5f00\u673a\u542f\u52a8"},"content":{"rendered":"<p>\u5c06\u7a0b\u5e8f\u62f7\u8d1d\u5230debian\/binary\u76ee\u5f55\uff08\u4e5f\u5c31\u662f\u677f\u5b50\u7cfb\u7edf\u7684\u6839\u6587\u4ef6\u76ee\u5f55\/\uff09\u4e0b\u7684opt\u76ee\u5f55\u91cc\uff0c\u521b\u5efa\u4e00\u4e2a.sh\u6587\u4ef6autostart.sh\uff0c\u6587\u4ef6\u7684\u5927\u81f4\u5185\u5bb9\u662f\u5224\u65ad\u670d\u52a1\u6587\u4ef6\u6709\u6ca1\u6709\u62f7\u8d1d\u5230\/lib\/systemd\/system\/\u4e0b\uff0c\u4ece\u800c\u4fdd\u8bc1\u7a0b\u5e8f\u53ea\u5b89\u88c5\u4e00\u6b21\uff0c\u907f\u514d\u91cd\u590d\u5b89\u88c5\u3002<\/p>\n<pre><code class=\"language-bash\">#! \/bin\/sh\n# chkconfig: 345 99 10\necho &quot;try to install bmc after reboot&quot;\nif [ -f &quot;\/lib\/systemd\/system\/bmcd.service&quot; ];then\n  echo &quot;bmc already configured&quot;\nelse\n  echo &quot;try to install bmc&quot;\n  cd \/opt\/bmc\n  sudo sh .\/install.sh\nfi<\/code><\/pre>\n<p>\u7136\u540e\u5c06autostart.sh\u7684\u6587\u4ef6\u3002\u4f46\u662f\/etc\/rc.local\u5728\u7f16\u8bd1debian\u7cfb\u7edf\u7684\u65f6\u5019\u4f1a\u88ab\u590d\u5199\uff0c\u539f\u6765\u5199\u7684\u542f\u52a8\u811a\u672c\u90fd\u4f1a\u6ca1\u6709\u3002\u67e5\u770b\u7f16\u8bd1\u65e5\u5fd7\uff1a<br \/>\n\u6587\u4ef6\u62f7\u8d1d\u5230\/etc\/profile.d\u76ee\u5f55\u4e0b\uff0c\u8ba9\u7cfb\u7edf\u5f00\u673a\u81ea\u52a8\u6267\u884c\u8fd9\u4e2ash\u811a\u672c\u3002<\/p>\n<blockquote>\n<p>\u66f4\u65b0\uff1a<\/p>\n<\/blockquote>\n<p>\u53d1\u73b0\/etc\/profile.d\u4e0b\u7684\u811a\u672c\u6bcf\u6b21\u542f\u52a8shell\u90fd\u4f1a\u81ea\u52a8\u6267\u884c\uff0c\u4e8e\u662f\u5728\/etc\/rc.local\u91cc\u6dfb\u52a0\u547d\u4ee4\u542f\u52a8autostart.sh\u7684\u6587\u4ef6\u3002\u4f46\u662f\/etc\/rc.local\u5728\u7f16\u8bd1debian\u7cfb\u7edf\u7684\u65f6\u5019\u4f1a\u88ab\u590d\u5199\uff0c\u539f\u6765\u5199\u7684\u542f\u52a8\u811a\u672c\u90fd\u4f1a\u6ca1\u6709\u3002\u67e5\u770b\u7f16\u8bd1\u65e5\u5fd7\u53d1\u73b0<code>root@xinyi:\/# sed -i &quot;\/exit 0\/i \\ rm \/dev\/rfkill&quot; \/etc\/rc.local<\/code>\uff0c\u53d1\u73b0\u811a\u672c\u4f1a\u5f80\/etc\/rc.local\u91cc\u52a8\u6001\u63d2\u5165\u6307\u4ee4\uff0c\u4e8e\u662f\u5168\u5c40\u641c\u7d22\/etc\/rc.local\uff0c\u53d1\u73b0\u5728\/debian\/mk-rootfs-bullseye.sh\uff08\u6839\u6587\u4ef6\u7cfb\u7edf\u5b9a\u5236\u811a\u672c\uff09\u91cc\u6709\u64cd\u4f5c\/etc\/rc.local\uff0c\u5c31\u4fee\u6539\/debian\/mk-rootfs-bullseye.sh\u5728\u91cc\u9762\u6dfb\u52a0\u811a\u672c\u3002<\/p>\n<pre><code class=\"language-bash\">#---------------start bmc&amp;&amp;live-server bycz--------------\nsed -i &#039;2a sh \/opt\/bmc\/bmc-autostart.sh&#039; \/etc\/rc.local\nsed -i &#039;3a sh \/opt\/live-server\/live-server-autostart.sh&#039; \/etc\/rc.local<\/code><\/pre>\n<p>\u6ce8\u610fsed\u4e00\u5b9a\u8981\u52a0-i\uff0c\u5426\u5219\u4fee\u6539\u65e0\u6548\u3002<br \/>\n\u91cd\u65b0\u7f16\u8bd1<br \/>\n<img src=\"http:\/\/xinyiworld.top\/wordpress_it\/wp-content\/uploads\/2022\/10\/8AB46D5E-97E6-4d1b-A171-E3B6C46BDE82.png\" alt=\"\" \/><\/p>\n<button class=\"simplefavorite-button\" data-postid=\"7127\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u5c06\u7a0b\u5e8f\u62f7\u8d1d\u5230debian\/binary\u76ee\u5f55\uff08\u4e5f\u5c31\u662f\u677f\u5b50\u7cfb\u7edf\u7684\u6839\u6587\u4ef6\u76ee\u5f55\/\uff09\u4e0b\u7684opt\u76ee\u5f55\u91cc\uff0c\u521b\u5efa\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[475],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/7127"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7127"}],"version-history":[{"count":5,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/7127\/revisions"}],"predecessor-version":[{"id":7178,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/7127\/revisions\/7178"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}