{"id":42480,"date":"2024-10-03T14:51:25","date_gmt":"2024-10-03T06:51:25","guid":{"rendered":"https:\/\/server.hk\/cnblog\/42480\/"},"modified":"2024-10-03T14:51:25","modified_gmt":"2024-10-03T06:51:25","slug":"centos-6-5-%e9%85%8d%e7%bd%ae-ssdb-1-8-0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/42480\/","title":{"rendered":"CentOS 6.5 \u914d\u7f6e SSDB 1.8.0"},"content":{"rendered":"<h1 id=\"centos-6-5-%e9%85%8d%e7%bd%ae-ssdb-1-8-0-pZnikOFLxL\">CentOS 6.5 \u914d\u7f6e SSDB 1.8.0<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u64da\u9a45\u52d5\u6642\u4ee3\uff0c\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u7cfb\u7d71\u5c0d\u65bc\u61c9\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u81f3\u95dc\u91cd\u8981\u3002SSDB\uff08Sorted String Database\uff09\u662f\u4e00\u500b\u9ad8\u6548\u7684 NoSQL \u6578\u64da\u5eab\uff0c\u7279\u5225\u9069\u5408\u9700\u8981\u9ad8\u6027\u80fd\u8b80\u5beb\u7684\u5834\u666f\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 CentOS 6.5 \u4e0a\u914d\u7f6e SSDB 1.8.0\uff0c\u5e6b\u52a9\u7528\u6236\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<h2 id=\"%e7%92%b0%e5%a2%83%e6%ba%96%e5%82%99-pZnikOFLxL\">\u74b0\u5883\u6e96\u5099<\/h2>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u78ba\u4fdd\u4f60\u7684 CentOS 6.5 \u7cfb\u7d71\u5df2\u7d93\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u66f4\u65b0\uff1a<\/p>\n<pre><code>sudo yum update<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u5b89\u88dd\u4e00\u4e9b\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\uff1a<\/p>\n<pre><code>sudo yum install gcc gcc-c++ make cmake git<\/code><\/pre>\n<h2 id=\"%e4%b8%8b%e8%bc%89-ssdb-pZnikOFLxL\">\u4e0b\u8f09 SSDB<\/h2>\n<p>\u4f7f\u7528 Git \u4e0b\u8f09 SSDB \u7684\u6e90\u4ee3\u78bc\u3002\u9996\u5148\uff0c\u9032\u5165\u4f60\u5e0c\u671b\u5b58\u653e SSDB \u7684\u76ee\u9304\uff0c\u7136\u5f8c\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/ideawu\/ssdb.git<\/code><\/pre>\n<p>\u63a5\u8457\uff0c\u5207\u63db\u5230 SSDB \u7684\u76ee\u9304\uff1a<\/p>\n<pre><code>cd ssdb<\/code><\/pre>\n<h2 id=\"%e7%b7%a8%e8%ad%af-ssdb-pZnikOFLxL\">\u7de8\u8b6f SSDB<\/h2>\n<p>\u5728\u7de8\u8b6f\u4e4b\u524d\uff0c\u78ba\u4fdd\u4f60\u5df2\u7d93\u5b89\u88dd\u4e86 CMake\u3002\u7136\u5f8c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u7de8\u8b6f SSDB\uff1a<\/p>\n<pre><code>mkdir build\ncd build\ncmake ..\nmake\nsudo make install<\/code><\/pre>\n<p>\u9019\u4e9b\u547d\u4ee4\u5c07\u6703\u5275\u5efa\u4e00\u500b\u540d\u70ba build \u7684\u76ee\u9304\uff0c\u7136\u5f8c\u5728\u8a72\u76ee\u9304\u4e2d\u7de8\u8b6f SSDB\u3002<\/p>\n<h2 id=\"%e9%85%8d%e7%bd%ae-ssdb-pZnikOFLxL\">\u914d\u7f6e SSDB<\/h2>\n<p>\u7de8\u8b6f\u5b8c\u6210\u5f8c\uff0c\u4f60\u9700\u8981\u914d\u7f6e SSDB\u3002\u9996\u5148\uff0c\u5275\u5efa\u4e00\u500b\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>cd ..\ncp ssdb.conf.example ssdb.conf<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u4f7f\u7528\u6587\u672c\u7de8\u8f2f\u5668\uff08\u5982 vi \u6216 nano\uff09\u6253\u958b\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>vi ssdb.conf<\/code><\/pre>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u4f60\u53ef\u4ee5\u8a2d\u7f6e\u6578\u64da\u5eab\u7684\u7aef\u53e3\u3001\u6578\u64da\u5b58\u5132\u8def\u5f91\u7b49\u53c3\u6578\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u914d\u7f6e\u9078\u9805\uff1a<\/p>\n<ul>\n<li><strong>port:<\/strong> \u8a2d\u7f6e SSDB \u670d\u52d9\u7684\u7aef\u53e3\uff0c\u9ed8\u8a8d\u70ba 8888\u3002<\/li>\n<li><strong>db_path:<\/strong> \u8a2d\u7f6e\u6578\u64da\u5eab\u7684\u5b58\u5132\u8def\u5f91\u3002<\/li>\n<li><strong>log_path:<\/strong> \u8a2d\u7f6e\u65e5\u8a8c\u6587\u4ef6\u7684\u5b58\u5132\u8def\u5f91\u3002<\/li>\n<\/ul>\n<p>\u5b8c\u6210\u914d\u7f6e\u5f8c\uff0c\u4fdd\u5b58\u4e26\u9000\u51fa\u7de8\u8f2f\u5668\u3002<\/p>\n<h2 id=\"%e5%95%9f%e5%8b%95-ssdb-pZnikOFLxL\">\u555f\u52d5 SSDB<\/h2>\n<p>\u73fe\u5728\uff0c\u4f60\u53ef\u4ee5\u555f\u52d5 SSDB \u670d\u52d9\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u555f\u52d5\uff1a<\/p>\n<pre><code>ssdb-server ssdb.conf<\/code><\/pre>\n<p>\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u4f60\u61c9\u8a72\u6703\u770b\u5230 SSDB \u6210\u529f\u555f\u52d5\u7684\u6d88\u606f\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 curl \u547d\u4ee4\u4f86\u6aa2\u67e5 SSDB \u662f\u5426\u904b\u884c\uff1a<\/p>\n<pre><code>curl http:\/\/127.0.0.1:8888<\/code><\/pre>\n<p>\u5982\u679c\u8fd4\u56de\u4e86\u76f8\u61c9\u7684\u6578\u64da\uff0c\u5247\u8868\u793a SSDB \u5df2\u7d93\u6210\u529f\u904b\u884c\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-pZnikOFLxL\">\u7e3d\u7d50<\/h2>\n<p>\u672c\u6587\u4ecb\u7d39\u4e86\u5982\u4f55\u5728 CentOS 6.5 \u4e0a\u914d\u7f6e SSDB 1.8.0\uff0c\u5f9e\u74b0\u5883\u6e96\u5099\u5230\u7de8\u8b6f\u3001\u914d\u7f6e\u53ca\u555f\u52d5\u7684\u6bcf\u4e00\u6b65\u90fd\u9032\u884c\u4e86\u8a73\u7d30\u8aaa\u660e\u3002SSDB \u4f5c\u70ba\u4e00\u500b\u9ad8\u6548\u7684 NoSQL \u6578\u64da\u5eab\uff0c\u80fd\u5920\u6eff\u8db3\u9ad8\u6027\u80fd\u7684\u9700\u6c42\u3002\u5982\u679c\u4f60\u6b63\u5728\u5c0b\u627e\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u4f86\u904b\u884c\u4f60\u7684\u61c9\u7528\u7a0b\u5e8f\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u5e6b\u52a9\u4f60\u8f15\u9b06\u90e8\u7f72\u548c\u7ba1\u7406\u4f60\u7684\u670d\u52d9\u5668\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure SSDB 1.8.0 on CentOS 6.5 with step-by-step instructions for optimal performance and setup.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-42480","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=42480"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42480\/revisions"}],"predecessor-version":[{"id":42481,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42480\/revisions\/42481"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=42480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=42480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=42480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}