{"id":3425,"date":"2012-09-09T16:07:51","date_gmt":"2012-09-09T08:07:51","guid":{"rendered":"http:\/\/jpuyy.com\/?p=3425"},"modified":"2012-12-12T16:51:23","modified_gmt":"2012-12-12T08:51:23","slug":"linux-chkconfig","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=3425","title":{"rendered":"linux\u5de5\u5177\u4e4bchkconfig"},"content":{"rendered":"<p>linux\u7684\u542f\u52a8\u7ea7\u522b\uff1a<\/p>\n<pre>#\u00a0\u00a0 0 - halt (Do NOT set initdefault to this) \r\n#\u00a0\u00a0 1 - Single user mode \r\n#\u00a0\u00a0 2 - Multiuser, without NFS (The same as 3, if you do not have networking) \r\n#\u00a0\u00a0 3 - Full multiuser mode \r\n#\u00a0\u00a0 4 - unused \r\n#\u00a0\u00a0 5 - X11 \r\n#\u00a0\u00a0 6 - reboot (Do NOT set initdefault to this)<\/pre>\n<div>\u6211\u4eec\u5e73\u65f6\u7528\u7684\u670d\u52a1\u5668\u5c31\u662f3\u4e86\uff0c\u684c\u9762\u5c31\u75285\u3002<\/div>\n<div><\/div>\n<div>chkconfig\u53ef\u4ee5\u66f4\u6539\u67d0\u670d\u52a1\u7684\u542f\u52a8\u7ea7\u522b\uff0c\u5728ubuntu\u9ed8\u8ba4\u662f\u6ca1\u6709\u7684\uff0c\u9700\u8981\u624b\u52a8\u5b89\u88c5\u4e00\u4e0b\u3002<\/div>\n<div><\/div>\n<div>\u67e5\u770b\u6240\u6709\u5f00\u673a\u542f\u52a8\u7684\u670d\u52a1<\/div>\n<pre>chkconfig --list<\/pre>\n<div>\u8bbe\u7f6eiptables\u57282345\u7ea7\u522b\u5f00\u673a\u542f\u52a8<\/div>\n<pre>chkconfig --level 2345 iptables on<\/pre>\n<div>\u589e\u52a0httpd\u670d\u52a1<\/div>\n<pre>chkconfig --add httpd<\/pre>\n<div>\u5220\u9664httpd\u670d\u52a1<\/div>\n<div>\n<pre> chkconfig --del httpd<\/pre>\n<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>linux\u7684\u542f\u52a8\u7ea7\u522b\uff1a #\u00a0\u00a0 0 &#8211; halt (Do NOT set initdefault to this) #\u00a0\u00a0 1 &#8211; Single user mode #\u00a0\u00a0 2 &#8211; Multiuser, without NFS (The same as 3, if you do not have networking) #\u00a0\u00a0 3 &#8211; Full multiuser mode #\u00a0\u00a0 4 &#8211; unused #\u00a0\u00a0 5 &#8211; X11 #\u00a0\u00a0 6 &#8211; reboot (Do NOT set initdefault [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-3425","post","type-post","status-publish","format-standard","hentry","category-life"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/3425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3425"}],"version-history":[{"count":7,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/3425\/revisions"}],"predecessor-version":[{"id":4444,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/3425\/revisions\/4444"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}