{"id":18374,"date":"2014-07-22T06:17:12","date_gmt":"2014-07-21T22:17:12","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/07\/22\/centos-7-x-%e6%9b%b4%e6%94%b9%e9%a0%90%e8%a8%ad%e7%9a%84%e5%9f%b7%e8%a1%8c%e5%b1%a4%e7%b4%9a\/"},"modified":"2014-07-22T06:17:12","modified_gmt":"2014-07-21T22:17:12","slug":"centos-7-x-%e6%9b%b4%e6%94%b9%e9%a0%90%e8%a8%ad%e7%9a%84%e5%9f%b7%e8%a1%8c%e5%b1%a4%e7%b4%9a","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/07\/22\/centos-7-x-%e6%9b%b4%e6%94%b9%e9%a0%90%e8%a8%ad%e7%9a%84%e5%9f%b7%e8%a1%8c%e5%b1%a4%e7%b4%9a\/","title":{"rendered":"CentOS 7.x \u66f4\u6539\u9810\u8a2d\u7684\u57f7\u884c\u5c64\u7d1a"},"content":{"rendered":"<p>\u4e4b\u524d\u7684 CentOS Linux \u8981\u66f4\u6539\u9810\u8a2d\u7684\u57f7\u884c\u5c64\u7d1a\uff0c\u662f\u5728 \/etc\/inittab \u4e2d\u8a2d\u5b9a<br \/>\u4f46\u5728 CentOS 7.x \u4e2d\u6709\u7a0d\u8a31\u7684\u4e0d\u540c<br \/># <span style=\"color: #ff0000;\">cat \/etc\/inittab<\/span><br \/><span style=\"color: #0000ff;\"># inittab is no longer used when using systemd.<\/span><br \/><span style=\"color: #0000ff;\">#<\/span><br \/><span style=\"color: #0000ff;\"># ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.<\/span><br \/><span style=\"color: #0000ff;\">#<\/span><br \/><span style=\"color: #0000ff;\"># Ctrl-Alt-Delete is handled by \/etc\/systemd\/system\/ctrl-alt-del.target<\/span><br \/><span style=\"color: #0000ff;\">#<\/span><br \/><span style=\"color: #0000ff;\"># systemd uses &#8216;targets&#8217; instead of runlevels. By default, there are two main targets:<\/span><br \/><span style=\"color: #0000ff;\">#<\/span><br \/><span style=\"color: #0000ff;\"># multi-user.target: analogous to runlevel 3<\/span><br \/><span style=\"color: #0000ff;\"># graphical.target: analogous to runlevel 5<\/span><br \/><span style=\"color: #0000ff;\">#<\/span><br \/><span style=\"color: #0000ff;\"># To set a default target, run:<\/span><br \/><span style=\"color: #0000ff;\">#<\/span><br \/><span style=\"color: #0000ff;\"># ln -sf \/lib\/systemd\/system\/&lt;target name&gt;.target \/etc\/systemd\/system\/default.target<\/span><br \/><span style=\"color: #0000ff;\">#<\/span><br \/>[@more@]\u76ee\u524d\u7684\u57f7\u884c\u5c64\u7d1a<br \/># <span style=\"color: #ff0000;\">ll \/etc\/systemd\/system\/default.target<\/span><br \/><span style=\"color: #0000ff;\">lrwxrwxrwx. 1 root root 37\u00a0 7\u6708 10 19:24 \/etc\/systemd\/system\/default.target -&gt; \/lib\/systemd\/system\/multi-user.target<\/span><\/p>\n<p># <span style=\"color: #ff0000;\">ll \/lib\/systemd\/system\/multi-user.target<\/span><br \/><span style=\"color: #0000ff;\">-rw-r&#8211;r&#8211;. 1 root root 524\u00a0 6\u6708 10 13:35 \/lib\/systemd\/system\/multi-user.target<\/span><\/p>\n<p>\u6539\u6210\u5716\u5f62\u6a21\u5f0f<br \/>#<span style=\"color: #ff0000;\"> ln -fs \/lib\/systemd\/system\/graphical.target \/etc\/systemd\/system\/default.target <\/span><\/p>\n<p># <span style=\"color: #ff0000;\">ll \/etc\/systemd\/system\/default.target<\/span><br \/><span style=\"color: #0000ff;\">lrwxrwxrwx. 1 root root 37\u00a0 7\u6708 12 19:24 \/etc\/systemd\/system\/default.target -&gt; \/lib\/systemd\/system\/graphical.target<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u7684 CentOS Linux \u8981\u66f4\u6539\u9810\u8a2d\u7684\u57f7\u884c\u5c64\u7d1a\uff0c\u662f\u5728 \/etc\/inittab \u4e2d\u8a2d\u5b9a\u4f46\u5728 CentO &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/07\/22\/centos-7-x-%e6%9b%b4%e6%94%b9%e9%a0%90%e8%a8%ad%e7%9a%84%e5%9f%b7%e8%a1%8c%e5%b1%a4%e7%b4%9a\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008CentOS 7.x \u66f4\u6539\u9810\u8a2d\u7684\u57f7\u884c\u5c64\u7d1a\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-18374","post","type-post","status-publish","format-standard","hentry","category-c-78462"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["511921"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18374"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18374"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18374\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}