{"id":2399,"date":"2017-06-29T13:42:05","date_gmt":"2017-06-29T05:42:05","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=2399"},"modified":"2017-06-29T13:42:05","modified_gmt":"2017-06-29T05:42:05","slug":"centos-yum%e5%91%bd%e4%bb%a4%e5%ae%89%e8%a3%85redis","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/jishu\/centos-yum%e5%91%bd%e4%bb%a4%e5%ae%89%e8%a3%85redis\/","title":{"rendered":"CentOS yum\u547d\u4ee4\u5b89\u88c5redis"},"content":{"rendered":"<p>\u5728linux CentOS\u7cfb\u7edf\u4e2d\u4f7f\u7528yum\u547d\u4ee4\u5b89\u88c5redis\u62a5\u9519\uff1a<\/p>\n<p># yum install redis<\/p>\n<p>Loaded plugins: fastestmirror<\/p>\n<p>Setting up Install Process<\/p>\n<p>Determining fastest mirrors<\/p>\n<p>* base: mirrors.skyshe.cn<\/p>\n<p>* extras: mirrors.163.com<\/p>\n<p>\u8fd9\u662f\u56e0\u4e3a\uff0ccentos\u9ed8\u8ba4\u7684\u5b89\u88c5\u6e90\u5728\u5b98\u65b9centos.org\u4e0a\uff0c\u800cRedis\u5728\u7b2c\u4e09\u65b9\u7684yum\u6e90\u91cc\uff0c\u6240\u4ee5\u65e0\u6cd5\u5b89\u88c5\uff0c\u975e\u5b98\u65b9\u7684yum\u63a8\u8350\u7528fedora\u7684epel\u4ed3\u5e93<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\uff1a<strong><b>yum install epel-release<\/b><\/strong><\/p>\n<p>\u518d\u5b89\u88c5redis\u5373\u53ef\uff1a<strong><b>yum install redis<\/b><\/strong><\/p>\n<p>\u4f7f\u7528<strong><b>service redis start<\/b><\/strong>\u547d\u4ee4\u542f\u52a8redis\u670d\u52a1\u7aef\uff1a<\/p>\n<p>#\u00a0<strong><b>service redis start<\/b><\/strong><\/p>\n<p>Redirecting to \/bin\/systemctl start redis.service<\/p>\n<p>\u4f7f\u7528<strong><b>ps -ef | grep redis<\/b><\/strong>\u67e5\u770bredis\u8fdb\u7a0b\uff1a<\/p>\n<p># ps -ef | grep redis<\/p>\n<p>redis 47664 1 0 05:31 ? 00:00:00 \/usr\/bin\/redis-server 127.0.0.1:6379\u00a0 root 47808 45376 0 05:32 pts\/0 00:00:00 grep \u2013color=auto redis<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728linux CentOS\u7cfb\u7edf\u4e2d\u4f7f\u7528yum\u547d\u4ee4\u5b89\u88c5redis\u62a5\u9519\uff1a # yum install redis L &#8230; <a title=\"CentOS yum\u547d\u4ee4\u5b89\u88c5redis\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/jishu\/centos-yum%e5%91%bd%e4%bb%a4%e5%ae%89%e8%a3%85redis\/\" aria-label=\"\u9605\u8bfb CentOS yum\u547d\u4ee4\u5b89\u88c5redis\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49,5],"tags":[82,714],"class_list":["post-2399","post","type-post","status-publish","format-standard","hentry","category-linux","category-jishu","tag-centos","tag-redis"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=2399"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2399\/revisions"}],"predecessor-version":[{"id":2400,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2399\/revisions\/2400"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=2399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=2399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=2399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}