{"id":833,"date":"2014-08-03T11:08:50","date_gmt":"2014-08-03T11:08:50","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=833"},"modified":"2014-08-03T11:08:50","modified_gmt":"2014-08-03T11:08:50","slug":"linux%e7%b3%bb%e7%bb%9f%e7%9a%84%e5%90%af%e5%8a%a8%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/833.html","title":{"rendered":"Linux\u7cfb\u7edf\u7684\u542f\u52a8\u6d41\u7a0b"},"content":{"rendered":"<p>\u4e4b\u524d\u5c31\u6709\u4e86\u89e3\u8fc7Linux\u7cfb\u7edf\u7684\u542f\u52a8\u6d41\u7a0b\u65b9\u9762\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5728\u6709\u4e9b\u5173\u952e\u65f6\u5019\u6211\u5374\u5fd8\u4e86o(\u256f\u25a1\u2570)o\uff0c\u770b\u6765\u8fd8\u662f\u5f97\u5728blog\u91cc\u9762\u5199\u7bc7\u6587\u7ae0\u5b66\u4e60\u3001\u8bb0\u5f55\u4e00\u4e0b\u624d\u80fd\u66f4\u597d\u7684\u52a0\u6df1\u8bb0\u5fc6\uff0c\u5b9e\u5728\u8bb0\u4e0d\u4f4f\u7684\u8bdd\u8d77\u7801\u8fd8\u6709\u4e2a\u53ef\u4ee5\u53c2\u8003\u7684\u5730\u65b9\uff08\u4e3b\u8981\u9002\u7528\u4e8eDebian\u7cfb\u5217\u7684Linux\u7cfb\u7edf\uff0c\u5982\uff1aUbuntu\uff1b\u5728\u672c\u6587\u7684\u6700\u540e\u4f1a\u6709\u4e00\u4e9bRedHat\u7cfb\u5217Linux\u7cfb\u7edf\u7684\u76f8\u5173\u5185\u5bb9\u4ecb\u7ecd\uff09\u3002<\/p>\n<p>\u9996\u5148\uff0c<strong>\u5728Linux\u7cfb\u7edf\u4e2d\u67e5\u770b\u5f53\u524d\u7684\u8fd0\u884c\u7ea7\u522b<\/strong>\uff1a<\/p>\n<ul>\n<ul>\n<li>Ubuntu\u4e2d\uff0c\u4f7f\u7528 runlevel \u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u7ea7\u522b<\/li>\n<li>CentOS\u4e2d\uff0c\u4f7f\u7528 who -r \u547d\u4ee4\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u7ea7\u522b<\/li>\n<\/ul>\n<\/ul>\n<p>Linux\u9884\u7f6e\u4e03\u79cd\u8fd0\u884c\u7ea7\u522b\uff080-6\uff09\u3002<span style=\"color: #ff0000;\">\u4e00\u822c\u6765\u8bf4\uff0c0\u662f\u5173\u673a\uff0c1\u662f\u5355\u7528\u6237\u6a21\u5f0f\uff08\u4e5f\u5c31\u662f\u7ef4\u62a4\u6a21\u5f0f\uff09\uff0c6\u662f\u91cd\u542f\u3002\u8fd0\u884c\u7ea7\u522b2-5\uff0c\u5404\u4e2a\u53d1\u884c\u7248\u4e0d\u592a\u4e00\u6837\uff0c\u5bf9\u4e8eDebian\u6765\u8bf4\uff0c\u90fd\u662f\u540c\u6837\u7684\u591a\u7528\u6237\u6a21\u5f0f\uff08\u4e5f\u5c31\u662f\u6b63\u5e38\u6a21\u5f0f\uff09\u3002<\/span>\uff08\u7f51\u4e0a\u8bf4\u8fd8\u6709\u4e00\u79cd\u67e5\u770b\u7cfb\u7edf\u5f53\u524d\u8fd0\u884c\u7ea7\u522b\u7684\u65b9\u6cd5\u662f\u67e5\u770b\u6587\u4ef6\/etc\/inittab\u7684\u5185\u5bb9\uff0c\u4f46\u662f\u5728Ubuntu\u7cfb\u7edf[\u6216\u8005\u8bf4\u662fDebian\u7c7b\u7cfb\u7edf]\u4e0a\u9ed8\u8ba4\u662f\u6ca1\u6709\u8fd9\u6837\u7684\u6587\u4ef6\u7684\uff09<\/p>\n<p>\u5728\u6211\u7684Ubuntu\u7cfb\u7edf\u4e0a\u67e5\u770b\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<blockquote><p># runlevel<br \/>\nN 2<br \/>\n# who -r<br \/>\nrun-level 2 2014-07-26 12:57<br \/>\n#<br \/>\n# ll \/etc\/init<br \/>\ninit\/ init.d\/ initramfs-tools\/<br \/>\n#<br \/>\n# ll \/etc\/rc<br \/>\nrc0.d\/ rc3.d\/ rc6.d\/ rcS.d\/<br \/>\nrc1.d\/ rc4.d\/ rc.local<br \/>\nrc2.d\/ rc5.d\/<\/p><\/blockquote>\n<p>\u53ef\u4ee5\u770b\u5230\u6211\u7684Ubuntu\u7cfb\u7edf\u542f\u52a8\u65f6\u7684\u8fd0\u884c\u7ea7\u522b\u4e3a2\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u8fd0\u884c\u7ea7\u522b2\u6709\u4e9b\u4ec0\u4e48\u7a0b\u5e8f\u5462\uff0c\u7cfb\u7edf\u600e\u4e48\u77e5\u9053\u6bcf\u4e2a\u7ea7\u522b\u5e94\u8be5\u52a0\u8f7d\u54ea\u4e9b\u7a0b\u5e8f\u5462\uff1f&#8230;&#8230;\u56de\u7b54\u662f<strong><span style=\"color: #ff0000;\">\u6bcf\u4e2a\u8fd0\u884c\u7ea7\u522b\u5728\/etc\u76ee\u5f55\u4e0b\u9762\uff0c\u90fd\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u5b50\u76ee\u5f55\uff0c\u6307\u5b9a\u8981\u52a0\u8f7d\u7684\u7a0b\u5e8f\u3002<\/span><\/strong>\uff08\u8fd9\u91cc\u6211\u60f3\u8bf4\u4e00\u8bf4\u5176\u4e2d\u7684\/etc\/rcS.d\/\u8fd9\u4e2a\u76ee\u5f55\uff0c\u56e0\u4e3a\u5728\u7f51\u4e0a\u641c\u7d22\u5230\u7684\u5176\u4ed6\u6587\u7ae0\u4e2d\u5f88\u5c11\u6709\u5173\u4e8e\u8fd9\u4e2a\u76ee\u5f55\u7684\u4ecb\u7ecd\uff0c\u800c\u6211\u521a\u521a\u5728Ubuntu\u7684\u5b98\u65b9wiki\u5e2e\u52a9\u4e2d\u627e\u5230\u4e86\u76f8\u5173\u7684\u4e00\u4e9b\u8bf4\u660e\uff0c\u5728\u6b64\u8bb0\u5f55\u4e00\u4e0b\uff1aInit scripts are the scripts located in \/etc\/init.d. These scripts are part of the bootup sequence of Ubuntu. During boot, they are not called directly, but through a structure of symbolic links which manage the services which are to be started in a particular runlevel. <span style=\"color: #0000ff;\">The scripts which are symlinked from <span style=\"color: #ff0000;\"><strong>\/etc\/rcS.d<\/strong><\/span> are executed first.<\/span> Then the scripts in \/etc\/rcN.d\/ are executed, with N being the chosen runlevel (default 2). \u5373\uff0c<span style=\"color: #ff0000;\">\u5728 \/etc\/rcS.d\/ \u76ee\u5f55\u4e2d\u7684\u811a\u672c\u662f\u5148\u4e8e \/etc\/rcN.d\/ \u76ee\u5f55\u4e2d\u7684\u811a\u672c\u6267\u884c\u7684<\/span>\uff09<\/p>\n<p>\/etc\/rc0.d<br \/>\n\/etc\/rc1.d<br \/>\n\/etc\/rc2.d<br \/>\n\/etc\/rc3.d<br \/>\n\/etc\/rc4.d<br \/>\n\/etc\/rc5.d<br \/>\n\/etc\/rc6.d<\/p>\n<p>\u4e0a\u9762\u76ee\u5f55\u540d\u4e2d\u7684&#8221;rc&#8221;\uff0c\u8868\u793arun command\uff08\u8fd0\u884c\u7a0b\u5e8f\uff09\uff0c\u6700\u540e\u7684d\u8868\u793adirectory\uff08\u76ee\u5f55\uff09\u3002\u4e0b\u9762\u8ba9\u6211\u4eec\u770b\u770b\u5728\u6211\u7684 \/etc\/rc2.d \u76ee\u5f55\u4e2d\u5230\u5e95\u6307\u5b9a\u4e86\u54ea\u4e9b\u7a0b\u5e8f\u3002<\/p>\n<p># ls -l \/etc\/rc2.d\/<br \/>\nREADME<br \/>\nS20denyhosts<br \/>\nS20mysql<br \/>\nS20nginx<br \/>\nS20php-fpm<br \/>\nS20postfix<br \/>\nS20pptpd<br \/>\nS20supervisor<br \/>\nS20sysstat<br \/>\nS20xl2tpd<br \/>\nS50rsync<br \/>\nS70dns-clean<br \/>\nS70pppd-dns<br \/>\nS75sudo<br \/>\nS99digitalocean<br \/>\nS99grub-common<br \/>\nS99ondemand<br \/>\nS99rc.local<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u9664\u4e86\u7b2c\u4e00\u4e2a\u6587\u4ef6README\u4ee5\u5916\uff0c\u5176\u4ed6\u6587\u4ef6\u540d\u90fd\u662f&#8221;\u5b57\u6bcdS+\u4e24\u4f4d\u6570\u5b57+\u7a0b\u5e8f\u540d&#8221;\u7684\u5f62\u5f0f\u3002\u5b57\u6bcdS\u8868\u793aStart\uff0c\u4e5f\u5c31\u662f\u542f\u52a8\u7684\u610f\u601d\uff08\u542f\u52a8\u811a\u672c\u7684\u8fd0\u884c\u53c2\u6570\u4e3astart\uff09\uff0c\u5982\u679c\u8fd9\u4e2a\u4f4d\u7f6e\u662f\u5b57\u6bcdK\uff0c\u5c31\u4ee3\u8868Kill\uff08\u5173\u95ed\uff09\uff0c\u5373\u5982\u679c\u4ece\u5176\u4ed6\u8fd0\u884c\u7ea7\u522b\u5207\u6362\u8fc7\u6765\uff0c\u9700\u8981\u5173\u95ed\u7684\u7a0b\u5e8f\uff08\u542f\u52a8\u811a\u672c\u7684\u8fd0\u884c\u53c2\u6570\u4e3astop\uff09\u3002\u540e\u9762\u7684\u4e24\u4f4d\u6570\u5b57\u8868\u793a\u5904\u7406\u987a\u5e8f\uff0c\u6570\u5b57\u8d8a\u5c0f\u8d8a\u65e9\u5904\u7406\uff0c\u6240\u4ee5\u7b2c\u4e00\u4e2a\u542f\u52a8\u7684\u7a0b\u5e8f\u662fdenyhosts\uff0c\u7136\u540e\u662fmysql\u3001nginx&#8230;&#8230;\u6570\u5b57\u76f8\u540c\u65f6\uff0c\u5219\u6309\u7167\u7a0b\u5e8f\u540d\u7684\u5b57\u6bcd\u987a\u5e8f\u542f\u52a8\uff0c\u6240\u4ee5mysql\u4f1a\u5148\u4e8enginx\u542f\u52a8\u3002<\/p>\n<p>\u8fd9\u4e2a\u76ee\u5f55\u91cc\u7684\u6240\u6709\u6587\u4ef6\uff08\u9664\u4e86README\uff09\uff0c\u5c31\u662f\u542f\u52a8\u65f6\u8981\u52a0\u8f7d\u7684\u7a0b\u5e8f\u3002\u5982\u679c\u60f3\u589e\u52a0\u6216\u5220\u9664\u67d0\u4e9b\u7a0b\u5e8f\uff0c\u4e0d\u5efa\u8bae\u624b\u52a8\u4fee\u6539 \/etc\/rcN.d \u76ee\u5f55\uff0c\u6700\u597d\u662f\u7528\u4e00\u4e9b\u4e13\u95e8\u547d\u4ee4\u8fdb\u884c\u7ba1\u7406\uff08\u53c2\u8003<a href=\"http:\/\/www.debianadmin.com\/manage-linux-init-or-startup-scripts.html\" target=\"_blank\">\u8fd9\u91cc<\/a>\u548c<a href=\"http:\/\/www.debianadmin.com\/remove-unwanted-startup-files-or-services-in-debian.html\" target=\"_blank\">\u8fd9\u91cc<\/a>\uff09\u3002<\/p>\n<p># cat \/etc\/rc2.d\/README #<span style=\"color: #ff0000;\">\u67e5\u770b\/etc\/rc2.d\/\u4e2d\u7684\u8bf4\u660e\u6587\u4ef6README<\/span><br \/>\nThe scripts in this directory are executed each time the system enters this runlevel.<\/p>\n<p>The scripts are all symbolic links whose targets are located in \/etc\/init.d\/ .<\/p>\n<p><span style=\"color: #0000ff;\">To disable a service in this runlevel, rename its script in this directory so that the new name begins with a &#8216;K&#8217; and a two-digit number, and run &#8216;update-rc.d script defaults&#8217; to reorder the scripts according to dependencies.<\/span> A warning about the current runlevels being enabled not matching the LSB header in the init.d script will be printed. To re-enable the service, rename the script back to its original name beginning with &#8216;S&#8217; and run update-rc.d again.<\/p>\n<p>For a more information see <span style=\"color: #ff0000;\"><strong>\/etc\/init.d\/README<\/strong><\/span>.<\/p>\n<p>\u524d\u9762\u63d0\u5230\uff0c\u4e03\u79cd\uff080-6\uff09\u9884\u8bbe\u7684&#8221;\u8fd0\u884c\u7ea7\u522b&#8221;\u5404\u81ea\u6709\u4e00\u4e2a\u76ee\u5f55\uff0c\u5b58\u653e\u9700\u8981\u5f00\u673a\u542f\u52a8\u7684\u7a0b\u5e8f\u3002\u4e0d\u96be\u60f3\u5230\uff0c\u5982\u679c\u591a\u4e2a&#8221;\u8fd0\u884c\u7ea7\u522b&#8221;\u9700\u8981\u542f\u52a8\u540c\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u90a3\u4e48\u8fd9\u4e2a\u7a0b\u5e8f\u7684\u542f\u52a8\u811a\u672c\uff0c\u5c31\u4f1a\u5728\u6bcf\u4e00\u4e2a\u76ee\u5f55\u91cc\u90fd\u6709\u4e00\u4e2a\u62f7\u8d1d\u3002\u8fd9\u6837\u4f1a\u9020\u6210\u7ba1\u7406\u4e0a\u7684\u56f0\u6270\uff1a\u5982\u679c\u8981\u4fee\u6539\u542f\u52a8\u811a\u672c\uff0c\u5c82\u4e0d\u662f\u6bcf\u4e2a\u76ee\u5f55\u90fd\u8981\u6539\u4e00\u904d\uff1f<\/p>\n<p>Linux\u7684\u89e3\u51b3\u529e\u6cd5\uff0c\u5c31\u662f\u4e03\u4e2a \/etc\/rcN.d \u76ee\u5f55\u91cc\u5217\u51fa\u7684\u7a0b\u5e8f\uff0c\u90fd\u8bbe\u4e3a\u94fe\u63a5\u6587\u4ef6\uff0c\u6307\u5411\u53e6\u5916\u4e00\u4e2a\u76ee\u5f55 \/etc\/init.d \uff0c\u771f\u6b63\u7684\u542f\u52a8\u811a\u672c\u90fd\u7edf\u4e00\u653e\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e2d\u3002init\u8fdb\u7a0b\u9010\u4e00\u52a0\u8f7d\u5f00\u673a\u542f\u52a8\u7a0b\u5e8f\uff0c\u5176\u5b9e\u5c31\u662f\u8fd0\u884c\u8fd9\u4e2a\u76ee\u5f55\u91cc\u7684\u542f\u52a8\u811a\u672c\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p># ls -l \/etc\/rc2.d\/<br \/>\nREADME<br \/>\nS20denyhosts -&gt; ..\/init.d\/denyhosts<br \/>\nS20mysql -&gt; ..\/init.d\/mysql<br \/>\nS20nginx -&gt; ..\/init.d\/nginx<br \/>\nS20php-fpm -&gt; ..\/init.d\/php-fpm<br \/>\nS20postfix -&gt; ..\/init.d\/postfix<br \/>\nS20pptpd -&gt; ..\/init.d\/pptpd<br \/>\nS20supervisor -&gt; ..\/init.d\/supervisor<br \/>\nS20sysstat -&gt; ..\/init.d\/sysstat<br \/>\nS20xl2tpd -&gt; ..\/init.d\/xl2tpd<br \/>\nS50rsync -&gt; ..\/init.d\/rsync<br \/>\nS70dns-clean -&gt; ..\/init.d\/dns-clean<br \/>\nS70pppd-dns -&gt; ..\/init.d\/pppd-dns<br \/>\nS75sudo -&gt; ..\/init.d\/sudo<br \/>\nS99digitalocean -&gt; ..\/init.d\/\/rc.digitalocean<br \/>\nS99grub-common -&gt; ..\/init.d\/grub-common<br \/>\nS99ondemand -&gt; ..\/init.d\/ondemand<br \/>\nS99rc.local -&gt; ..\/init.d\/rc.local<\/p>\n<p>\u8fd9\u6837\u505a\u7684\u53e6\u4e00\u4e2a\u597d\u5904\uff0c\u5c31\u662f\u5982\u679c\u4f60\u8981\u624b\u52a8\u5173\u95ed\u6216\u91cd\u542f\u67d0\u4e2a\u8fdb\u7a0b\uff0c\u76f4\u63a5\u5230\u76ee\u5f55 \/etc\/init.d \u4e2d\u5bfb\u627e\u542f\u52a8\u811a\u672c\u5373\u53ef\u3002\u6bd4\u5982\uff0c\u6211\u8981\u91cd\u542fApache\u670d\u52a1\u5668\uff0c\u5c31\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n<p>$ sudo \/etc\/init.d\/apache2 restart<\/p>\n<p>\u6211\u5728Ubuntu\u7cfb\u7edf\u4e2d\u8bbe\u7f6e\u81ea\u5df1\u5b89\u88c5\/\u6307\u5b9a\u7684\u7a0b\u5e8f\u5f00\u673a\u542f\u52a8\u7684\u65b9\u6cd5\u5c31\u662f\uff1a\u628a\u542f\u52a8\u7a0b\u5e8f\u7684\u547d\u4ee4\u6dfb\u52a0\u5230\/etc\/rc.d\/rc.local\u6587\u4ef6\u4e2d\uff0c\u6bd4\u5982\u4e0b\u9762\u7684\u662f\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8L2TP\/IPsec\u7684VPN\u670d\u52a1\u3002<\/p>\n<p># <strong><span style=\"color: #ff0000;\">cat \/etc\/rc.local<\/span><\/strong><\/p>\n<pre class=\"lang:default decode:true \">#!\/bin\/sh -e\n#\n# rc.local\n#\n# This script is executed at the end of each multiuser runlevel.\n# Make sure that the script will \"exit 0\" on success or any other\n# value on error.\n#\n# In order to enable or disable this script just change the execution\n# bits.\n#\n# By default this script does nothing.\n\n#test -e \/etc\/ssh\/ssh_host_dsa_key || dpkg-reconfigure openssh-server\n\niptables --table nat --append POSTROUTING --jump MASQUERADE\n\/etc\/init.d\/ipsec restart\n\/usr\/bin\/l2tpstart\n\/usr\/local\/sbin\/xl2tpd\nexit 0<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5728RedHat\u7cfb\u5217Linux\u4e0b\uff0c\u6bd4\u5982CentOS\uff0c\u8fd8\u6709\u4e00\u79cd\u65b9\u6cd5\u5c31\u662f\u901a\u8fc7chkconfig\u547d\u4ee4\u6dfb\u52a0\u3002<\/p>\n<p>\u521a\u60f3\u8d77\u6765\u5728Ubuntu\u7cfb\u7edf\u4e0b\u8fd8\u53ef\u4ee5\u901a\u8fc7update-rc.d\u8fd9\u4e2a\u547d\u4ee4\u8fdb\u884c\u5f00\u673a\u542f\u52a8\u7a0b\u5e8f\u7684\u8bbe\u7f6e\uff0c\u6bd4\u5982\uff1a<span style=\"color: #ff0000;\"><strong>\u914d\u7f6eMetasploit\u968f\u7cfb\u7edf\u542f\u52a8\u8fd0\u884c<\/strong><\/span>\uff08\u5982\u679c\u4f60\u60f3PostgreSQL\u548cMetasploit\u5728\u5f00\u673a\u65f6\u8fd0\u884c\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528update-rc.d\u542f\u7528\u670d\u52a1\uff09<\/p>\n<pre class=\"lang:default decode:true\">update-rc.d postgresql enable\nupdate-rc.d metasploit enable<\/pre>\n<p><span style=\"color: #ff0000;\"><strong>update-rc.d\u547d\u4ee4\u7684\u4f7f\u7528\u8bf4\u660e<\/strong><\/span>\uff1a<\/p>\n<p>usage: update-rc.d [-n] [-f] &lt;basename&gt; remove<br \/>\nupdate-rc.d [-n] &lt;basename&gt; defaults [NN | SS KK]<br \/>\nupdate-rc.d [-n] &lt;basename&gt; start|stop NN runlvl [runlvl] [&#8230;] .<br \/>\nupdate-rc.d [-n] &lt;basename&gt; disable|enable [S|2|3|4|5]<br \/>\n-n: not really<br \/>\n-f: force<\/p>\n<p>The disable|enable API is not stable and might change in the future.<\/p>\n<h6>\u603b\u7ed3\u4e00\u4e0b\uff0c\u5728Linux\u7cfb\u7edf\u4e0a\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\u7684\u65b9\u6cd5\u6709\uff1a<\/h6>\n<p>1.\u7f16\u8f91\u201c<span style=\"color: #ff0000;\"><strong>\/etc\/rc.local<\/strong><\/span>\u201d\u6587\u4ef6\uff1b<\/p>\n<p>2.\u4f7f\u7528<span style=\"color: #ff0000;\"><strong>update-rc.d<\/strong><\/span>\u547d\u4ee4\uff08\u5728RedHat\u7c7b\u7cfb\u7edf\u4e0a\u6709<span style=\"color: #ff0000;\"><strong>chkconfig<\/strong><\/span>\u547d\u4ee4\uff09<\/p>\n<p>3.\u4f7f\u7528<span style=\"color: #ff0000;\"><strong>rcconf<\/strong><\/span>\u547d\u4ee4\uff08Debian Runlevel Configuration tool\uff0c\u5728RedHat\u7c7b\u7cfb\u7edf\u4e0a\u4e0e\u5176\u5bf9\u5e94\u7684\u5e94\u8be5\u662f<span style=\"color: #ff0000;\"><strong>setup<\/strong><\/span>\/<span style=\"color: #ff0000;\"><strong>ntsysv<\/strong><\/span>\u547d\u4ee4\uff0c\u4f46\u6211\u4e4b\u524d\u5728\u6d4b\u8bd5\u65f6\u53d1\u73b0\uff1a\u4e0d\u662f\u5728\u6bcf\u4e2aRedHat\u7c7b\u7cfb\u7edf\u4e0a\u90fd\u9ed8\u8ba4\u5b89\u88c5\u7684\u6709\u8fd9\u4e24\u4e2a\u547d\u4ee4\uff09<\/p>\n<h6>\u4e00\u4e9b\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/www.debian.org\/doc\/debian-policy\/\" target=\"_blank\">http:\/\/www.debian.org\/doc\/debian-policy\/<\/a><\/li>\n<li><a href=\"https:\/\/help.ubuntu.com\/community\/UbuntuBootupHowto\" target=\"_blank\">UbuntuBootupHowto &#8211; Community Help Wiki<\/a><\/li>\n<li><a href=\"http:\/\/www.ruanyifeng.com\/blog\/2013\/08\/linux_boot_process.html\" target=\"_blank\">Linux \u7684\u542f\u52a8\u6d41\u7a0b &#8211; \u962e\u4e00\u5cf0\u7684\u7f51\u7edc\u65e5\u5fd7<\/a><\/li>\n<li><a href=\"http:\/\/www.debianadmin.com\/manage-linux-init-or-startup-scripts.html\" target=\"_blank\">Manage Linux init or startup scripts<\/a><\/li>\n<li><a href=\"http:\/\/blog.snsgou.com\/post-638.html\" target=\"_blank\">Linux\u542f\u52a8\u8fc7\u7a0b\u8be6\u89e3\uff08inittab\u3001rc.sysinit\u3001rcX.d\u3001rc.local\uff09<\/a><\/li>\n<\/ul>\n<hr \/>\n<p>\u6700\u540e\u9644\u4e0a\u4e00\u4e2a\u4ece\u7f51\u4e0a\u627e\u7684\u6211\u89c9\u5f97\u8bb2\u5f97\u8fd8\u4e0d\u9519\u7684Linux\u542f\u52a8\u6d41\u7a0b\u8bf4\u660e\uff08\u9002\u7528\u4e8eRedHat\u7cfb\u7684Linux\u7cfb\u7edf\uff09\uff1a<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u4e00\u6b65<\/span>\uff0d\uff0d\u52a0\u8f7dBIOS<\/strong><\/p>\n<p style=\"color: #000000;\">\u5f53\u4f60\u6253\u5f00\u8ba1\u7b97\u673a\u7535\u6e90\uff0c\u8ba1\u7b97\u673a\u4f1a\u9996\u5148\u52a0\u8f7dBIOS\u4fe1\u606f\uff0cBIOS\u4fe1\u606f\u662f\u5982\u6b64\u7684\u91cd\u8981\uff0c\u4ee5\u81f3\u4e8e\u8ba1\u7b97\u673a\u5fc5\u987b\u5728\u6700\u5f00\u59cb\u5c31\u627e\u5230\u5b83\u3002\u8fd9\u662f\u56e0\u4e3aBIOS\u4e2d\u5305\u542b\u4e86CPU\u7684\u76f8\u5173\u4fe1\u606f\u3001\u8bbe\u5907\u542f\u52a8\u987a\u5e8f\u4fe1\u606f\u3001\u786c\u76d8\u4fe1\u606f\u3001\u5185\u5b58\u4fe1\u606f\u3001\u65f6\u949f\u4fe1\u606f\u3001PnP\u7279\u6027\u7b49\u7b49\u3002\u5728\u6b64\u4e4b\u540e\uff0c\u8ba1\u7b97\u673a\u5fc3\u91cc\u5c31\u6709\u8c31\u4e86\uff0c\u77e5\u9053\u5e94\u8be5\u53bb\u8bfb\u53d6\u54ea\u4e2a\u786c\u4ef6\u8bbe\u5907\u4e86\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u4e8c\u6b65<\/span>\uff0d\uff0d\u8bfb\u53d6MBR<\/strong><\/p>\n<p style=\"color: #000000;\">\u4f17\u6240\u5468\u77e5\uff0c\u786c\u76d8\u4e0a\u7b2c0\u78c1\u9053\u7b2c\u4e00\u4e2a\u6247\u533a\u88ab\u79f0\u4e3aMBR\uff0c\u4e5f\u5c31\u662f<span style=\"color: #0000ff;\">Master Boot Record<\/span>\uff0c\u5373<span style=\"color: #0000ff;\">\u4e3b\u5f15\u5bfc\u8bb0\u5f55<\/span>\uff0c\u5b83\u7684\u5927\u5c0f\u662f512\u5b57\u8282\uff0c\u522b\u770b\u5730\u65b9\u4e0d\u5927\uff0c\u53ef\u91cc\u9762\u5374\u5b58\u653e\u4e86\u9884\u542f\u52a8\u4fe1\u606f\u3001\u5206\u533a\u8868\u4fe1\u606f\u3002<\/p>\n<p style=\"color: #000000;\">\u7cfb\u7edf\u627e\u5230BIOS\u6240\u6307\u5b9a\u7684\u786c\u76d8\u7684MBR\u540e\uff0c\u5c31\u4f1a\u5c06\u5176\u590d\u5236\u52300x7c00\u5730\u5740\u6240\u5728\u7684\u7269\u7406\u5185\u5b58\u4e2d\u3002\u5176\u5b9e\u88ab\u590d\u5236\u5230\u7269\u7406\u5185\u5b58\u7684\u5185\u5bb9\u5c31\u662fBoot Loader\uff0c\u800c\u5177\u4f53\u5230\u4f60\u7684\u7535\u8111\uff0c\u90a3\u5c31\u662flilo\u6216\u8005grub\u4e86\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u4e09\u6b65<\/span>\uff0d\uff0dBoot Loader \/ Grub<\/strong><\/p>\n<p style=\"color: #000000;\">Boot Loader \u5c31\u662f\u5728\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u8fd0\u884c\u4e4b\u524d\u8fd0\u884c\u7684\u4e00\u6bb5\u5c0f\u7a0b\u5e8f\u3002\u901a\u8fc7\u8fd9\u6bb5\u5c0f\u7a0b\u5e8f\uff0c\u6211\u4eec\u53ef\u4ee5\u521d\u59cb\u5316\u786c\u4ef6\u8bbe\u5907\u3001\u5efa\u7acb\u5185\u5b58\u7a7a\u95f4\u7684\u6620\u5c04\u56fe\uff0c\u4ece\u800c\u5c06\u7cfb\u7edf\u7684\u8f6f\u786c\u4ef6\u73af\u5883\u5e26\u5230\u4e00\u4e2a\u5408\u9002\u7684\u72b6\u6001\uff0c\u4ee5\u4fbf\u4e3a\u6700\u7ec8\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u505a\u597d\u4e00\u5207\u51c6\u5907\u3002<\/p>\n<p style=\"color: #000000;\">Boot Loader\u6709\u82e5\u5e72\u79cd\uff0c\u5176\u4e2dGrub\u3001Lilo\u548cspfdisk\u662f\u5e38\u89c1\u7684Loader\u3002<\/p>\n<p style=\"color: #000000;\">\u6211\u4eec\u4ee5Grub\u4e3a\u4f8b\u6765\u8bb2\u89e3\u5427\uff0c\u6bd5\u7adf\u7528lilo\u548cspfdisk\u7684\u4eba\u5e76\u4e0d\u591a\u3002<\/p>\n<p style=\"color: #000000;\">\u7cfb\u7edf\u8bfb\u53d6\u5185\u5b58\u4e2d\u7684grub\u914d\u7f6e\u4fe1\u606f\uff08\u4e00\u822c\u4e3amenu.lst\u6216grub.lst\uff09\uff0c\u5e76\u4f9d\u7167\u6b64\u914d\u7f6e\u4fe1\u606f\u6765\u542f\u52a8\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u56db\u6b65<\/span>\uff0d\uff0d\u52a0\u8f7d\u5185\u6838<\/strong><\/p>\n<p style=\"color: #000000;\">\u6839\u636egrub\u8bbe\u5b9a\u7684\u5185\u6838\u6620\u50cf\u6240\u5728\u8def\u5f84\uff0c\u7cfb\u7edf\u8bfb\u53d6\u5185\u5b58\u6620\u50cf\uff0c\u5e76\u8fdb\u884c\u89e3\u538b\u7f29\u64cd\u4f5c\u3002\u6b64\u65f6\uff0c\u5c4f\u5e55\u4e00\u822c\u4f1a\u8f93\u51fa\u201cUncompressing Linux\u201d\u7684\u63d0\u793a\u3002\u5f53\u89e3\u538b\u7f29\u5185\u6838\u5b8c\u6210\u540e\uff0c\u5c4f\u5e55\u8f93\u51fa\u201cOK, booting the kernel\u201d\u3002<\/p>\n<p style=\"color: #000000;\">\u7cfb\u7edf\u5c06\u89e3\u538b\u540e\u7684\u5185\u6838\u653e\u7f6e\u5728\u5185\u5b58\u4e4b\u4e2d\uff0c\u5e76\u8c03\u7528start_kernel()\u51fd\u6570\u6765\u542f\u52a8\u4e00\u7cfb\u5217\u7684\u521d\u59cb\u5316\u51fd\u6570\u5e76\u521d\u59cb\u5316\u5404\u79cd\u8bbe\u5907\uff0c\u5b8c\u6210Linux\u6838\u5fc3\u73af\u5883\u7684\u5efa\u7acb\u3002\u81f3\u6b64\uff0cLinux\u5185\u6838\u5df2\u7ecf\u5efa\u7acb\u8d77\u6765\u4e86\uff0c\u57fa\u4e8eLinux\u7684\u7a0b\u5e8f\u5e94\u8be5\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\u4e86\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u4e94\u6b65<\/span>\uff0d\uff0d\u7528\u6237\u5c42init\u4f9d\u636einittab\u6587\u4ef6\u6765\u8bbe\u5b9a\u8fd0\u884c\u7b49\u7ea7<\/strong><\/p>\n<p style=\"color: #000000;\">\u5185\u6838\u88ab\u52a0\u8f7d\u540e\uff0c\u7b2c\u4e00\u4e2a\u8fd0\u884c\u7684\u7a0b\u5e8f\u4fbf\u662f<span style=\"color: #0000ff;\">\/sbin\/init<\/span>\uff0c\u8be5\u6587\u4ef6\u4f1a\u8bfb\u53d6<span style=\"color: #0000ff;\">\/etc\/inittab<\/span>\u6587\u4ef6\uff0c\u5e76\u4f9d\u636e\u6b64\u6587\u4ef6\u6765\u8fdb\u884c\u521d\u59cb\u5316\u5de5\u4f5c\u3002<\/p>\n<p style=\"color: #000000;\">\u5176\u5b9e\/etc\/inittab\u6587\u4ef6\u6700\u4e3b\u8981\u7684\u4f5c\u7528\u5c31\u662f\u8bbe\u5b9aLinux\u7684\u8fd0\u884c\u7b49\u7ea7\uff0c\u5176\u8bbe\u5b9a\u5f62\u5f0f\u662f\u201c<span style=\"color: #0000ff;\">\uff1aid:5:initdefault:<\/span>\u201d\uff0c\u8fd9\u5c31\u8868\u660eLinux\u9700\u8981\u8fd0\u884c\u5728\u7b49\u7ea75\u4e0a\u3002Linux\u7684\u8fd0\u884c\u7b49\u7ea7\u8bbe\u5b9a\u5982\u4e0b\uff1a<\/p>\n<p style=\"color: #000000;\">0\uff1a\u5173\u673a<\/p>\n<p style=\"color: #000000;\">1\uff1a\u5355\u7528\u6237\u6a21\u5f0f\uff08\u5355\u7528\u6237\u3001\u65e0\u7f51\u7edc\uff09<\/p>\n<p style=\"color: #000000;\">2\uff1a\u65e0\u7f51\u7edc\u652f\u6301\u7684\u591a\u7528\u6237\u6a21\u5f0f\uff08\u591a\u7528\u6237\u3001\u65e0\u7f51\u7edc\uff09<\/p>\n<p style=\"color: #000000;\"><span style=\"color: #0000ff;\">3<\/span>\uff1a\u6709\u7f51\u7edc\u652f\u6301\u7684\u591a\u7528\u6237\u6a21\u5f0f\uff08\u591a\u7528\u6237\u3001\u6709\u7f51\u7edc\uff09<\/p>\n<p style=\"color: #000000;\">4\uff1a\u4fdd\u7559\uff0c\u672a\u4f7f\u7528<\/p>\n<p style=\"color: #000000;\"><span style=\"color: #0000ff;\">5<\/span>\uff1a\u6709\u7f51\u7edc\u652f\u6301\u6709X-Window\u652f\u6301\u7684\u591a\u7528\u6237\u6a21\u5f0f\uff08\u591a\u7528\u6237\u3001\u6709\u7f51\u7edc\u3001X-Window\u754c\u9762\uff09<\/p>\n<p style=\"color: #000000;\">6\uff1a\u91cd\u65b0\u5f15\u5bfc\u7cfb\u7edf\uff0c\u5373\u91cd\u542f<\/p>\n<p style=\"color: #000000;\">\u5173\u4e8e\/etc\/inittab\u6587\u4ef6\u7684\u5b66\u95ee\uff0c\u5176\u5b9e\u8fd8\u6709\u5f88\u591a\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u516d\u6b65<\/span>\uff0d\uff0dinit\u8fdb\u7a0b\u6267\u884crc.sysinit<\/strong><\/p>\n<p style=\"color: #000000;\">\u5728\u8bbe\u5b9a\u4e86\u8fd0\u884c\u7b49\u7ea7\u540e\uff0cLinux\u7cfb\u7edf\u6267\u884c\u7684\u7b2c\u4e00\u4e2a\u7528\u6237\u5c42\u6587\u4ef6\u5c31\u662f<span style=\"color: #0000ff;\">\/etc\/rc.d\/rc.sysinit<\/span>\u811a\u672c\u7a0b\u5e8f\uff0c\u5b83\u505a\u7684\u5de5\u4f5c\u975e\u5e38\u591a\uff0c\u5305\u62ec\u8bbe\u5b9aPATH\u3001\u8bbe\u5b9a\u7f51\u7edc\u914d\u7f6e\uff08<span style=\"color: #0000ff;\">\/etc\/sysconfig\/network<\/span>\uff09\u3001\u542f\u52a8swap\u5206\u533a\u3001\u8bbe\u5b9a\/proc\u7b49\u7b49\u3002\u5982\u679c\u4f60\u6709\u5174\u8da3\uff0c\u53ef\u4ee5\u5230\/etc\/rc.d\u4e2d\u67e5\u770b\u4e00\u4e0brc.sysinit\u6587\u4ef6\uff0c\u91cc\u9762\u7684\u811a\u672c\u591f\u4f60\u770b\u51e0\u5929\u7684\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u4e03\u6b65<\/span>\uff0d\uff0d\u542f\u52a8\u5185\u6838\u6a21\u5757<\/strong><\/p>\n<p style=\"color: #000000;\">\u5177\u4f53\u662f\u4f9d\u636e\/etc\/modules.conf\u6587\u4ef6\u6216\/etc\/modules.d\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u6765\u88c5\u8f7d\u5185\u6838\u6a21\u5757\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u516b\u6b65<\/span>\uff0d\uff0d\u6267\u884c\u4e0d\u540c\u8fd0\u884c\u7ea7\u522b\u7684\u811a\u672c\u7a0b\u5e8f\uff08\/etc\/rc.d\/rc $RUNLEVEL \u00a0 \u00a0# $RUNLEVEL\u4e3a\u7f3a\u7701\u7684\u8fd0\u884c\u6a21\u5f0f\u00a0\uff09<\/strong><\/p>\n<p style=\"color: #000000;\">\u6839\u636e\u8fd0\u884c\u7ea7\u522b\u7684\u4e0d\u540c\uff0c\u7cfb\u7edf\u4f1a\u8fd0\u884crc0.d\u5230rc6.d\u4e2d\u7684\u76f8\u5e94\u7684\u811a\u672c\u7a0b\u5e8f\uff0c\u6765\u5b8c\u6210\u76f8\u5e94\u7684\u521d\u59cb\u5316\u5de5\u4f5c\u548c\u542f\u52a8\u76f8\u5e94\u7684\u670d\u52a1\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u4e5d\u6b65<\/span>\uff0d\uff0d\u6267\u884c\/etc\/rc.d\/rc.local<\/strong><\/p>\n<p style=\"color: #000000;\">\u4f60\u5982\u679c\u6253\u5f00\u4e86\u6b64\u6587\u4ef6\uff0c\u91cc\u9762\u6709\u4e00\u53e5\u8bdd\uff0c\u8bfb\u8fc7\u4e4b\u540e\uff0c\u4f60\u5c31\u4f1a\u5bf9\u6b64\u547d\u4ee4\u7684\u4f5c\u7528\u4e00\u76ee\u4e86\u7136\uff1a<\/p>\n<blockquote style=\"color: #000000;\"><p># This script will be executed *after* all the other init scripts.<br \/>\n# You can put your own initialization stuff in here if you don\u2019t<br \/>\n# want to do the full Sys V style init stuff.<\/p><\/blockquote>\n<p style=\"color: #000000;\">rc.local\u5c31\u662f\u5728\u4e00\u5207\u521d\u59cb\u5316\u5de5\u4f5c\u540e\uff0cLinux\u7559\u7ed9\u7528\u6237\u8fdb\u884c\u4e2a\u6027\u5316\u7684\u5730\u65b9\u3002\u4f60\u53ef\u4ee5\u628a\u4f60\u60f3\u8bbe\u7f6e\u548c\u542f\u52a8\u7684\u4e1c\u897f\u653e\u5230\u8fd9\u91cc\u3002<\/p>\n<p style=\"color: #000000;\"><strong>\u542f\u52a8<span style=\"color: #ff0000;\">\u7b2c\u5341\u6b65<\/span>\uff0d\uff0d\u6267\u884c\/bin\/login\u7a0b\u5e8f\uff0c\u8fdb\u5165\u767b\u5f55\u72b6\u6001<\/strong><\/p>\n<p style=\"color: #000000;\">\u6b64\u65f6\uff0c\u7cfb\u7edf\u5df2\u7ecf\u8fdb\u5165\u5230\u4e86\u7b49\u5f85\u7528\u6237\u8f93\u5165username\u548cpassword\u7684\u65f6\u5019\u4e86\uff0c\u4f60\u5df2\u7ecf\u53ef\u4ee5\u7528\u81ea\u5df1\u7684\u5e10\u53f7\u767b\u5165\u7cfb\u7edf\u4e86\u3002<\/p>\n<p style=\"color: #000000;\">===<\/p>\n<p style=\"color: #000000;\">\u672c\u6587\u53c2\u8003\u4e86\u5982\u4e0b\u6587\u7ae0\uff0c\u7efc\u5408\u63d0\u70bc\u800c\u6210\uff1a<\/p>\n<p style=\"color: #000000;\"><a style=\"color: #4477aa;\" href=\"http:\/\/bbs.chinaunix.net\/thread-835918-1-1.html\" target=\"_blank\">http:\/\/bbs.chinaunix.net\/thread-835918-1-1.html<\/a><\/p>\n<p style=\"color: #000000;\"><a style=\"color: #4477aa;\" href=\"http:\/\/hi.baidu.com\/fembed\/blog\/item\/b9f0881f51145866f624e4be.html\" target=\"_blank\">http:\/\/hi.baidu.com\/fembed\/blog\/item\/b9f0881f51145866f624e4be.html<\/a><\/p>\n<p style=\"color: #000000;\"><a style=\"color: #4477aa;\" href=\"http:\/\/baike.baidu.com\/view\/9485.htm\" target=\"_blank\">http:\/\/baike.baidu.com\/view\/9485.htm<\/a><\/p>\n<hr style=\"color: #000000;\" \/>\n<p style=\"color: #000000;\">\u542f\u52a8\u8fc7\u7a0b\u4e2d\uff0c\u7528\u6237\u6bd4\u8f83\u5173\u5fc3\u7684\u51e0\u4e2a\u914d\u7f6e\u6587\u4ef6\u6709\uff1a<\/p>\n<p style=\"color: #000000;\">&#8211;&gt;\u00a0<strong>inittab<\/strong>\u00a0\uff08\/etc\/inittab\uff09<\/p>\n<p style=\"color: #000000;\">&#8211;&gt;\u00a0<strong>rc.sysinit\u00a0<\/strong>\uff08\/etc\/rc.d\/rc.sysinit\uff09<\/p>\n<p style=\"color: #000000;\">&#8211;&gt;<strong>\u00a0rc $RUNLEVEL \u8c03\u7528rcX.d \u6587\u4ef6\u5939\u91cc\u7684\u6587\u4ef6<\/strong>\uff08\/etc\/rc.d\/rc\uff09\uff08\u4e00\u4e9b\u8f6f\u4ef6\u7684\u670d\u52a1\u4f1a\u6ce8\u518c\u5230<strong>rcX.d \u6587\u4ef6\u5939<\/strong>\u91cc\uff09<\/p>\n<p style=\"color: #000000;\">&#8211;&gt;\u00a0<strong>rc.local\u00a0<\/strong>\uff08\/etc\/rc.d\/rc.local\uff09\uff08<span style=\"color: #0000ff;\">rc.local\u5c31\u662f\u5728\u4e00\u5207\u521d\u59cb\u5316\u5de5\u4f5c\u540e\uff0cLinux\u7559\u7ed9\u7528\u6237\u8fdb\u884c\u4e2a\u6027\u5316\u7684\u5730\u65b9\uff0c\u4f60\u53ef\u4ee5\u628a\u4f60\u60f3\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\u7684\u5185\u5bb9\u653e\u5230\u8fd9\u91cc\uff01\uff09<\/span><\/p>\n<p style=\"color: #000000;\"><span style=\"color: #0000ff;\">\u5728Ubuntu\u7cfb\u7edf\u4e0arc.local\u6587\u4ef6\u4f4d\u4e8e\uff1a\/etc\/rc.local\uff0c\u5e76\u4e14\uff1a<\/span><\/p>\n<p style=\"color: #000000;\"><span style=\"color: #0000ff;\"># rc.local<br \/>\n#<br \/>\n# This script is executed <strong><span style=\"color: #ff0000;\">at the end of each multiuser runlevel<\/span><\/strong>.(<strong>\u8fd0\u884c\u7ea7\u522b2-5<\/strong>\uff0c\u5728\u5404\u4e2a\u53d1\u884c\u7248\u4e2d\u7684\u8bf4\u660e\/\u8bbe\u7f6e\u90fd\u4e0d\u592a\u4e00\u6837\uff0c<strong>\u5bf9\u4e8eDebian\u6765\u8bf4\uff0c\u90fd\u662f\u540c\u6837\u7684\u591a\u7528\u6237\u6a21\u5f0f\uff08\u4e5f\u5c31\u662f\u6b63\u5e38\u6a21\u5f0f\uff09<\/strong>\u3002) Make sure that the script will &#8220;exit 0&#8221; on success or any other value on error.<br \/>\n# In order to enable or disable this script just change the execution bits.<br \/>\n# By default this script does nothing.<br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u5c31\u6709\u4e86\u89e3\u8fc7Linux\u7cfb\u7edf\u7684\u542f\u52a8\u6d41\u7a0b\u65b9\u9762\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5728\u6709\u4e9b\u5173\u952e\u65f6\u5019\u6211\u5374\u5fd8\u4e86o(\u256f\u25a1\u2570)o\uff0c\u770b\u6765\u8fd8\u662f\u5f97\u5728blo [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11],"tags":[30,31,284],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","tag-linux","tag-rc-local","tag-runlevel"],"views":6079,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=833"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}