{"id":295243,"date":"2024-12-29T04:08:18","date_gmt":"2024-12-28T20:08:18","guid":{"rendered":"https:\/\/gulass.cn\/rhzlxtzcgqdc.html"},"modified":"2024-12-29T04:08:18","modified_gmt":"2024-12-28T20:08:18","slug":"rhzlxtzcgqdc","status":"publish","type":"post","link":"https:\/\/gulass.cn\/rhzlxtzcgqdc.html","title":{"rendered":"\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e2d\u6210\u529f\u542f\u52a8Cassandra\uff1a\u5b89\u88c5\u4e0e\u914d\u7f6e\u5168\u653b\u7565"},"content":{"rendered":"

\u5728\u73b0\u4eca\u7684\u6570\u636e\u5b58\u50a8\u4e0e\u7ba1\u7406\u754clinux \u542f\u52a8cassandra<\/strong>\uff0cCassandra\u662f\u4e00\u6b3e\u9887\u53d7\u5173\u6ce8\u7684\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u3002\u8981\u5728Linux<\/a>\u7cfb\u7edf\u4e2d\u542f\u52a8Cassandra\uff0c\u5fc5\u987b\u638c\u63e1\u4e00\u7cfb\u5217\u64cd\u4f5c\u548c\u77e5\u8bc6\u3002\u8fd9\u8981\u6c42\u6211\u4eec\u4e0d\u4ec5\u5f97\u719f\u6089Linux<\/a>\u7684\u57fa\u672c\u64cd\u4f5c\uff0c\u8fd8\u9700\u4e86\u89e3Cassandra\u7684\u914d\u7f6e\u548c\u6587\u4ef6\u7ed3\u6784\u3002<\/p>\n

\u5b89\u88c5\u524d\u7f6e\u6761\u4ef6<\/b><\/p>\n

\u542f\u52a8Linux\u7cfb\u7edf\u4e2d\u7684Cassandra\u524d\uff0c\u5fc5\u987b\u6ee1\u8db3\u5176\u5b89\u88c5\u524d\u7684\u8981\u6c42\u3002Cassandra\u6709\u7279\u5b9a\u7684\u7cfb\u7edf\u9700\u6c42\uff0c\u6bd4\u5982\u5bf9Java\u73af\u5883\u7684\u4f9d\u8d56\u3002\u5fc5\u987b\u786e\u8ba4Java\u5df2\u6b63\u786e\u5b89\u88c5\u5e76\u8bbe\u7f6e\u597d\u73af\u5883\u53d8\u91cf\u3002\u82e5Java\u73af\u5883\u51fa\u73b0\u6545\u969c\uff0cCassandra\u5c06\u65e0\u6cd5\u542f\u52a8\u3002\u901a\u5e38\uff0c\u4f7f\u7528\u547d\u4ee4<\/a>\u884c\u68c0\u67e5Java\u7248\u672c\uff0c\u4f8b\u5982\u8f93\u5165\u201cjava -version\u201d\u6765\u67e5\u770b\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u6709\u8db3\u591f\u7684\u5b58\u50a8\u7a7a\u95f4\u6765\u5b58\u653eCassandra\u7684\u6570\u636e\u6587\u4ef6\uff0c\u4e0d\u540c\u7248\u672c\u548c\u4e1a\u52a1\u9700\u6c42\u5bf9\u5b58\u50a8\u7a7a\u95f4\u7684\u9700\u6c42\u5404\u6709\u4e0d\u540c\u3002<\/p>\n

\u542f\u52a8\u5b50\u7684\u4f5c\u7528_\u542f\u52a8\u7684\u82f1\u6587_linux \u542f\u52a8cassandra<\/p>\n

\u540c\u65f6\uff0c\u8fd8\u9700\u6ce8\u610f\u7f51\u7edc\u73af\u5883\u7684\u914d\u7f6e\u3002\u7531\u4e8eCassandra\u662f\u4e00\u79cd\u5206\u5e03\u5f0f\u6570\u636e\u5e93linux\u865a\u62df\u673a\uff0c\u5176\u8282\u70b9\u95f4\u7684\u4ea4\u6d41\u4f9d\u8d56\u4e8e\u7f51\u7edc\u3002\u82e5\u9632\u706b\u5899\u7b49\u7f51\u7edc\u914d\u7f6e\u6709\u9650\u5236\uff0c\u53ef\u80fd\u4f1a\u5bf9\u5176\u6b63\u5e38\u542f\u52a8\u53ca\u540e\u7eed\u529f\u80fd\u4ea7\u751f\u5e72\u6270\u3002<\/p>\n

Cassandra\u5b89\u88c5<\/b><\/p>\n

\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b89\u88c5Cassandra\u3002\u4e00\u822c\u800c\u8a00\uff0c\u53ef\u4ee5\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u5408\u7684\u5b89\u88c5\u5305\uff0c\u7136\u540e\u624b\u52a8\u8fdb\u884c\u5b89\u88c5\u3002\u4e0b\u8f7d\u65f6\uff0c\u9700\u7559\u610f\u9009\u62e9\u4e0eLinux\u7cfb\u7edf\u7248\u672c\u76f8\u5339\u914d\u7684\u5b89\u88c5\u5305\u3002\u8fd8\u6709\u4e00\u79cd\u5e38\u89c1\u505a\u6cd5\u662f\u5229\u7528\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5\uff0c\u6bd4\u5982\u5728Ubuntu\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u7528apt\u547d\u4ee4\u6765\u5b89\u88c5\uff1b\u800c\u5728CentOS\u7cfb\u7edf\u4e0a\uff0c\u5219\u4f7f\u7528yum\u547d\u4ee4\u3002\u8fd9\u4e24\u79cd\u65b9\u6cd5\u90fd\u8f83\u4e3a\u7b80\u4fbf\u4e14\u6548\u7387\u8f83\u9ad8\u3002<\/p>\n

\u542f\u52a8\u5b50\u7684\u4f5c\u7528_linux \u542f\u52a8cassandra_\u542f\u52a8\u7684\u82f1\u6587<\/p>\n

\u5728\u5b89\u88c5\u65f6\uff0c\u52a1\u5fc5\u7559\u610f\u51fa\u73b0\u7684\u63d0\u793a\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u6709\u4e9b\u4f9d\u8d56\u5305\u53ef\u80fd\u56e0\u7248\u672c\u4e0d\u517c\u5bb9\u800c\u96be\u4ee5\u5b89\u88c5\u6210\u529f\u3002\u8fd9\u65f6\uff0c\u5e94\u9075\u5faa\u63d0\u793a\u5bfb\u627e\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u80fd\u6d89\u53ca\u66f4\u65b0\u6216\u66ff\u6362\u4f9d\u8d56\u5305\u7684\u7248\u672c\u3002<\/p>\n

\u914d\u7f6e\u6587\u4ef6\u4fee\u6539<\/b><\/p>\n

\u786e\u4fddCassandra\u914d\u7f6e\u6587\u4ef6\u7684\u51c6\u786e\u8bbe\u7f6e\u5bf9\u4e8e\u5176\u987a\u5229\u542f\u52a8\u81f3\u5173\u91cd\u8981\u3002\u8be5\u6587\u4ef6\u4e2d\u5305\u542b\u4e86\u8bf8\u5982\u96c6\u7fa4\u540d\u5b57\u3001\u8282\u70b9\u76d1\u542c\u5730\u5740\u3001\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e\u7b49\u5173\u952e\u914d\u7f6e\u4fe1\u606f\u3002\u5fc5\u987b\u6839\u636e\u5b9e\u9645\u5e94\u7528\u9700\u6c42\u6765\u5408\u7406\u8c03\u6574\u8fd9\u4e9b\u8bbe\u7f6e\u3002<\/p>\n

\u96c6\u7fa4\u540d\u79f0\u7684\u8bbe\u5b9a\u81f3\u5173\u91cd\u8981\uff0c\u5b83\u51b3\u5b9a\u4e86\u5b9e\u4f8b\u5f52\u5c5e\u54ea\u4e2a\u96c6\u7fa4\u3002\u4e00\u65e6\u540d\u79f0\u8bbe\u7f6e\u4e0d\u5f53\u4ec0\u4e48\u662flinux\uff0c\u96c6\u7fa4\u5185\u8282\u70b9\u95f4\u901a\u4fe1\u53ef\u80fd\u4f1a\u53d7\u963b\u3002\u81f3\u4e8e\u6570\u636e\u5b58\u50a8\u8def\u5f84\u7684\u8bbe\u5b9a\uff0c\u5fc5\u987b\u8003\u8651\u78c1\u76d8\u7a7a\u95f4\u548c\u8bfb\u5199\u6027\u80fd\u7b49\u56e0\u7d20\u3002\u82e5\u5b58\u50a8\u8def\u5f84\u5728\u7a7a\u95f4\u7d27\u5f20\u6216\u6027\u80fd\u5dee\u7684\u78c1\u76d8\u5206\u533a\uff0c\u5c06\u53ef\u80fd\u5f71\u54cdCassandra\u7684\u6574\u4f53\u6027\u80fd\u3002<\/p>\n

\u542f\u52a8\u547d\u4ee4<\/b><\/p>\n

\u542f\u52a8Cassandra\u5728Linux\u7cfb\u7edf\u4e0a\u5e76\u4e0d\u7e41\u7410\u3002\u901a\u5e38\uff0c\u53ea\u9700\u8fdb\u5165Cassandra\u5b89\u88c5\u8def\u5f84\u4e0b\u7684bin\u5b50\u76ee\u5f55\uff0c\u7136\u540e\u8f93\u5165\u201c.\/cassandra -f\u201d\u547d\u4ee4\u5373\u53ef\u3002\u8fd9\u91cc\u7684\u201c-f\u201d\u901a\u5e38\u4ee3\u8868\u5728\u524d\u53f0\u8fd0\u884c\uff0c\u8fd9\u6837\u505a\u6709\u5229\u4e8e\u5b9e\u65f6\u67e5\u770b\u542f\u52a8\u65e5\u5fd7\u548c\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n

\u4e0d\u8fc7\uff0c\u4e0d\u540cLinux\u7248\u672c\u6216\u5b89\u88c5\u65b9\u6cd5\u542f\u52a8\u6307\u4ee4\u53ef\u80fd\u5b58\u5728\u7ec6\u5fae\u5dee\u522b\u3002\u5728\u7279\u5b9a\u751f\u4ea7\u73af\u5883\u914d\u7f6e\u4e2d\uff0c\u542f\u52a8\u65f6\u53ef\u80fd\u8fd8\u9700\u501f\u52a9sudo\u7b49\u547d\u4ee4\u4ee5\u83b7\u5f97\u6240\u9700\u6743\u9650\u3002\u542f\u52a8\u65f6\u9700\u7559\u610f\u547d\u4ee4\u5927\u5c0f\u5199\u53ca\u8f93\u5165\u662f\u5426\u51c6\u786e\uff0c\u54ea\u6015\u662f\u4e00\u4e2a\u5c0f\u5c0f\u7684\u62fc\u5199\u5931\u8bef\u4e5f\u53ef\u80fd\u5bfc\u81f4\u542f\u52a8\u5931\u8d25\u3002<\/p>\n

\u542f\u52a8\u540e\u7684\u68c0\u67e5<\/b><\/p>\n

\u542f\u52a8\u5b50\u7684\u4f5c\u7528_linux \u542f\u52a8cassandra_\u542f\u52a8\u7684\u82f1\u6587<\/p>\n

\u542f\u52a8Cassandra\u540e\uff0c\u5e76\u975e\u4e00\u5207\u5c31\u7eea\u3002\u5fc5\u987b\u5bf9\u542f\u52a8\u60c5\u51b5\u8fdb\u884c\u6838\u5b9e\uff0c\u4ee5\u4fdd\u8bc1\u5176\u7a33\u5b9a\u8fd0\u884c\u3002\u53ef\u901a\u8fc7\u67e5\u9605Cassandra\u7684\u65e5\u5fd7\u6587\u4ef6\u6765\u8bc4\u4f30\u542f\u52a8\u72b6\u6001\u3002\u65e5\u5fd7\u4e2d\u4f1a\u663e\u793a\u662f\u5426\u6210\u529f\u8fde\u63a5\u5230\u79cd\u5b50\u8282\u70b9\uff0c\u4ee5\u53ca\u8282\u70b9\u95f4\u901a\u4fe1\u662f\u5426\u987a\u7545\u7b49\u91cd\u8981\u7ec6\u8282\u3002<\/p>\n

\u8fd8\u6709\u4e00\u79cd\u68c0\u6d4b\u624b\u6bb5\u662f\u5229\u7528\u7279\u5b9a\u7684\u7ba1\u7406\u8f6f\u4ef6\u6216\u6307\u4ee4\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u201cnodetool status\u201d\u6307\u4ee4\u6765\u5bdf\u770b\u96c6\u7fa4\u5185\u5404\u8282\u70b9\u7684\u8fd0\u884c\u60c5\u51b5\u3002\u82e5\u53d1\u73b0\u67d0\u4e2a\u8282\u70b9\u663e\u793a\u4e3a\u201cUN\u201d\uff0c\u90a3\u5c31\u610f\u5473\u7740\u8be5\u8282\u70b9\u5c1a\u672a\u6210\u529f\u542f\u52a8linux \u542f\u52a8cassandra<\/strong>\uff0c\u6b64\u65f6\u9700\u67e5\u660e\u95ee\u9898\u6240\u5728\u5e76\u4e88\u4ee5\u5904\u7406\u3002<\/p>\n

\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/b><\/p>\n

\u542f\u52a8Cassandra\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u96be\u9898\u3002\u5176\u4e2d\uff0c\u7aef\u53e3\u88ab\u4ed6\u4eba\u5360\u7528\u7684\u60c5\u51b5\u8f83\u4e3a\u5e38\u89c1\u3002\u82e5Cassandra\u7684\u9884\u8bbe\u7aef\u53e3\u5df2\u88ab\u5176\u4ed6\u5e94\u7528\u5360\u636e\uff0c\u8fd9\u4f1a\u76f4\u63a5\u5bfc\u81f4\u542f\u52a8\u4e0d\u6210\u529f\u3002\u6b64\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u201cnetstat -tnlp\u201d\u8fd9\u7c7b\u547d\u4ee4\u6765\u68c0\u67e5\u7aef\u53e3\u4f7f\u7528\u60c5\u51b5\uff0c\u5e76\u5bf9\u5360\u7528\u8be5\u7aef\u53e3\u7684\u7a0b\u5e8f\u8fdb\u884c\u76f8\u5e94\u8c03\u6574\u6216\u8f6c\u79fb\u3002<\/p>\n

\u6743\u9650\u4e0d\u591f\u7684\u95ee\u9898\u5b58\u5728\uff0c\u5f53\u7528\u6237\u8bd5\u56fe\u8bbf\u95eeCassandra\u6587\u4ef6\u6216\u6267\u884c\u542f\u52a8\u6307\u4ee4\u65f6\uff0c\u53ef\u80fd\u4f1a\u56e0\u4e3a\u6743\u9650\u4e0d\u8db3\u800c\u65e0\u6cd5\u6210\u529f\u3002\u8fd9\u65f6\uff0c\u5e94\u66f4\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6240\u6709\u8005\uff0c\u6216\u8005\u4f7f\u7528sudo\u547d\u4ee4\u63d0\u5347\u6743\u9650\u3002<\/p>\n

\u5728\u8fd0\u884cCassandra\u65f6\uff0c\u4f60\u662f\u5426\u4e5f\u9047\u5230\u4e86\u4e00\u4e9b\u7279\u522b\u7684\u95ee\u9898\uff1f\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u533a\u4ea4\u6d41\uff0c\u540c\u65f6\uff0c\u4e5f\u5e0c\u671b\u5927\u5bb6\u80fd\u70b9\u8d5e\u5e76\u8f6c\u53d1\u8fd9\u7bc7\u6587\u7ae0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u542f\u52a8Linux\u7cfb\u7edf\u4e2d\u7684Cassandra\u524d\uff0c\u5fc5\u987b\u6ee1\u8db3\u5176\u5b89\u88c5\u524d\u7684\u8981\u6c42\u3002\u4e00\u822c\u800c\u8a00\uff0c\u53ef\u4ee5\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u5408\u7684\u5b89\u88c5\u5305\uff0c\u7136\u540e\u624b\u52a8\u8fdb\u884c\u5b89\u88c5\u3002\u4e0b\u8f7d\u65f6\uff0c\u9700\u7559\u610f\u9009\u62e9\u4e0eLinux\u7cfb\u7edf\u7248\u672c\u76f8\u5339\u914d\u7684\u5b89\u88c5\u5305\u3002\u82e5Cassandra\u7684\u9884\u8bbe\u7aef\u53e3\u5df2\u88ab\u5176\u4ed6\u5e94\u7528\u5360\u636e\uff0c\u8fd9\u4f1a\u76f4\u63a5\u5bfc\u81f4\u542f\u52a8\u4e0d\u6210\u529f\u3002<\/p>\n","protected":false},"author":1,"featured_media":295244,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[1387,109,5252,3325,3240],"class_list":["post-295243","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-c-7","tag-linux","tag-qdgl","tag-azpz","tag-qxwt"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/295243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=295243"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/295243\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/295244"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=295243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=295243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=295243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}