{"id":164518,"date":"2019-12-11T13:09:00","date_gmt":"2019-12-11T05:09:00","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=164518"},"modified":"2019-11-25T10:09:34","modified_gmt":"2019-11-25T02:09:34","slug":"linux-centos-redis","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-centos-redis.html","title":{"rendered":"centos\u4ee5RPM\u5305\u65b9\u5f0f\u5b89\u88c5redis\u7684\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nRedis\uff08\u5168\u79f0\uff1aRemote Dictionary Server \u8fdc\u7a0b\u5b57\u5178\u670d\u52a1\uff09\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4f7f\u7528ANSI C\u8bed\u8a00\u7f16\u5199\u3001\u652f\u6301\u7f51\u7edc\u3001\u53ef\u57fa\u4e8e\u5185\u5b58\u4ea6\u53ef\u6301\u4e45\u5316\u7684\u65e5\u5fd7\u578b\u3001Key-Value\u6570\u636e\u5e93\uff0c\u5e76\u63d0\u4f9b\u591a\u79cd\u8bed\u8a00\u7684API\u3002\u4ece2010\u5e743\u670815\u65e5\u8d77\uff0cRedis\u7684\u5f00\u53d1\u5de5\u4f5c\u7531VMware\u4e3b\u6301\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5e73\u53f0\uff1a centos 6.5 x86_64<\/p>\n

\u5b89\u88c5\uff1aredis-3.0.7-4.el6.art.x86_64.rpm<\/p>\n

\u4e0b\u8f7drpm\u5305<\/strong><\/span><\/div>\n

\u6253\u5f00\u5730\u5740 http:\/\/pkgs.org\/download\/redis \u8fdb\u5165\u6839\u636e\u81ea\u5df1\u7684linux\u5e73\u53f0\u4ee5\u53ca\u9700\u8981\u5b89\u88c5\u7684redis\u7248\u672c\u8fdb\u53bb\u4e0b\u8f7d\u5bf9\u5e94\u7684rpm\u5305\uff0c\u8fd9\u91cc\u6211\u4eec\u4ee5redis 3.0.7\u4e3a\u4f8b\u5b89\u88c5:<\/p>\n

\r\n[root@21yunwei src]#  wget   http:\/\/www6.atomicorp.com\/channels\/atomic\/centos\/6\/x86_64\/RPMS\/redis-3.0.7-4.el6.art.x86_64.rpm\r\n<\/pre>\n
\u5b89\u88c5<\/strong><\/span><\/div>\n
\r\n[root@21yunwei src]# rpm  -ivh  redis-3.0.7-4.el6.art.x86_64.rpm\r\n<\/pre>\n

\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u4e00\u4e0b\uff0c\u5982\u679c\u662f\u65b0\u62ff\u7684\u7cfb\u7edf\u6216\u8005\u672a\u5b89\u88c5jemalloc\u5e93\u7684\u65f6\u5019\u4e00\u822c\u4f1a\u62a5\u9519\uff1a<\/p>\n

\r\n[root@21yunwei src]# rpm  -ivh  redis-3.0.7-4.el6.art.x86_64.rpm \r\nwarning: redis-3.0.7-4.el6.art.x86_64.rpm: Header V3 RSA\/SHA1 Signature, key ID 4520afa9: NOKEY\r\nerror: Failed dependencies:\r\n\tlibjemalloc.so.1()(64bit) is needed by redis-3.0.7-4.el6.art.x86_64\r\n<\/pre>\n

\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n

\r\nyum install epel-release  -y\r\nyum install jemalloc -y\r\n<\/pre>\n

\u518d\u6b21\u5b89\u88c5\uff0c\u95ee\u9898\u89e3\u51b3\uff1a<\/p>\n

\r\n[root@21yunwei src]# rpm   -ivh    redis-3.0.7-4.el6.art.x86_64.rpm \r\nwarning: redis-3.0.7-4.el6.art.x86_64.rpm: Header V3 RSA\/SHA1 Signature, key ID 4520afa9: NOKEY\r\nPreparing...                ########################################### [100%]\r\n   1:redis                  ########################################### [100%]\r\n<\/pre>\n
\u8fd0\u884c\u5e76\u8bbe\u7f6e\u81ea\u542f\u52a8<\/strong><\/span><\/div>\n

\u542f\u52a8\u65b0\u5b89\u88c5\u7684redis\uff1a<\/p>\n

\r\n[root@21yunwei src]# \/etc\/init.d\/redis  start\r\nStarting redis-server:                                     [  OK  ]\r\n<\/pre>\n
\u8bbe\u7f6e\u81ea\u542f\u52a8<\/strong><\/span><\/div>\n
\r\n[root@21yunwei src]# chkconfig  redis on\r\n<\/pre>\n

\u8fd9\u91cc\u5b89\u88c5\u7684redis\u672a\u8fdb\u884c\u4efb\u4f55\u8bbe\u7f6e\u6216\u8005\u4f18\u5316\uff0c\u90fd\u662f\u9ed8\u8ba4\u7684;\u5177\u4f53\u4f7f\u7528\u8fd8\u662f\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u4e1a\u52a1\u9700\u6c42\u6216\u8005\u5b89\u5168\u8bbe\u7f6e\u8fdb\u884c\u8c03\u6574\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5e73\u53f0\uff1a centos 6.5 x86_64 \u5b89\u88c5\uff1aredis-3.0.7-4.el6.art.x86_64.r […]<\/p>\n","protected":false},"author":668,"featured_media":7058,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-164518","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/164518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/668"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=164518"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/164518\/revisions"}],"predecessor-version":[{"id":164977,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/164518\/revisions\/164977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/7058"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=164518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=164518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=164518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}