{"id":18765,"date":"2015-02-16T05:57:02","date_gmt":"2015-02-15T21:57:02","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2015\/02\/16\/centos-7-%e6%8f%90%e7%a4%ba%e5%8f%af%e4%bb%a5%e6%9b%b4%e6%96%b0%e7%9a%84%e5%a5%97%e4%bb%b6\/"},"modified":"2015-02-16T05:57:02","modified_gmt":"2015-02-15T21:57:02","slug":"centos-7-%e6%8f%90%e7%a4%ba%e5%8f%af%e4%bb%a5%e6%9b%b4%e6%96%b0%e7%9a%84%e5%a5%97%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2015\/02\/16\/centos-7-%e6%8f%90%e7%a4%ba%e5%8f%af%e4%bb%a5%e6%9b%b4%e6%96%b0%e7%9a%84%e5%a5%97%e4%bb%b6\/","title":{"rendered":"CentOS 7 &#8211; \u63d0\u793a\u53ef\u4ee5\u66f4\u65b0\u7684\u5957\u4ef6"},"content":{"rendered":"<p>1. \u53ef\u4ee5\u4f7f\u7528 yum info updates \u6307\u4ee4\u4f86\u67e5\u8a62\u53ef\u4ee5\u53ef\u5347\u7d1a\u7684\u5957\u4ef6<br \/># <span style=\"color: #ff0000;\">yum info updates | grep Name | awk &#8216;{print $3}&#8217;<\/span><br \/><span style=\"color: #0000ff;\">jasper-libs<\/span><br \/>\u6216\u662f<br \/>[@more@]2. \u4f7f\u7528 yum-cron<br \/># <span style=\"color: #ff0000;\">yum install yum-cron<\/span><\/p>\n<p>3. \u4fee\u6539\u8a2d\u5b9a\u6a94<br \/># <span style=\"color: #ff0000;\">vim \/etc\/yum\/yum-cron.conf<\/span><br \/><span style=\"color: #0000ff;\"># Whether a message should be emitted when updates are available,<\/span><br \/><span style=\"color: #0000ff;\"># were downloaded, or applied.<\/span><br \/><span style=\"color: #0000ff;\">update_messages = yes<\/span><\/p>\n<p><span style=\"color: #0000ff;\"># Whether updates should be downloaded when they are available.<\/span><br \/><span style=\"color: #0000ff;\">download_updates = no<\/span><\/p>\n<p><span style=\"color: #0000ff;\"># Whether updates should be applied when they are available.\u00a0 Note<\/span><br \/><span style=\"color: #0000ff;\"># that download_updates must also be yes for the update to be applied.<\/span><br \/><span style=\"color: #0000ff;\">apply_updates = no<\/span><\/p>\n<p>4. \u555f\u52d5 yum-cron\u00a0\u670d\u52d9<br \/># <span style=\"color: #ff0000;\">systemctl start yum-cron<\/span><\/p>\n<p>5. \u8a2d\u5b9a\u958b\u6a5f\u6642\u555f\u52d5 yum-cron\u00a0\u670d\u52d9<br \/># <span style=\"color: #ff0000;\">systemctl enable yum-cron<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u53ef\u4ee5\u4f7f\u7528 yum info updates \u6307\u4ee4\u4f86\u67e5\u8a62\u53ef\u4ee5\u53ef\u5347\u7d1a\u7684\u5957\u4ef6# yum info update &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2015\/02\/16\/centos-7-%e6%8f%90%e7%a4%ba%e5%8f%af%e4%bb%a5%e6%9b%b4%e6%96%b0%e7%9a%84%e5%a5%97%e4%bb%b6\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008CentOS 7 &#8211; \u63d0\u793a\u53ef\u4ee5\u66f4\u65b0\u7684\u5957\u4ef6\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-18765","post","type-post","status-publish","format-standard","hentry","category-c-78462"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["557009"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18765"}],"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=18765"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18765\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}