{"id":8002,"date":"2020-06-22T15:43:51","date_gmt":"2020-06-22T07:43:51","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8002"},"modified":"2022-05-29T19:06:34","modified_gmt":"2022-05-29T11:06:34","slug":"redis-server","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/redis-server","title":{"rendered":"redis-server\u547d\u4ee4 – \u542f\u52a8Redis\u670d\u52a1\u7a0b\u5e8f"},"content":{"rendered":"\n
redis-server\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u7528\u4e8e\u542f\u52a8Redis\u670d\u52a1\u7a0b\u5e8f\u3002Redis\u670d\u52a1\u7684\u82f1\u6587\u5168\u79f0\u4e3a\u201dRemote Dictionary Server\u201c\uff0c\u4e2d\u6587\u8bd1\u4e3a\u8fdc\u7a0b\u5b57\u5178\u670d\u52a1\uff0c\u662f\u4e00\u4e2a\u5f00\u6e90\u3001\u652f\u6301\u7f51\u7edc\u3001\u57fa\u4e8e\u5185\u5b58\u4ea6\u53ef\u6301\u4e45\u5316\u7684\u65e5\u5fd7\u578b\u6570\u636e\u5e93\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>redis-server [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u542f\u52a8Redis\u670d\u52a1\u5e76\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u542f\u52a8Redis\u670d\u52a1\u5e76\u81ea\u5b9a\u4e49\u7aef\u53e3\u53f7\uff1a<\/p>\n\n\n\n \u914d\u7f6eRedis\u670d\u52a1\u7684\u65e5\u5fd7\u7c7b\u7ea7\u522b\uff1a<\/p>\n\n\n\n \u4ee5\u54e8\u5175\u6a21\u5f0f\u8fd0\u884cRedis\u670d\u52a1\uff1a<\/p>\n\n\n\n redis-server\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u7528\u4e8e\u542f\u52a8Redis\u670d\u52a1\u7a0b\u5e8f\u3002Redis\u670d\u52a1\u7684\u82f1\u6587\u5168\u79f0\u4e3a\u201dRemote Di […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8002"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8002"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8002\/revisions"}],"predecessor-version":[{"id":10204,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8002\/revisions\/10204"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}--port<\/td> \u81ea\u5b9a\u4e49\u7aef\u53e3<\/td><\/tr> --slaveof<\/td> \u8f6c\u53d8\u4e3a\u4ece\u5c5e\u670d\u52a1\u5668<\/td><\/tr> --loglevel<\/td> \u914d\u7f6e\u65e5\u5fd7\u7ea7\u522b<\/td><\/tr> --sentinel<\/td> \u4ee5\u54e8\u5175\u6a21\u5f0f\u8fd0\u884c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# redis-server<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# redis-server --port 7777 --slaveof 127.0.0.1 8888<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# redis-server \/etc\/myredis.conf --loglevel verbose<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# redis-server \/etc\/sentinel.conf --sentinel<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"