{"id":240566,"date":"2022-04-28T09:55:31","date_gmt":"2022-04-28T01:55:31","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=240566"},"modified":"2022-04-19T11:52:26","modified_gmt":"2022-04-19T03:52:26","slug":"explain-linux-chkconfig","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/explain-linux-chkconfig.html","title":{"rendered":"\u8be6\u89e3Linux chkconfig\u547d\u4ee4"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | chkconfig\u547d\u4ee4\u4e3b\u8981\u7528\u6765\u66f4\u65b0\uff08\u542f\u52a8\u6216\u505c\u6b62\uff09\u548c\u67e5\u8be2\u7cfb\u7edf\u670d\u52a1\u7684\u8fd0\u884c\u7ea7\u4fe1\u606f\u3002\u8c28\u8bb0chkconfig\u4e0d\u662f\u7acb\u5373\u81ea\u52a8\u7981\u6b62\u6216\u6fc0\u6d3b\u4e00\u4e2a\u670d\u52a1\uff0c\u5b83\u53ea\u662f\u7b80\u5355\u7684\u6539\u53d8\u4e86\u7b26\u53f7\u8fde\u63a5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4f7f\u7528\u8bed\u6cd5\uff1a<\/strong><\/div>\n chkconfig [--add][--del][--list][\u7cfb\u7edf\u670d\u52a1] \u6216 chkconfig [--level <\u7b49\u7ea7\u4ee3\u53f7>][\u7cfb\u7edf\u670d\u52a1][on\/off\/reset]<\/p>\n chkconfig\u5728\u6ca1\u6709\u53c2\u6570\u8fd0\u884c\u65f6\uff0c\u663e\u793a\u7528\u6cd5\u3002\u5982\u679c\u52a0\u4e0a\u670d\u52a1\u540d\uff0c\u90a3\u4e48\u5c31\u68c0\u67e5\u8fd9\u4e2a\u670d\u52a1\u662f\u5426\u5728\u5f53\u524d\u8fd0\u884c\u7ea7\u542f\u52a8\u3002\u5982\u679c\u662f\uff0c\u8fd4\u56detrue\uff0c\u5426\u5219\u8fd4\u56defalse\u3002\u5982\u679c\u5728\u670d\u52a1\u540d\u540e\u9762\u6307\u5b9a\u4e86on\uff0coff\u6216\u8005reset\uff0c\u90a3\u4e48chkconfi \u4f1a\u6539\u53d8\u6307\u5b9a\u670d\u52a1\u7684\u542f\u52a8\u4fe1\u606f\u3002on\u548coff\u5206\u522b\u6307\u670d\u52a1\u88ab\u542f\u52a8\u548c\u505c\u6b62\uff0creset\u6307\u91cd\u7f6e\u670d\u52a1\u7684\u542f\u52a8\u4fe1\u606f\uff0c\u65e0\u8bba\u6709\u95ee\u9898\u7684\u521d\u59cb\u5316\u811a\u672c\u6307\u5b9a\u4e86\u4ec0\u4e48\u3002on\u548coff\u5f00\u5173\uff0c\u7cfb\u7edf\u9ed8\u8ba4\u53ea\u5bf9\u8fd0\u884c\u7ea73\uff0c4\uff0c5\u6709\u6548\uff0c\u4f46\u662freset\u53ef\u4ee5\u5bf9\u6240\u6709\u8fd0\u884c\u7ea7\u6709\u6548\u3002<\/p>\n \u53c2\u6570\u7528\u6cd5\uff1a<\/strong><\/div>\n --add \u3000\u589e\u52a0\u6240\u6307\u5b9a\u7684\u7cfb\u7edf\u670d\u52a1\uff0c\u8ba9chkconfig\u6307\u4ee4\u5f97\u4ee5\u7ba1\u7406\u5b83\uff0c\u5e76\u540c\u65f6\u5728\u7cfb\u7edf\u542f\u52a8\u7684\u53d9\u8ff0\u6587\u4ef6\u5185\u589e\u52a0\u76f8\u5173\u6570\u636e\u3002 chkconfig --list [name]\uff1a\u663e\u793a\u6240\u6709\u8fd0\u884c\u7ea7\u7cfb\u7edf\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\u4fe1\u606f\uff08on\u6216off\uff09\u3002\u5982\u679c\u6307\u5b9a\u4e86name\uff0c\u90a3\u4e48\u53ea\u663e\u793a\u6307\u5b9a\u7684\u670d\u52a1\u5728\u4e0d\u540c\u8fd0\u884c\u7ea7\u7684\u72b6\u6001\u3002 \u8fd0\u884c\u7ea7\u6587\u4ef6\uff1a<\/strong><\/div>\n \u6bcf\u4e2a\u88abchkconfig\u7ba1\u7406\u7684\u670d\u52a1\u9700\u8981\u5728\u5bf9\u5e94\u7684init.d\u4e0b\u7684\u811a\u672c\u52a0\u4e0a\u4e24\u884c\u6216\u8005\u66f4\u591a\u884c\u7684\u6ce8\u91ca\u3002\u7b2c\u4e00\u884c\u544a\u8bc9chkconfig\u7f3a\u7701\u542f\u52a8\u7684\u8fd0\u884c\u7ea7\u4ee5\u53ca\u542f\u52a8\u548c\u505c\u6b62\u7684\u4f18\u5148\u7ea7\u3002\u5982\u679c\u67d0\u670d\u52a1\u7f3a\u7701\u4e0d\u5728\u4efb\u4f55\u8fd0\u884c\u7ea7\u542f\u52a8\uff0c\u90a3\u4e48\u4f7f\u7528 - \u4ee3\u66ff\u8fd0\u884c\u7ea7\u3002\u7b2c\u4e8c\u884c\u5bf9\u670d\u52a1\u8fdb\u884c\u63cf\u8ff0\uff0c\u53ef\u4ee5\u7528\\ \u8de8\u884c\u6ce8\u91ca\u3002 # chkconfig: 2345 20 80\r\n# description: Saves and restores system entropy pool for \\\r\n# higher quality random number generation.<\/pre>\n |