{"id":141,"date":"2022-02-06T03:04:11","date_gmt":"2022-02-05T19:04:11","guid":{"rendered":"http:\/\/nas.hepcloud.top:7000\/?p=141"},"modified":"2022-11-02T00:17:22","modified_gmt":"2022-11-01T16:17:22","slug":"%e7%be%a4%e6%99%96nas%e6%95%99%e7%a8%8b%e4%b8%89%e3%80%81%e5%88%a9%e7%94%a8docker%e5%ae%89%e8%a3%85redis6-2-4%e5%b9%b6%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae","status":"publish","type":"post","link":"http:\/\/www.huerpu.cc:7000\/?p=141","title":{"rendered":"\u7fa4\u6656NAS docker\u7cfb\u5217\u6559\u7a0b(\u4e09)\u3001\u5229\u7528Docker\u5b89\u88c5Redis6.2.4\u5e76\u8fdc\u7a0b\u8bbf\u95ee"},"content":{"rendered":"<h3>\u7fa4\u6656NAS\u6559\u7a0b(\u4e09)\u3001\u5229\u7528Docker\u5b89\u88c5Redis6.2.4\u5e76\u8fdc\u7a0b\u8bbf\u95ee<\/h3>\n<p>\u4e3a\u4e86\u66f4\u597d\u7684\u6d4f\u89c8\u4f53\u9a8c\uff0c\u6b22\u8fce\u5149\u987e<a href=\"http:\/\/www.huerpu.cc:7000\">\u52e4\u594b\u7684\u51ef\u5c14\u68ee\u540c\u5b66\u4e2a\u4eba\u535a\u5ba2http:\/\/www.huerpu.cc:7000<\/a><\/p>\n<h3>\u4e00\u3001\u4e0b\u8f7d\u6700\u65b0\u7684\u3001stars\u6700\u591a\u7684redis\u955c\u50cf<\/h3>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/64.png\" alt=\"img\" \/><\/p>\n<h3>\u4e8c\u3001\u542f\u52a8\u955c\u50cf\uff0c\u5e76\u8bbe\u7f6e\u8bbf\u95ee\u7aef\u53e3<\/h3>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/65.png\" alt=\"img\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/66.png\" alt=\"img\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/67.png\" alt=\"img\" \/><\/p>\n<p>\u5bb9\u5668\u7aef\u53e3\u3001\u672c\u5730\u5bbf\u4e3b\u673a\u7aef\u53e3\u3001\u8def\u7531\u5668\u7aef\u53e3\u8981\u5bf9\u5e94\u8d77\u6765\uff0c\u4e09\u8005\u4e0d\u4e00\u5b9a\u4e00\u6837\uff0c\u4f46\u5bf9\u5e94\u8d77\u6765\u5c31\u53ef\u4ee5\u3002\u65b9\u4fbf\u8d77\u89c1\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u4e86\u4e00\u6837\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/68.png\" alt=\"img\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/69.png\" alt=\"img\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/70.png\" alt=\"img\" \/><\/p>\n<p>\u5728bash\u7a97\u53e3\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>#\u5347\u7ea7\u5b89\u88c5\u5305\napt update\n\n#\u8fdb\u884c\u5b89\u88c5\u5305\u7684\u66f4\u65b0\napt upgrade\n\n#\u5b89\u88c5vim\uff0c\u4e3a\u4e86\u540e\u7eed\u7684\u66f4\u65b9\u9762\u7684\u64cd\u4f5c\napt install vim<\/code><\/pre>\n<h3>\u4e09\u3001\u8def\u7531\u5668\u8bbe\u7f6e\u7aef\u53e3\u8f6c\u53d1<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u540d\u79f0<\/th>\n<th>\u534f\u8bae<\/th>\n<th>\u5916\u90e8\u7aef\u53e3<\/th>\n<th>\u5185\u90e8IP\u5730\u5740<\/th>\n<th>\u5185\u90e8\u7aef\u53e3<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>6379<\/td>\n<td>TCP<\/td>\n<td>6379<\/td>\n<td>192.168.31.19<\/td>\n<td>6379<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u540d\u79f0\u53ef\u4ee5\u968f\u4fbf\u586b\uff0c\u534f\u8bae\u9009\u62e9TCP\uff0c\u5916\u90e8\u7aef\u53e3\u662f\u5916\u7f51\u8bbf\u95ee\u7684\u7aef\u53e3\uff0c\u5185\u90e8IP\u5730\u5740\u662f\u7fa4\u6656\u7684\u672c\u5730IP\uff0c\u5185\u90e8\u7aef\u53e3\u662f\u5bb9\u5668\u66b4\u9732\u7ed9\u5bbf\u4e3b\u673a\u7684\u7aef\u53e3\u53f7\uff0c\u4e3a\u4e86\u65b9\u4fbf\u6211\u4eec\u5168\u90e8\u8bbe\u7f6e\u6210\u4e86\u7edf\u4e00\u76846379\u3002<\/p>\n<h3>\u56db\u3001RDM(Redis Desktop Manager)\u8fdc\u7a0b\u8fde\u63a5<\/h3>\n<p>\u8fd9\u91ccRDM\u7684\u5b89\u88c5\u5c31\u4e0d\u505a\u5c55\u793a\u4e86\uff0c\u76f4\u63a5\u4e0a\u8fde\u63a5\u56fe\u7247<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/71.png\" alt=\"img\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/72.png\" alt=\"img\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/73.png\" alt=\"img\" \/><\/p>\n<h3>\u4e94\u3001\u8bbe\u7f6e\u5bc6\u7801<\/h3>\n<p>\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c\u8fd8\u662f\u8981\u8bbe\u7f6e\u5bc6\u7801\u3002\u56e0\u4e3a\u6709\u540c\u5b66\u7684\u5916\u7f51Redis\u6ca1\u6709\u8bbe\u7f6e\u8fde\u63a5\u5bc6\u7801\uff0c\u6709\u88ab\u9ed1\u5ba2\u7528\u6765\u653b\u51fb\u6316\u77ff\u548c\u811a\u672c\u6ce8\u5165\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>\u8bbe\u7f6e\u5bc6\u7801\u547d\u4ee4\uff1a<\/p>\n<pre><code>Config set requirepass 123456<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/02\/06\/74.png\" alt=\"img\" \/><\/p>\n<p>\u5728\u7f16\u8f91\u8fde\u63a5\u7684\u5730\u65b9\uff0c\u628a\u8bbe\u7f6e\u7684\u5bc6\u7801\u8f93\u5165\u8fde\u63a5\u5373\u53ef\uff0c\u4e0d\u8f93\u5165\u5bc6\u7801\u5c31\u4f1a\u663e\u793a\u65e0\u6cd5\u8fde\u63a5\u3002<\/p>\n<p>\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528\u522b\u7684\u670d\u52a1\u5668\u8fdc\u7a0b\u547d\u4ee4\u884c\u8fdb\u884c\u8fde\u63a5\uff1a<\/p>\n<pre><code>redis-cli -h www.huerpu.cc -p 6379 -a 123456<\/code><\/pre>\n<p>\u5230\u6b64\u5927\u529f\u544a\u6210\uff0credis\u5c31\u53ef\u4ee5\u6109\u5feb\u7684\u5916\u7f51\u8bbf\u95ee\u5566\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7fa4\u6656NAS\u6559\u7a0b(\u4e09)\u3001\u5229\u7528Docker\u5b89\u88c5Redis6.2.4\u5e76\u8fdc\u7a0b\u8bbf\u95ee \u4e3a\u4e86\u66f4\u597d\u7684\u6d4f\u89c8\u4f53\u9a8c\uff0c\u6b22\u8fce\u5149\u987e\u52e4\u594b\u7684\u51ef [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-nas","category-nas-docker"],"_links":{"self":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":1,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":553,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/553"}],"wp:attachment":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}