{"id":158933,"date":"2024-11-03T10:01:31","date_gmt":"2024-11-03T02:01:31","guid":{"rendered":"https:\/\/server.hk\/cnblog\/158933\/"},"modified":"2024-11-03T10:01:32","modified_gmt":"2024-11-03T02:01:32","slug":"%e5%92%8c%e9%9b%b6%e5%94%ae%e5%b7%a8%e9%a0%ad%e5%ad%b8%e5%a6%82%e4%bd%95%e5%9c%a8aws%e4%b8%8a%e9%81%8b%e8%a1%8c%e5%9c%96%e6%95%b8%e6%93%9a%e5%ba%abtitan","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/158933\/","title":{"rendered":"\u548c\u96f6\u552e\u5de8\u982d\u5b78\u5982\u4f55\u5728AWS\u4e0a\u904b\u884c\u5716\u6578\u64da\u5eabTitan"},"content":{"rendered":"<h1 id=\"%e5%92%8c%e9%9b%b6%e5%94%ae%e5%b7%a8%e9%a0%ad%e5%ad%b8%e5%a6%82%e4%bd%95%e5%9c%a8aws%e4%b8%8a%e9%81%8b%e8%a1%8c%e5%9c%96%e6%95%b8%e6%93%9a%e5%ba%abtitan-PilIipFbhK\">\u548c\u96f6\u552e\u5de8\u982d\u5b78\u5982\u4f55\u5728AWS\u4e0a\u904b\u884c\u5716\u6578\u64da\u5eabTitan<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u5716\u6578\u64da\u5eab\u56e0\u5176\u5728\u8655\u7406\u8907\u96dc\u95dc\u4fc2\u548c\u5927\u898f\u6a21\u6578\u64da\u96c6\u65b9\u9762\u7684\u512a\u52e2\u800c\u53d7\u5230\u5ee3\u6cdb\u95dc\u6ce8\u3002\u5c24\u5176\u662f\u5728\u96f6\u552e\u884c\u696d\uff0c\u4f01\u696d\u9700\u8981\u80fd\u5920\u5feb\u901f\u5206\u6790\u5ba2\u6236\u884c\u70ba\u3001\u7522\u54c1\u95dc\u806f\u548c\u4f9b\u61c9\u93c8\u7ba1\u7406\u7b49\u591a\u65b9\u9762\u7684\u6578\u64da\u3002Titan\u5716\u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u7a2e\u9ad8\u6548\u7684\u89e3\u6c7a\u65b9\u6848\uff0c\u80fd\u5920\u5728Amazon Web Services\uff08AWS\uff09\u4e0a\u904b\u884c\uff0c\u70ba\u4f01\u696d\u63d0\u4f9b\u9748\u6d3b\u7684\u6578\u64da\u8655\u7406\u80fd\u529b\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%aftitan%e5%9c%96%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%9f-PilIipFbhK\">\u4ec0\u9ebc\u662fTitan\u5716\u6578\u64da\u5eab\uff1f<\/h2>\n<p>Titan\u662f\u4e00\u500b\u5206\u4f48\u5f0f\u5716\u6578\u64da\u5eab\uff0c\u5c08\u70ba\u8655\u7406\u5927\u898f\u6a21\u5716\u5f62\u6578\u64da\u800c\u8a2d\u8a08\u3002\u5b83\u652f\u6301\u591a\u7a2e\u5f8c\u7aef\u5b58\u5132\u7cfb\u7d71\uff0c\u5982Apache Cassandra\u3001HBase\u548cBerkeleyDB\uff0c\u4e26\u4e14\u80fd\u5920\u5728\u591a\u500b\u7bc0\u9ede\u4e0a\u9032\u884c\u64f4\u5c55\u3002Titan\u7684\u8a2d\u8a08\u4f7f\u5176\u80fd\u5920\u8655\u7406\u9ad8\u541e\u5410\u91cf\u7684\u67e5\u8a62\uff0c\u4e26\u4e14\u652f\u6301\u8907\u96dc\u7684\u5716\u5f62\u67e5\u8a62\u8a9e\u8a00\uff0c\u5982Gremlin\u3002<\/p>\n<h2 id=\"aws%e4%b8%8a%e7%9a%84titan%e9%83%a8%e7%bd%b2-PilIipFbhK\">AWS\u4e0a\u7684Titan\u90e8\u7f72<\/h2>\n<p>\u5728AWS\u4e0a\u904b\u884cTitan\u5716\u6578\u64da\u5eab\u7684\u904e\u7a0b\u76f8\u5c0d\u7c21\u55ae\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e8%a8%ad%e7%bd%aeaws%e7%92%b0%e5%a2%83-PilIipFbhK\">1. \u8a2d\u7f6eAWS\u74b0\u5883<\/h3>\n<ul>\n<li>\u9996\u5148\uff0c\u60a8\u9700\u8981\u64c1\u6709\u4e00\u500bAWS\u5e33\u6236\uff0c\u4e26\u767b\u9304\u5230AWS\u7ba1\u7406\u63a7\u5236\u53f0\u3002<\/li>\n<li>\u9078\u64c7\u9069\u5408\u7684\u5340\u57df\u4f86\u5275\u5efa\u60a8\u7684\u8cc7\u6e90\uff0c\u9019\u6a23\u53ef\u4ee5\u6e1b\u5c11\u5ef6\u9072\u4e26\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h3 id=\"2-%e5%89%b5%e5%bb%baec2%e5%af%a6%e4%be%8b-PilIipFbhK\">2. \u5275\u5efaEC2\u5be6\u4f8b<\/h3>\n<p>\u5728AWS\u4e0a\u904b\u884cTitan\u9700\u8981\u4e00\u500b\u6216\u591a\u500bEC2\u5be6\u4f8b\u3002\u60a8\u53ef\u4ee5\u6839\u64da\u9810\u671f\u7684\u8ca0\u8f09\u9078\u64c7\u9069\u5408\u7684\u5be6\u4f8b\u985e\u578b\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u7c21\u55ae\u7684\u547d\u4ee4\u4f86\u555f\u52d5\u4e00\u500bEC2\u5be6\u4f8b\uff1a<\/p>\n<pre><code>aws ec2 run-instances --image-id ami-12345678 --count 1 --instance-type t2.micro --key-name MyKeyPair<\/code><\/pre>\n<h3 id=\"3-%e5%ae%89%e8%a3%9dtitan-PilIipFbhK\">3. \u5b89\u88ddTitan<\/h3>\n<p>\u5728EC2\u5be6\u4f8b\u555f\u52d5\u5f8c\uff0c\u60a8\u9700\u8981\u9023\u63a5\u5230\u8a72\u5be6\u4f8b\u4e26\u5b89\u88ddTitan\u3002\u4ee5\u4e0b\u662f\u5b89\u88ddTitan\u7684\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<pre><code>sudo apt-get update\nsudo apt-get install -y openjdk-8-jdk\nwget https:\/\/github.com\/thinkaurelius\/titan\/releases\/download\/v1.0.0\/titan-1.0.0.zip\nunzip titan-1.0.0.zip\ncd titan-1.0.0\n<\/code><\/pre>\n<h3 id=\"4-%e9%85%8d%e7%bd%aetitan-PilIipFbhK\">4. \u914d\u7f6eTitan<\/h3>\n<p>\u5728\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u914d\u7f6eTitan\u4ee5\u4f7f\u7528\u6240\u9078\u7684\u5f8c\u7aef\u5b58\u5132\u7cfb\u7d71\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u7c21\u55ae\u7684\u914d\u7f6e\u793a\u4f8b\uff0c\u4f7f\u7528Cassandra\u4f5c\u70ba\u5f8c\u7aef\uff1a<\/p>\n<pre><code>storage.backend=cassandrathrift\nstorage.hostname=127.0.0.1\n<\/code><\/pre>\n<h3 id=\"5-%e5%95%9f%e5%8b%95titan-PilIipFbhK\">5. \u555f\u52d5Titan<\/h3>\n<p>\u914d\u7f6e\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u555f\u52d5Titan\u670d\u52d9\uff1a<\/p>\n<pre><code>bin\/titan.sh start<\/code><\/pre>\n<h2 id=\"%e9%9b%b6%e5%94%ae%e8%a1%8c%e6%a5%ad%e7%9a%84%e6%87%89%e7%94%a8%e6%a1%88%e4%be%8b-PilIipFbhK\">\u96f6\u552e\u884c\u696d\u7684\u61c9\u7528\u6848\u4f8b<\/h2>\n<p>\u8a31\u591a\u96f6\u552e\u5de8\u982d\u5df2\u7d93\u958b\u59cb\u5229\u7528Titan\u5716\u6578\u64da\u5eab\u4f86\u63d0\u5347\u5176\u696d\u52d9\u904b\u71df\u3002\u4f8b\u5982\uff0c\u67d0\u5927\u578b\u96f6\u552e\u5546\u4f7f\u7528Titan\u4f86\u5206\u6790\u5ba2\u6236\u8cfc\u8cb7\u884c\u70ba\uff0c\u5f9e\u800c\u512a\u5316\u5176\u5eab\u5b58\u7ba1\u7406\u548c\u4fc3\u92b7\u7b56\u7565\u3002\u901a\u904e\u5716\u6578\u64da\u5eab\uff0c\u4ed6\u5011\u80fd\u5920\u5feb\u901f\u67e5\u8a62\u5ba2\u6236\u4e4b\u9593\u7684\u95dc\u806f\uff0c\u4e26\u6839\u64da\u9019\u4e9b\u6578\u64da\u5236\u5b9a\u500b\u6027\u5316\u7684\u71df\u92b7\u8a08\u5283\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-PilIipFbhK\">\u7e3d\u7d50<\/h2>\n<p>\u5728AWS\u4e0a\u904b\u884cTitan\u5716\u6578\u64da\u5eab\u70ba\u96f6\u552e\u4f01\u696d\u63d0\u4f9b\u4e86\u4e00\u500b\u5f37\u5927\u7684\u5de5\u5177\uff0c\u80fd\u5920\u6709\u6548\u5730\u8655\u7406\u548c\u5206\u6790\u8907\u96dc\u7684\u6578\u64da\u95dc\u4fc2\u3002\u901a\u904e\u6b63\u78ba\u7684\u914d\u7f6e\u548c\u90e8\u7f72\uff0c\u4f01\u696d\u53ef\u4ee5\u5229\u7528Titan\u7684\u512a\u52e2\u4f86\u63d0\u5347\u5176\u696d\u52d9\u6548\u7387\u548c\u5ba2\u6236\u6eff\u610f\u5ea6\u3002\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u652f\u6301\u60a8\u7684\u6578\u64da\u5eab\u9700\u6c42\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u5e6b\u52a9\u60a8\u5728\u9999\u6e2f\u5e02\u5834\u4e2d\u812b\u7a4e\u800c\u51fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728AWS\u4e0a\u904b\u884c\u5716\u6578\u64da\u5eabTitan\uff0c\u501f\u9452\u96f6\u552e\u5de8\u982d\u7684\u6210\u529f\u7d93\u9a57\uff0c\u63d0\u5347\u6578\u64da\u7ba1\u7406\u8207\u5206\u6790\u80fd\u529b\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-158933","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/158933","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"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=158933"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/158933\/revisions"}],"predecessor-version":[{"id":158934,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/158933\/revisions\/158934"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=158933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=158933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=158933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}