{"id":189490,"date":"2024-11-12T08:13:22","date_gmt":"2024-11-12T00:13:22","guid":{"rendered":"https:\/\/server.hk\/cnblog\/189490\/"},"modified":"2024-11-12T08:13:24","modified_gmt":"2024-11-12T00:13:24","slug":"%e5%9c%96%e5%ad%98%e5%84%b2%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8e%9f%e7%90%86%e8%a9%b3%e8%a7%a3%e5%8f%8a%e6%87%89%e7%94%a8%e6%8e%a2%e8%a8%8e-%e5%9c%96%e5%ad%98%e5%84%b2%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8e%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/189490\/","title":{"rendered":"\u5716\u5b58\u5132\u6578\u64da\u5eab\u539f\u7406\u8a73\u89e3\u53ca\u61c9\u7528\u63a2\u8a0e (\u5716\u5b58\u5132\u6578\u64da\u5eab\u539f\u7406)"},"content":{"rendered":"<h1 id=\"%e5%9c%96%e5%ad%98%e5%84%b2%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8e%9f%e7%90%86%e8%a9%b3%e8%a7%a3%e5%8f%8a%e6%87%89%e7%94%a8%e6%8e%a2%e8%a8%8e-iLmfuIokBH\">\u5716\u5b58\u5132\u6578\u64da\u5eab\u539f\u7406\u8a73\u89e3\u53ca\u61c9\u7528\u63a2\u8a0e<\/h1>\n<p>\u96a8\u8457\u6578\u64da\u91cf\u7684\u6025\u5287\u589e\u9577\uff0c\u50b3\u7d71\u7684\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u5728\u8655\u7406\u8907\u96dc\u6578\u64da\u7d50\u69cb\u65b9\u9762\u9010\u6f38\u986f\u5f97\u529b\u4e0d\u5f9e\u5fc3\u3002\u5716\u5b58\u5132\u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u7a2e\u65b0\u8208\u7684\u6578\u64da\u5eab\u6280\u8853\uff0c\u56e0\u5176\u5728\u8655\u7406\u95dc\u806f\u6027\u6578\u64da\u65b9\u9762\u7684\u512a\u52e2\u800c\u53d7\u5230\u5ee3\u6cdb\u95dc\u6ce8\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u539f\u7406\u53ca\u5176\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e5%9c%96%e5%ad%98%e5%84%b2%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%9f%ba%e6%9c%ac%e5%8e%9f%e7%90%86-iLmfuIokBH\">\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u57fa\u672c\u539f\u7406<\/h2>\n<p>\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u6838\u5fc3\u6982\u5ff5\u662f\u201c\u5716\u201d\uff0c\u5b83\u7531\u7bc0\u9ede\uff08Node\uff09\u3001\u908a\uff08Edge\uff09\u548c\u5c6c\u6027\uff08Property\uff09\u7d44\u6210\u3002\u7bc0\u9ede\u4ee3\u8868\u5be6\u9ad4\uff0c\u908a\u5247\u8868\u793a\u5be6\u9ad4\u4e4b\u9593\u7684\u95dc\u4fc2\uff0c\u800c\u5c6c\u6027\u5247\u7528\u65bc\u63cf\u8ff0\u7bc0\u9ede\u548c\u908a\u7684\u7279\u5fb5\u3002<\/p>\n<ul>\n<li><strong>\u7bc0\u9ede\uff08Node\uff09<\/strong>: \u4ee3\u8868\u6578\u64da\u4e2d\u7684\u5be6\u9ad4\uff0c\u4f8b\u5982\u7528\u6236\u3001\u7522\u54c1\u7b49\u3002<\/li>\n<li><strong>\u908a\uff08Edge\uff09<\/strong>: \u4ee3\u8868\u7bc0\u9ede\u4e4b\u9593\u7684\u95dc\u4fc2\uff0c\u4f8b\u5982\u7528\u6236\u4e4b\u9593\u7684\u670b\u53cb\u95dc\u4fc2\u6216\u7522\u54c1\u4e4b\u9593\u7684\u76f8\u4f3c\u6027\u3002<\/li>\n<li><strong>\u5c6c\u6027\uff08Property\uff09<\/strong>: \u7528\u65bc\u63cf\u8ff0\u7bc0\u9ede\u548c\u908a\u7684\u7279\u5fb5\uff0c\u4f8b\u5982\u7528\u6236\u7684\u5e74\u9f61\u3001\u7522\u54c1\u7684\u50f9\u683c\u7b49\u3002<\/li>\n<\/ul>\n<p>\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u6578\u64da\u6a21\u578b\u4f7f\u5f97\u8907\u96dc\u7684\u95dc\u4fc2\u53ef\u4ee5\u88ab\u76f4\u89c0\u5730\u8868\u793a\u548c\u67e5\u8a62\u3002\u8207\u50b3\u7d71\u7684\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u76f8\u6bd4\uff0c\u5716\u5b58\u5132\u6578\u64da\u5eab\u5728\u8655\u7406\u591a\u5c64\u6b21\u95dc\u4fc2\u548c\u7db2\u7d61\u7d50\u69cb\u6642\u5177\u6709\u66f4\u9ad8\u7684\u6548\u7387\u3002<\/p>\n<h2 id=\"%e5%9c%96%e5%ad%98%e5%84%b2%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e6%9f%a5%e8%a9%a2%e8%aa%9e%e8%a8%80-iLmfuIokBH\">\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u67e5\u8a62\u8a9e\u8a00<\/h2>\n<p>\u5716\u5b58\u5132\u6578\u64da\u5eab\u901a\u5e38\u4f7f\u7528\u5c08\u9580\u7684\u67e5\u8a62\u8a9e\u8a00\u4f86\u9032\u884c\u6578\u64da\u64cd\u4f5c\u3002\u6700\u5e38\u898b\u7684\u67e5\u8a62\u8a9e\u8a00\u662fCypher\uff0c\u9019\u662f\u4e00\u7a2e\u91dd\u5c0d\u5716\u6578\u64da\u5eab\u7684\u8072\u660e\u5f0f\u67e5\u8a62\u8a9e\u8a00\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u4f7f\u7528Cypher\u67e5\u8a62\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>\nMATCH (a:User)-[:FRIEND]-&gt;(b:User)\nWHERE a.name = 'Alice'\nRETURN b.name\n<\/code><\/pre>\n<p>\u9019\u6bb5\u67e5\u8a62\u7684\u610f\u601d\u662f\u67e5\u627e\u540d\u70baAlice\u7684\u7528\u6236\u7684\u6240\u6709\u670b\u53cb\u3002\u9019\u7a2e\u67e5\u8a62\u65b9\u5f0f\u4f7f\u5f97\u7528\u6236\u80fd\u5920\u8f15\u9b06\u5730\u7372\u53d6\u8907\u96dc\u7684\u95dc\u4fc2\u6578\u64da\u3002<\/p>\n<h2 id=\"%e5%9c%96%e5%ad%98%e5%84%b2%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e6%87%89%e7%94%a8%e5%a0%b4%e6%99%af-iLmfuIokBH\">\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u61c9\u7528\u5834\u666f<\/h2>\n<p>\u5716\u5b58\u5132\u6578\u64da\u5eab\u5728\u8a31\u591a\u9818\u57df\u90fd\u6709\u5ee3\u6cdb\u7684\u61c9\u7528\uff0c\u4ee5\u4e0b\u662f\u5e7e\u500b\u5178\u578b\u7684\u61c9\u7528\u5834\u666f\uff1a<\/p>\n<ul>\n<li><strong>\u793e\u4ea4\u7db2\u7d61\u5206\u6790<\/strong>: \u5728\u793e\u4ea4\u5a92\u9ad4\u5e73\u53f0\u4e2d\uff0c\u5716\u5b58\u5132\u6578\u64da\u5eab\u53ef\u4ee5\u7528\u4f86\u5206\u6790\u7528\u6236\u4e4b\u9593\u7684\u95dc\u4fc2\uff0c\u63a8\u85a6\u670b\u53cb\u6216\u5167\u5bb9\u3002<\/li>\n<li><strong>\u63a8\u85a6\u7cfb\u7d71<\/strong>: \u901a\u904e\u5206\u6790\u7528\u6236\u884c\u70ba\u548c\u7522\u54c1\u4e4b\u9593\u7684\u95dc\u4fc2\uff0c\u5716\u5b58\u5132\u6578\u64da\u5eab\u53ef\u4ee5\u63d0\u4f9b\u500b\u6027\u5316\u7684\u63a8\u85a6\u3002<\/li>\n<li><strong>\u6b3a\u8a50\u6aa2\u6e2c<\/strong>: \u5728\u91d1\u878d\u9818\u57df\uff0c\u5716\u5b58\u5132\u6578\u64da\u5eab\u53ef\u4ee5\u5e6b\u52a9\u8b58\u5225\u53ef\u7591\u4ea4\u6613\u548c\u6b3a\u8a50\u884c\u70ba\u3002<\/li>\n<li><strong>\u77e5\u8b58\u5716\u8b5c<\/strong>: \u7528\u65bc\u69cb\u5efa\u548c\u67e5\u8a62\u5927\u578b\u77e5\u8b58\u5eab\uff0c\u5e6b\u52a9\u4f01\u696d\u9032\u884c\u4fe1\u606f\u6aa2\u7d22\u548c\u6c7a\u7b56\u652f\u6301\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%9c%96%e5%ad%98%e5%84%b2%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%84%aa%e5%8b%a2-iLmfuIokBH\">\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u512a\u52e2<\/h2>\n<p>\u5716\u5b58\u5132\u6578\u64da\u5eab\u76f8\u8f03\u65bc\u50b3\u7d71\u6578\u64da\u5eab\u6709\u4ee5\u4e0b\u5e7e\u500b\u512a\u52e2\uff1a<\/p>\n<ul>\n<li><strong>\u9ad8\u6548\u7684\u95dc\u4fc2\u67e5\u8a62<\/strong>: \u80fd\u5920\u5feb\u901f\u67e5\u8a62\u548c\u904d\u6b77\u8907\u96dc\u7684\u95dc\u4fc2\u3002<\/li>\n<li><strong>\u9748\u6d3b\u7684\u6578\u64da\u6a21\u578b<\/strong>: \u53ef\u4ee5\u8f15\u9b06\u5730\u6dfb\u52a0\u65b0\u985e\u578b\u7684\u7bc0\u9ede\u548c\u908a\uff0c\u800c\u4e0d\u9700\u8981\u6539\u8b8a\u6574\u500b\u6578\u64da\u7d50\u69cb\u3002<\/li>\n<li><strong>\u53ef\u64f4\u5c55\u6027<\/strong>: \u96a8\u8457\u6578\u64da\u91cf\u7684\u589e\u9577\uff0c\u5716\u5b58\u5132\u6578\u64da\u5eab\u80fd\u5920\u4fdd\u6301\u826f\u597d\u7684\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-iLmfuIokBH\">\u7d50\u8ad6<\/h2>\n<p>\u5716\u5b58\u5132\u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u7a2e\u65b0\u8208\u7684\u6578\u64da\u7ba1\u7406\u6280\u8853\uff0c\u70ba\u8655\u7406\u8907\u96dc\u95dc\u4fc2\u6578\u64da\u63d0\u4f9b\u4e86\u6709\u6548\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u96a8\u8457\u6578\u64da\u91cf\u7684\u6301\u7e8c\u589e\u9577\u548c\u61c9\u7528\u9700\u6c42\u7684\u591a\u6a23\u5316\uff0c\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u61c9\u7528\u524d\u666f\u5c07\u66f4\u52a0\u5ee3\u95ca\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u8655\u7406\u95dc\u806f\u6027\u6578\u64da\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u6280\u8853\u5c07\u662f\u672a\u4f86\u6210\u529f\u7684\u95dc\u9375\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc\u65bc<code>VPS<\/code>\u3001<code>\u9999\u6e2fVPS<\/code>\u3001<code>\u4f3a\u670d\u5668<\/code>\u3001<code>\u96f2\u4f3a\u670d\u5668<\/code>\u7b49\u670d\u52d9\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9 <a href=\"https:\/\/server.hk\">Server.HK<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6df1\u5165\u63a2\u8a0e\u5716\u5b58\u5132\u6578\u64da\u5eab\u7684\u539f\u7406\u53ca\u5176\u61c9\u7528\uff0c\u63ed\u793a\u5982\u4f55\u9ad8\u6548\u7ba1\u7406\u548c\u5206\u6790\u8907\u96dc\u6578\u64da\u95dc\u4fc2\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-189490","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/189490","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=189490"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/189490\/revisions"}],"predecessor-version":[{"id":189491,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/189490\/revisions\/189491"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=189490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=189490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=189490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}