{"id":619,"date":"2022-08-15T17:39:32","date_gmt":"2022-08-15T09:39:32","guid":{"rendered":"https:\/\/blog.lijiajia.top\/?p=619"},"modified":"2026-06-19T17:43:42","modified_gmt":"2026-06-19T09:43:42","slug":"wsl2%e7%9a%84ubuntu%e7%8e%af%e5%a2%83-%e5%90%af%e5%8a%a8redis","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=619","title":{"rendered":"wsl2\u7684Ubuntu\u73af\u5883 \u542f\u52a8Redis"},"content":{"rendered":"<p><a href=\"https:\/\/www.linuxcapable.com\/how-to-install-redis-on-ubuntu-22-04-lts\/\">https:\/\/www.linuxcapable.com\/how-to-install-redis-on-ubuntu-22-04-lts\/<\/a><\/p>\n<p>RedisLabs PPA \u65b9\u6cd5<br \/>\n\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u662f\u5bfc\u5165\u201cRedis Labs\u201d\u56e2\u961f\uff0c\u8be5\u56e2\u961f\u62e5\u6709\u6700\u65b0\u7684\u7a33\u5b9a\u7248Redis\u3002\u968f\u7740 Ubuntu 22.04 LTS \u7684\u8001\u5316\uff0c\u6807\u51c6\u7684 Ubuntu \u5b58\u50a8\u5e93\u7248\u672c\u901a\u5e38\u4f1a\u88ab\u8fdc\u8fdc\u629b\u5728\u540e\u9762\uff0c\u4ee5\u786e\u4fdd\u60a8\u62e5\u6709\u6700\u65b0\u7248\u672c\u3002<\/p>\n<p>\u9996\u5148\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5bfc\u5165 PPA\u3002<\/p>\n<p>sudo add-apt-repository ppa:redislabs\/redis -y<br \/>\n\u66f4\u65b0\u60a8\u7684\u6765\u6e90\u5217\u8868\u4ee5\u53cd\u6620\u65b0\u7684 PPA\u3002<\/p>\n<p>sudo apt-get update<br \/>\n\u73b0\u5728\u5b89\u88c5 Redis\uff1b\u5982\u679c\u60a8\u5b89\u88c5\u4e86 Redis\uff0c\u60a8\u53ef\u80fd\u4f1a\u770b\u5230\u5347\u7ea7\u3002\u6211\u4ecd\u7136\u5efa\u8bae\u4f7f\u7528 install \u547d\u4ee4\u3002<\/p>\n<p>sudo apt install redis<\/p>\n<p><a href=\"https:\/\/blog.csdn.net\/papaaa\/article\/details\/82184176\">https:\/\/blog.csdn.net\/papaaa\/article\/details\/82184176<\/a><\/p>\n<p>Ubuntu\u542f\u52a8\u505c\u6b62\u670d\u52a1<br \/>\nservice redis-server start<\/p>\n<p>service redis-server status<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.linuxcapable.com\/how-to-install-redis-on-ub [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133],"tags":[64,80],"class_list":["post-619","post","type-post","status-publish","format-standard","hentry","category-dev-tools","tag-redis","tag-wsl2"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=619"}],"version-history":[{"count":1,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/619\/revisions"}],"predecessor-version":[{"id":2011,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/619\/revisions\/2011"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}