{"id":81317,"date":"2026-07-25T00:59:26","date_gmt":"2026-07-24T16:59:26","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/81317.html"},"modified":"2026-07-25T00:59:26","modified_gmt":"2026-07-24T16:59:26","slug":"%e4%b8%80%e5%8f%b0-2c2g-%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e7%9a%84-kingbasees-%e5%ae%89%e8%a3%85%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/81317.html","title":{"rendered":"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55"},"content":{"rendered":"<h3>\u5148\u628a\u73af\u5883\u843d\u5230\u4e00\u53f0\u673a\u5668\u4e0a<\/h3>\n<p>\u63a5\u89e6\u4e00\u5957\u65b0\u6570\u636e\u5e93&#xff0c;\u4e0d\u80fd\u53ea\u76ef\u7740 SQL \u8bed\u6cd5\u3002\u771f\u6b63\u5f00\u59cb\u7528\u7684\u65f6\u5019&#xff0c;\u6700\u5148\u78b0\u5230\u7684\u5f80\u5f80\u662f\u53e6\u4e00\u6279\u95ee\u9898&#xff1a;\u5b89\u88c5\u5305\u600e\u4e48\u9009&#xff0c;\u76ee\u5f55\u653e\u54ea\u91cc&#xff0c;\u6570\u636e\u5e93\u5b9e\u4f8b\u600e\u4e48\u521d\u59cb\u5316&#xff0c;\u670d\u52a1\u600e\u4e48\u542f\u505c&#xff0c;\u5ba2\u6237\u7aef\u600e\u4e48\u8fde&#xff0c;\u6388\u6743\u6587\u4ef6\u653e\u5728\u54ea&#xff0c;\u65e5\u5fd7\u51fa\u4e86\u95ee\u9898\u53bb\u54ea\u770b\u3002<\/p>\n<p>\u8fd9\u4e9b\u95ee\u9898\u4e0d\u590d\u6742&#xff0c;\u4f46\u5fc5\u987b\u5148\u8dd1\u4e00\u904d\u3002\u5426\u5219\u540e\u9762\u5199 SQL\u3001\u5907\u4efd\u6062\u590d\u3001\u5de5\u5177\u4f7f\u7528\u65f6&#xff0c;\u73af\u5883\u672c\u8eab\u4e00\u76f4\u4e0d\u8e0f\u5b9e\u3002\u5c24\u5176\u662f\u4ece MySQL \u8fc7\u6765&#xff0c;\u5f88\u591a\u4e60\u60ef\u4f1a\u4e0b\u610f\u8bc6\u5957\u8fc7\u53bb&#xff0c;\u6bd4\u5982\u9ed8\u8ba4\u7aef\u53e3\u3001\u5ba2\u6237\u7aef\u8fde\u63a5\u65b9\u5f0f\u3001\u670d\u52a1\u7ba1\u7406\u547d\u4ee4\u3001\u6570\u636e\u76ee\u5f55\u4f4d\u7f6e\u3002KingbaseES \u5e95\u5c42\u548c PostgreSQL \u6709\u5173\u7cfb&#xff0c;\u4f46\u5de5\u5177\u540d\u3001\u76ee\u5f55\u7ed3\u6784\u3001\u517c\u5bb9\u6a21\u5f0f\u3001\u6388\u6743\u673a\u5236\u90fd\u6709\u81ea\u5df1\u7684\u5904\u7406\u65b9\u5f0f&#xff0c;\u4e0d\u80fd\u53ea\u6309 PostgreSQL \u6216 MySQL \u7684\u7ecf\u9a8c\u731c\u3002<\/p>\n<p>\u6240\u4ee5\u7b2c\u4e00\u6b65\u5148\u642d\u4e00\u4e2a\u80fd\u53cd\u590d\u6298\u817e\u7684\u5355\u673a\u73af\u5883\u3002\u574f\u4e86\u53ef\u4ee5\u91cd\u6765&#xff0c;\u53c2\u6570\u6539\u9519\u4e86\u53ef\u4ee5\u56de\u6eda&#xff0c;\u6388\u6743\u6362\u9519\u4e86\u4e5f\u80fd\u77e5\u9053\u8be5\u6062\u590d\u54ea\u4e2a\u6587\u4ef6\u3002\u8fd9\u4e2a\u73af\u5883\u4e0d\u627f\u62c5\u751f\u4ea7\u804c\u8d23&#xff0c;\u53ea\u8d1f\u8d23\u628a\u5b89\u88c5\u3001\u521d\u59cb\u5316\u3001\u542f\u52a8\u3001\u8fde\u63a5\u8fd9\u51e0\u4ef6\u4e8b\u8dd1\u987a\u3002<\/p>\n<p>\u670d\u52a1\u5668\u662f\u4e00\u53f0\u963f\u91cc\u4e91\u8f7b\u91cf\u670d\u52a1\u5668&#xff0c;Alibaba Cloud Linux 3&#xff0c;x86_64 \u67b6\u6784&#xff0c;\u5185\u5b58\u63a5\u8fd1 2G&#xff0c;\u6839\u5206\u533a 40G\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165852-6a6399ccb1d0e.png\" alt=\"\u670d\u52a1\u5668\u57fa\u672c\u4fe1\u606f\" \/><\/p>\n<p>\u8fd9\u4e2a\u914d\u7f6e\u5f88\u666e\u901a&#xff0c;\u751a\u81f3\u6709\u70b9\u7d27\u3002\u5355\u673a\u5b89\u88c5\u3001\u542f\u52a8\u670d\u52a1\u3001\u8fde\u5e93\u9a8c\u8bc1\u3001\u5c0f\u8868\u6d4b\u8bd5\u6ca1\u6709\u95ee\u9898&#xff1b;\u62ff\u5b83\u505a\u6027\u80fd\u7ed3\u8bba\u5c31\u4e0d\u5408\u9002\u3002\u6bd4\u5982\u521d\u59cb\u5316\u65f6\u9ed8\u8ba4 shared_buffers \u662f 128MB&#xff0c;\u8fd9\u7c7b\u7ed3\u679c\u548c\u673a\u5668\u89c4\u683c\u6709\u5173&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u62ff\u6765\u8bc4\u4ef7\u6570\u636e\u5e93\u6027\u80fd\u3002<\/p>\n<p>\u8fd9\u53f0\u673a\u5668\u4e0a\u5df2\u7ecf\u6709 Docker \u548c docker-compose\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165855-6a6399cf2822e.png\" alt=\"Docker \u4fe1\u606f\" \/><\/p>\n<p>\u4e0d\u8fc7\u5b89\u88c5\u8fd9\u91cc\u6ca1\u6709\u8d70\u5bb9\u5668\u3002\u5b98\u7f51\u7684 Docker \u955c\u50cf\u9875\u9762\u5199\u5f97\u5f88\u6e05\u695a&#xff1a;\u8fd9\u4e2a\u955c\u50cf\u662f Docker \u73af\u5883\u91cc\u7684 tar \u7c7b\u578b\u7cbe\u7b80\u5305&#xff0c;\u53ea\u5305\u542b\u6570\u636e\u5e93\u4e3b\u4f53\u529f\u80fd&#xff0c;\u4e0d\u5305\u542b\u63a5\u53e3\u9a71\u52a8\u548c\u5de5\u5177\u7b49\u76f8\u5173\u5185\u5bb9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165855-6a6399cf581f1.png\" alt=\"\u6ca1\u6709\u9009\u62e9 Docker \u955c\u50cf\u7684\u539f\u56e0\" \/><\/p>\n<p>\u5982\u679c\u53ea\u662f\u5feb\u901f\u8d77\u4e00\u4e2a\u5e93&#xff0c;Docker \u955c\u50cf\u5f53\u7136\u7701\u4e8b\u3002\u4f46\u8fd9\u91cc\u4e0d\u53ea\u662f\u770b\u6570\u636e\u5e93\u8fdb\u7a0b\u80fd\u4e0d\u80fd\u8dd1&#xff0c;\u8fd8\u8981\u786e\u8ba4\u5b89\u88c5\u76ee\u5f55\u3001\u5de5\u5177\u76ee\u5f55\u3001\u521d\u59cb\u5316\u65b9\u5f0f\u3001\u670d\u52a1\u542f\u505c\u3001\u6388\u6743\u6587\u4ef6\u4f4d\u7f6e\u3002\u7cbe\u7b80\u955c\u50cf\u4f1a\u628a\u5f88\u591a\u5b89\u88c5\u7ec6\u8282\u85cf\u6389&#xff0c;\u53cd\u800c\u4e0d\u65b9\u4fbf\u6478\u6e05\u695a\u5b8c\u6574\u7ed3\u6784\u3002\u6240\u4ee5\u8fd9\u91cc\u76f4\u63a5\u7528 ISO \u5728\u670d\u52a1\u5668\u4e0a\u88c5\u3002<\/p>\n<h3>\u76ee\u5f55\u89c4\u5212<\/h3>\n<p>\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84\u662f \/opt\/Kingbase\/ES\/V9&#xff0c;\u8fd9\u91cc\u6ca1\u6709\u7528\u9ed8\u8ba4\u503c&#xff0c;\u7edf\u4e00\u653e\u5230 \/acowbo\/kingbase&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/<br \/>\n  install\/    # \u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55<br \/>\n  data\/       # \u6570\u636e\u76ee\u5f55<br \/>\n  backup\/     # \u5907\u4efd\u548c\u6388\u6743\u5907\u4efd<br \/>\n  scripts\/    # SQL \u6216 shell \u811a\u672c<br \/>\n  logs\/       # \u542f\u52a8\u65e5\u5fd7<br \/>\n  packages\/   # \u5b89\u88c5\u5305\u3001\u6388\u6743\u6587\u4ef6\u3001\u6821\u9a8c\u6587\u4ef6<\/p>\n<p>\u8fd9\u4e2a\u76ee\u5f55\u4e0d\u590d\u6742&#xff0c;\u5173\u952e\u662f\u5206\u5f00\u3002\u8f6f\u4ef6\u6587\u4ef6\u653e install&#xff0c;\u5b9e\u4f8b\u6570\u636e\u653e data&#xff0c;\u542f\u52a8\u65e5\u5fd7\u653e logs&#xff0c;\u5b89\u88c5\u5305\u548c\u6388\u6743\u6587\u4ef6\u653e packages&#xff0c;\u66ff\u6362\u6388\u6743\u524d\u7684\u65e7\u6587\u4ef6\u653e backup\u3002\u8def\u5f84\u4e00\u5f00\u59cb\u5b9a\u6e05\u695a&#xff0c;\u540e\u9762\u5c11\u5f88\u591a\u201c\u8fd9\u4e2a\u6587\u4ef6\u5230\u5e95\u5728\u54ea\u201d\u7684\u65f6\u95f4\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165856-6a6399d0bf36b.png\" alt=\"\u76ee\u5f55\u7ed3\u6784\u548c\u6743\u9650\" \/><\/p>\n<p>\u5b89\u88c5\u548c\u8fd0\u884c\u5c3d\u91cf\u4f7f\u7528\u666e\u901a\u7528\u6237&#xff0c;\u4e0d\u8981\u8ba9\u6570\u636e\u5e93\u5b9e\u4f8b\u76f4\u63a5\u8dd1\u5728 root \u4e0b\u3002\u76ee\u5f55\u6743\u9650\u5df2\u7ecf\u7ed9\u5230 kingbase \u7528\u6237&#xff0c;\u540e\u9762\u6267\u884c setup.sh\u3001initdb\u3001sys_ctl&#xff0c;\u90fd\u56f4\u7ed5\u8fd9\u4e2a\u7528\u6237\u6765\u505a\u3002<\/p>\n<h3>\u5b89\u88c5\u5305\u4e0b\u8f7d\u548c\u6821\u9a8c<\/h3>\n<p>\u670d\u52a1\u5668\u662f x86_64&#xff0c;\u4e0b\u8f7d\u65f6\u9009 X64_Linux\u3002\u4e0b\u8f7d\u9875\u4e0a\u7684\u5305\u5f88\u591a&#xff0c;Windows\u3001Docker\u3001\u6d77\u5149\u3001\u98de\u817e\u3001\u9cb2\u9e4f\u3001\u9f99\u82af\u3001\u7533\u5a01\u90fd\u5728\u4e00\u8d77&#xff0c;\u9009\u9519\u4e86\u4e5f\u80fd\u4e0b\u8f7d\u6210\u529f&#xff0c;\u4f46\u88c5\u7684\u65f6\u5019\u5c31\u4f1a\u6d6a\u8d39\u65f6\u95f4\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165857-6a6399d1ef682.png\" alt=\"\u5b89\u88c5\u5305\u4e0b\u8f7d\u9875\u9762\" \/><\/p>\n<p>\u5b89\u88c5\u5305\u653e\u5230&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/packages<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\u505a\u4e00\u6b21 MD5 \u6821\u9a8c\u3002\u8fd9\u4e2a\u52a8\u4f5c\u5f88\u5c0f&#xff0c;\u4f46\u6392\u67e5\u95ee\u9898\u65f6\u5f88\u6709\u7528\u3002\u81f3\u5c11\u80fd\u786e\u8ba4\u672c\u5730 ISO \u6ca1\u6709\u4e0b\u574f&#xff0c;\u4e5f\u80fd\u628a\u201c\u5b89\u88c5\u5305\u662f\u5426\u548c\u5b98\u7f51\u9875\u9762\u4e00\u81f4\u201d\u8fd9\u4e2a\u95ee\u9898\u5148\u6392\u6389\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165900-6a6399d484908.png\" alt=\"\u5b89\u88c5\u5305 MD5 \u6821\u9a8c\" \/><\/p>\n<p>\u6302\u8f7d ISO&#xff1a;<\/p>\n<p><span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/mnt\/kingbase<br \/>\n<span class=\"token function\">mount<\/span> <span class=\"token parameter variable\">-o<\/span> loop \/acowbo\/kingbase\/packages\/*.iso \/mnt\/kingbase<br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-lah<\/span> \/mnt\/kingbase<\/p>\n<p>\u6302\u8f7d\u65f6\u51fa\u73b0\u4e0b\u9762\u8fd9\u79cd\u63d0\u793a\u662f\u6b63\u5e38\u7684&#xff1a;<\/p>\n<p>WARNING: device write-protected, mounted read-only.<\/p>\n<p>ISO \u672c\u6765\u5c31\u662f\u53ea\u8bfb\u4ecb\u8d28\u3002\u53ea\u8981\u6302\u8f7d\u540e\u80fd\u770b\u5230 setup.sh \u548c setup \u76ee\u5f55&#xff0c;\u5b89\u88c5\u5165\u53e3\u5c31\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165903-6a6399d758269.png\" alt=\"\u6302\u8f7d ISO \u5b89\u88c5\u5305\" \/><\/p>\n<h3>console \u6a21\u5f0f\u5b89\u88c5<\/h3>\n<p>\u670d\u52a1\u5668\u6ca1\u6709\u56fe\u5f62\u684c\u9762&#xff0c;SSH \u91cc\u76f4\u63a5\u7528 console \u6a21\u5f0f&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> \/mnt\/kingbase<br \/>\n<span class=\"token function\">sh<\/span> setup.sh <span class=\"token parameter variable\">-i<\/span> console<\/p>\n<p>\u4e0d\u5e26 -i console \u65f6&#xff0c;\u5b89\u88c5\u5668\u53ef\u80fd\u4f1a\u5c1d\u8bd5\u56fe\u5f62\u5b89\u88c5\u3002\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u6ca1\u6709 X11 \u73af\u5883&#xff0c;\u8fd9\u6761\u8def\u901a\u5e38\u8d70\u4e0d\u901a\u3002\u52a0\u4e0a -i console \u540e&#xff0c;\u5b89\u88c5\u6d41\u7a0b\u5c31\u5728\u7ec8\u7aef\u91cc\u4e00\u6b65\u4e00\u6b65\u4ea4\u4e92\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165903-6a6399d7dc67d.png\" alt=\"console \u6a21\u5f0f\u542f\u52a8\u5b89\u88c5\u5668\" \/><\/p>\n<p>\u542f\u52a8\u540e\u80fd\u770b\u5230\u5b89\u88c5\u5668\u68c0\u6d4b\u5230 Java 1.8&#xff0c;\u7136\u540e\u8fdb\u5165\u6b22\u8fce\u9875\u3002\u63d0\u793a Press [ENTER] to next \u65f6&#xff0c;\u76f4\u63a5\u56de\u8f66\u7ee7\u7eed\u3002<\/p>\n<p>\u8bb8\u53ef\u534f\u8bae\u9700\u8981\u7ffb\u5230\u7ed3\u5c3e\u3002\u5230\u9009\u62e9\u9879\u65f6&#xff0c;\u8f93\u5165 1 \u63a5\u53d7&#xff1a;<\/p>\n<p>Press [1] Accept, [2] Refuse, [3] Redisplay:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165906-6a6399da28a7b.png\" alt=\"\u63a5\u53d7\u8bb8\u53ef\u534f\u8bae\" \/><\/p>\n<p>\u6388\u6743\u6587\u4ef6\u90a3\u4e00\u6b65\u53ef\u4ee5\u5148\u56de\u8f66\u3002\u5b89\u88c5\u5668\u4f1a\u63d0\u793a&#xff1a;\u5982\u679c\u6ca1\u6709\u9009\u62e9 license \u6587\u4ef6&#xff0c;\u4f1a\u4f7f\u7528\u5185\u7f6e\u8bd5\u7528\u6388\u6743&#xff0c;\u5e76\u63d0\u9192\u5728\u6709\u6548\u671f\u5185\u53ca\u65f6\u66f4\u65b0\u6388\u6743\u6587\u4ef6\u3002\u8fd9\u91cc\u5148\u8df3\u8fc7&#xff0c;\u5b89\u88c5\u53ef\u4ee5\u7ee7\u7eed\u8d70\u3002\u5b89\u88c5\u5b8c\u6210\u540e\u518d\u66ff\u6362\u5f00\u53d1\u7248\u6388\u6743\u3002<\/p>\n<p>\u5b89\u88c5\u8def\u5f84\u586b\u89c4\u5212\u597d\u7684\u76ee\u5f55&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/install<\/p>\n<p>\u5b89\u88c5\u5668\u4e0d\u4f1a\u76f4\u63a5\u628a\u6240\u6709\u6587\u4ef6\u6563\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b&#xff0c;\u800c\u662f\u7ee7\u7eed\u521b\u5efa\u7248\u672c\u76ee\u5f55\u3002\u672c\u6b21\u5b89\u88c5\u5b8c\u6210\u540e\u7684\u5b9e\u9645\u8def\u5f84\u662f&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165907-6a6399dbc9274.png\" alt=\"\u9009\u62e9\u81ea\u5b9a\u4e49\u5b89\u88c5\u76ee\u5f55\" \/><\/p>\n<p>\u5b89\u88c5\u7ec4\u4ef6\u9009\u62e9 Full\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165908-6a6399dc9bf2c.png\" alt=\"\u9009\u62e9\u5b89\u88c5\u7ec4\u4ef6\" \/><\/p>\n<p>\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u9009 Server&#xff0c;\u53ea\u5b89\u88c5\u6570\u636e\u5e93\u670d\u52a1\u3002\u4f46\u5b8c\u6574\u5b89\u88c5\u4f1a\u4fdd\u7559\u66f4\u591a\u5ba2\u6237\u7aef\u5de5\u5177\u548c\u8f85\u52a9\u5de5\u5177&#xff0c;\u9002\u5408\u628a\u76ee\u5f55\u7ed3\u6784\u5148\u770b\u5168\u3002\u5c24\u5176\u540e\u9762\u8981\u7528 ksql\u3001sys_ctl\u3001sys_dump\u3001sys_restore \u8fd9\u4e9b\u5de5\u5177\u65f6&#xff0c;\u5b8c\u6574\u5b89\u88c5\u66f4\u7701\u5fc3\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u5c4f\u5e55\u4e0a\u4f1a\u5217\u51fa\u5173\u952e\u76ee\u5f55&#xff1a;<\/p>\n<p>Boot: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/install<br \/>\nProduct Manual: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/doc<br \/>\nDatabase Operations Tool: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/SupTools<br \/>\nServer: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server<br \/>\nHigh Availability: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/KingbaseHA<br \/>\nInterface: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Interface<br \/>\nDeployTool: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/ClientTools\/guitools\/DeployTools<br \/>\nKDTS: \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/ClientTools\/guitools\/KDts<br \/>\nKStudio(CS): \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/ClientTools\/guitools\/KStudio<\/p>\n<p>\u8fd9\u4e00\u6b65\u53ea\u662f\u628a\u8f6f\u4ef6\u88c5\u5230\u78c1\u76d8\u4e0a&#xff0c;\u8fd8\u6ca1\u6709\u521b\u5efa\u6570\u636e\u5e93\u5b9e\u4f8b\u3002\u6362\u53e5\u8bdd\u8bf4&#xff0c;Server\/bin \u91cc\u7684\u5de5\u5177\u5df2\u7ecf\u6709\u4e86&#xff0c;\u4f46\u6570\u636e\u76ee\u5f55\u8fd8\u6ca1\u521d\u59cb\u5316&#xff0c;\u6570\u636e\u5e93\u670d\u52a1\u4e5f\u8fd8\u6ca1\u542f\u52a8\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165909-6a6399dd90b86.png\" alt=\"\u5b89\u88c5\u5b8c\u6210\u540e\u7684\u76ee\u5f55\u4fe1\u606f\" \/><\/p>\n<h3>\u4e0d\u8d70 Kconsole<\/h3>\n<p>\u5b89\u88c5\u7ed3\u675f\u65f6&#xff0c;\u7a0b\u5e8f\u63d0\u793a\u53ef\u4ee5\u542f\u52a8 Kconsole \u521d\u59cb\u5316\u6570\u636e\u5e93&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server\/bin\/kconsole.sh<\/p>\n<p>\u5b9e\u9645\u5728 SSH \u91cc\u6267\u884c\u4f1a\u62a5\u9519&#xff1a;<\/p>\n<p>No X11 DISPLAY variable was set<br \/>\njava.awt.HeadlessException<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165911-6a6399df1e4fa.png\" alt=\"Kconsole \u5728\u65e0\u56fe\u5f62\u754c\u9762\u670d\u52a1\u5668\u4e0a\u62a5\u9519\" \/><\/p>\n<p>\u8fd9\u4e2a\u62a5\u9519\u4e0d\u662f\u6570\u636e\u5e93\u5b89\u88c5\u5931\u8d25&#xff0c;\u800c\u662f\u5de5\u5177\u9700\u8981\u56fe\u5f62\u754c\u9762\u3002\u670d\u52a1\u5668\u6ca1\u6709 X11 DISPLAY&#xff0c;Swing \u7a97\u53e3\u8d77\u4e0d\u6765\u3002\u547d\u4ee4\u884c\u670d\u52a1\u5668\u4e0a\u6ca1\u5fc5\u8981\u5361\u5728\u8fd9\u91cc&#xff0c;\u76f4\u63a5\u7528 initdb \u521d\u59cb\u5316\u5b9e\u4f8b\u66f4\u76f4\u63a5\u3002<\/p>\n<p>\u5148\u786e\u8ba4\u51e0\u4e2a\u5de5\u5177\u786e\u5b9e\u5728\u5b89\u88c5\u76ee\u5f55\u4e0b&#xff1a;<\/p>\n<p><span class=\"token function\">find<\/span> \/acowbo\/kingbase\/install <span class=\"token parameter variable\">-name<\/span> kconsole.sh <span class=\"token parameter variable\">-o<\/span> <span class=\"token parameter variable\">-name<\/span> initdb <span class=\"token parameter variable\">-o<\/span> <span class=\"token parameter variable\">-name<\/span> sys_ctl <span class=\"token parameter variable\">-o<\/span> <span class=\"token parameter variable\">-name<\/span> ksql<\/p>\n<p>\u80fd\u770b\u5230\u8fd9\u4e9b\u8def\u5f84&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server\/bin\/ksql<br \/>\n\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server\/bin\/kconsole.sh<br \/>\n\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server\/bin\/initdb<br \/>\n\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server\/bin\/sys_ctl<br \/>\n\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/ClientTools\/bin\/ksql<\/p>\n<p>Server\/bin \u91cc\u7684\u8fd9\u5957\u5de5\u5177\u5c31\u662f\u540e\u9762\u4e3b\u8981\u4f7f\u7528\u7684\u5165\u53e3\u3002<\/p>\n<h3>initdb \u521d\u59cb\u5316\u5b9e\u4f8b<\/h3>\n<p>\u521d\u59cb\u5316\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server\/bin\/initdb <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-D<\/span> \/acowbo\/kingbase\/data <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-U<\/span> system <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-W<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-E<\/span> UTF8 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-m<\/span> oracle <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;enable-ci<\/p>\n<p>\u51e0\u4e2a\u53c2\u6570\u542b\u4e49\u5982\u4e0b&#xff1a;<\/p>\n<p>-D \/acowbo\/kingbase\/data   \u6307\u5b9a\u6570\u636e\u76ee\u5f55<br \/>\n-U system                  \u6307\u5b9a\u8d85\u7ea7\u7528\u6237<br \/>\n-W                         \u4ea4\u4e92\u8f93\u5165\u8d85\u7ea7\u7528\u6237\u5bc6\u7801<br \/>\n-E UTF8                    \u6307\u5b9a\u7f16\u7801<br \/>\n-m oracle                  \u4f7f\u7528 oracle \u517c\u5bb9\u6a21\u5f0f<br \/>\n&#8211;enable-ci                \u5f00\u542f\u5927\u5c0f\u5199\u4e0d\u654f\u611f<\/p>\n<p>\u5bc6\u7801\u4e0d\u8981\u76f4\u63a5\u5199\u5230\u547d\u4ee4\u91cc&#xff0c;-W \u4f1a\u8ba9\u7ec8\u7aef\u4ea4\u4e92\u8f93\u5165\u4e24\u6b21\u3002\u521d\u59cb\u5316\u8fc7\u7a0b\u4e2d\u4f1a\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\u3001\u7cfb\u7edf\u5e93\u3001\u5ba1\u8ba1\u76f8\u5173\u5185\u5bb9&#xff0c;\u5e76\u628a\u6570\u636e\u5237\u5230\u78c1\u76d8\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165913-6a6399e15db02.png\" alt=\"initdb \u521d\u59cb\u5316\u6210\u529f\" \/><\/p>\n<p>\u521d\u59cb\u5316\u8f93\u51fa\u91cc\u6709\u51e0\u4e2a\u4fe1\u606f\u53ef\u4ee5\u8bb0\u4e0b\u6765&#xff1a;<\/p>\n<p>locale: en_US.UTF-8<br \/>\ndefault max_connections: 100<br \/>\ndefault shared_buffers: 128MB<br \/>\ndefault time zone: Asia\/Shanghai<br \/>\nlocal authentication: trust<\/p>\n<p>trust \u8ba4\u8bc1\u8981\u6ce8\u610f\u3002\u6d4b\u8bd5\u673a\u4e0a\u5148\u8dd1\u901a\u6d41\u7a0b\u53ef\u4ee5\u63a5\u53d7&#xff0c;\u4f46\u6b63\u5f0f\u73af\u5883\u4e0d\u80fd\u76f4\u63a5\u7167\u642c\u3002\u540e\u9762\u6d89\u53ca\u8fde\u63a5\u8ba4\u8bc1\u65f6&#xff0c;\u8981\u5355\u72ec\u6539 sys_hba.conf&#xff0c;\u4e0d\u80fd\u8ba9\u672c\u5730\u8fde\u63a5\u957f\u671f\u65e0\u5bc6\u7801\u653e\u5f00\u3002<\/p>\n<p>\u521d\u59cb\u5316\u6210\u529f\u540e&#xff0c;\u5b89\u88c5\u5668\u7ed9\u51fa\u7684\u542f\u52a8\u547d\u4ee4\u662f&#xff1a;<\/p>\n<p>\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server\/bin\/sys_ctl <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-D<\/span> \/acowbo\/kingbase\/data <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-l<\/span> logfile start<\/p>\n<p>\u8fd9\u91cc\u7684 logfile \u6700\u597d\u6362\u6210\u660e\u786e\u8def\u5f84&#xff0c;\u65b9\u4fbf\u540e\u9762\u67e5\u542f\u52a8\u65e5\u5fd7\u3002<\/p>\n<h3>\u56fa\u5b9a\u5e38\u7528\u547d\u4ee4\u8def\u5f84<\/h3>\n<p>\u5b9e\u4f8b\u521d\u59cb\u5316\u5b8c\u6210\u540e&#xff0c;\u518d\u628a\u73af\u5883\u53d8\u91cf\u5199\u5230 kingbase \u7528\u6237\u7684 .bashrc&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">KES_HOME<\/span><span class=\"token operator\">&#061;<\/span>\/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/Server<br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">KINGBASE_DATA<\/span><span class=\"token operator\">&#061;<\/span>\/acowbo\/kingbase\/data<br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\"><span class=\"token environment constant\">PATH<\/span><\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\">$KES_HOME<\/span>\/bin:<span class=\"token environment constant\">$PATH<\/span><\/p>\n<p>\u5148\u521d\u59cb\u5316&#xff0c;\u518d\u5199\u73af\u5883\u53d8\u91cf&#xff0c;\u987a\u5e8f\u66f4\u6e05\u695a\u3002\u56e0\u4e3a\u5b89\u88c5\u8def\u5f84\u548c\u6570\u636e\u76ee\u5f55\u90fd\u5df2\u7ecf\u786e\u8ba4&#xff0c;\u5199\u8fdb\u53bb\u4ee5\u540e\u4e0d\u5bb9\u6613\u6539\u6765\u6539\u53bb\u3002<\/p>\n<p>\u52a0\u8f7d\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<p>\u786e\u8ba4\u5de5\u5177\u8def\u5f84&#xff1a;<\/p>\n<p><span class=\"token function\">which<\/span> ksql<br \/>\n<span class=\"token function\">which<\/span> sys_ctl<br \/>\n<span class=\"token function\">which<\/span> initdb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165916-6a6399e4236f2.png\" alt=\"\u52a0\u5165\u73af\u5883\u53d8\u91cf\" \/><\/p>\n<p>\u8fd9\u4e00\u6b65\u5b8c\u6210\u540e&#xff0c;\u547d\u4ee4\u5c31\u4e0d\u7528\u518d\u5199\u5b8c\u6574\u8def\u5f84\u4e86\u3002\u6bd4\u5982\u542f\u52a8\u670d\u52a1\u65f6\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 sys_ctl&#xff0c;\u8fde\u63a5\u6570\u636e\u5e93\u65f6\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 ksql\u3002<\/p>\n<h3>\u542f\u52a8\u670d\u52a1<\/h3>\n<p>\u5148\u5efa\u65e5\u5fd7\u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/acowbo\/kingbase\/logs<\/p>\n<p>\u542f\u52a8\u6570\u636e\u5e93&#xff1a;<\/p>\n<p>sys_ctl <span class=\"token parameter variable\">-D<\/span> <span class=\"token variable\">$KINGBASE_DATA<\/span> <span class=\"token parameter variable\">-l<\/span> \/acowbo\/kingbase\/logs\/kingbase.log start<\/p>\n<p>\u542f\u52a8\u6210\u529f\u540e\u4f1a\u770b\u5230&#xff1a;<\/p>\n<p>waiting for server to start&#8230;. done<br \/>\nserver started<\/p>\n<p>\u68c0\u67e5\u72b6\u6001&#xff1a;<\/p>\n<p>sys_ctl <span class=\"token parameter variable\">-D<\/span> <span class=\"token variable\">$KINGBASE_DATA<\/span> status<\/p>\n<p>\u518d\u770b\u7aef\u53e3\u76d1\u542c&#xff1a;<\/p>\n<p>ss <span class=\"token parameter variable\">-lntp<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token number\">54321<\/span><\/p>\n<p>\u672c\u6b21\u5b9e\u4f8b\u76d1\u542c\u5728 54321&#xff0c;\u8fdb\u7a0b\u5c5e\u4e8e kingbase \u7528\u6237\u3002<\/p>\n<h3>ksql \u7b2c\u4e00\u6b21\u8fde\u63a5<\/h3>\n<p>\u7b2c\u4e00\u6b21\u8fde\u63a5\u76f4\u63a5\u5199&#xff1a;<\/p>\n<p>ksql <span class=\"token parameter variable\">-h<\/span> <span class=\"token number\">127.0<\/span>.0.1 <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">54321<\/span> <span class=\"token parameter variable\">-U<\/span> system<\/p>\n<p>\u7ed3\u679c\u62a5\u9519&#xff1a;<\/p>\n<p>FATAL: database &#034;system&#034; does not exist<\/p>\n<p>\u8fd9\u4e2a\u9519\u8bef\u5f88\u5bb9\u6613\u8bef\u5224\u6210\u5bc6\u7801\u95ee\u9898&#xff0c;\u5176\u5b9e\u4e0d\u662f\u3002\u6ca1\u6709\u6307\u5b9a -d \u65f6&#xff0c;ksql \u4f1a\u5c1d\u8bd5\u8fde\u63a5\u548c\u7528\u6237\u540d\u540c\u540d\u7684\u6570\u636e\u5e93\u3002\u8fd9\u91cc\u7528\u6237\u662f system&#xff0c;\u4f46\u6570\u636e\u5e93\u91cc\u6ca1\u6709\u53eb system \u7684\u5e93\u3002<\/p>\n<p>\u8865\u4e0a\u6570\u636e\u5e93\u540d\u5373\u53ef&#xff1a;<\/p>\n<p>ksql <span class=\"token parameter variable\">-h<\/span> <span class=\"token number\">127.0<\/span>.0.1 <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">54321<\/span> <span class=\"token parameter variable\">-U<\/span> system <span class=\"token parameter variable\">-d<\/span> <span class=\"token builtin class-name\">test<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165917-6a6399e58e0e1.png\" alt=\"\u670d\u52a1\u72b6\u6001\u3001\u7aef\u53e3\u548c\u7b2c\u4e00\u6b21\u8fde\u63a5\u9a8c\u8bc1\" \/><\/p>\n<p>\u8fdb\u5e93\u540e\u67e5\u7248\u672c\u548c\u5f53\u524d\u8fde\u63a5&#xff1a;<\/p>\n<p><span class=\"token keyword\">select<\/span> version<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">select<\/span> current_database<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">current_user<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fd4\u56de\u7248\u672c\u662f KingbaseES V009R001C010&#xff0c;\u5f53\u524d\u6570\u636e\u5e93\u662f test&#xff0c;\u5f53\u524d\u7528\u6237\u662f system\u3002<\/p>\n<p>\u8fde\u63a5\u9a8c\u8bc1\u65f6\u8fd8\u505a\u4e86\u4e00\u4e2a\u5927\u5c0f\u5199\u4e0d\u654f\u611f\u6d4b\u8bd5&#xff1a;\u63d2\u5165 Hello&#xff0c;\u7528 hello \u67e5\u8be2&#xff0c;\u53ef\u4ee5\u67e5\u5230\u7ed3\u679c\u3002\u8fd9\u548c\u521d\u59cb\u5316\u65f6\u52a0\u7684 &#8211;enable-ci \u5bf9\u5f97\u4e0a\u3002\u7b2c\u4e00\u6b21 create table \u5c11\u6253\u4e86\u4e00\u4e2a c&#xff0c;\u4fee\u6b63\u540e\u7ee7\u7eed\u6267\u884c\u5373\u53ef&#xff0c;\u8fd9\u79cd\u5c0f\u624b\u8bef\u4e0d\u5f71\u54cd\u7ed3\u8bba\u3002<\/p>\n<h3>\u67e5\u770b\u6388\u6743<\/h3>\n<p>\u5b89\u88c5\u65f6\u6ca1\u6709\u6307\u5b9a\u6388\u6743\u6587\u4ef6&#xff0c;\u6240\u4ee5\u6570\u636e\u5e93\u4f7f\u7528\u5185\u7f6e\u8bd5\u7528\u6388\u6743\u3002\u8fde\u4e0a test \u5e93\u540e\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token keyword\">select<\/span> get_license_validdays<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fd4\u56de 90&#xff0c;\u8bf4\u660e\u5f53\u524d\u6388\u6743\u5269\u4f59 90 \u5929\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165920-6a6399e8512f2.png\" alt=\"\u8bd5\u7528\u6388\u6743\u5269\u4f59 90 \u5929\" \/><\/p>\n<p>\u5b98\u7f51\u6388\u6743\u9875\u9762\u91cc\u6709\u4e0d\u540c\u7c7b\u578b\u7684\u6388\u6743\u3002\u5b9e\u9a8c\u73af\u5883\u53ea\u505a\u529f\u80fd\u9a8c\u8bc1&#xff0c;\u9009\u5f00\u53d1\u7248\u6388\u6743\u5373\u53ef\u3002\u6388\u6743\u6587\u4ef6\u5185\u5bb9\u3001\u673a\u5668\u7801\u3001\u6388\u6743\u7f16\u53f7\u8fd9\u4e9b\u4fe1\u606f\u4e0d\u9002\u5408\u653e\u5230\u516c\u5f00\u5185\u5bb9\u91cc&#xff0c;\u53ea\u8bb0\u5f55\u7c7b\u578b\u548c\u9a8c\u8bc1\u7ed3\u679c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165920-6a6399e883052.png\" alt=\"\u5efa\u8bae\u9009\u62e9\u5f00\u53d1\u7248\u6388\u6743\" \/><\/p>\n<h3>\u66ff\u6362\u6388\u6743<\/h3>\n<p>\u65b0\u6388\u6743\u4e0b\u8f7d\u5230 \/acowbo\/kingbase\/packages \u540e&#xff0c;\u5148\u5907\u4efd\u5b89\u88c5\u76ee\u5f55\u91cc\u7684\u65e7\u6388\u6743\u6587\u4ef6\u3002\u8fd9\u91cc\u8981\u5148\u521b\u5efa\u5907\u4efd\u76ee\u5f55&#xff0c;\u5426\u5219 cp \u4f1a\u62a5 No such file or directory\u3002<\/p>\n<p><span class=\"token assign-left variable\">BACKUP_DIR<\/span><span class=\"token operator\">&#061;<\/span>\/acowbo\/kingbase\/backup\/license-<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%F-%H%M%S<span class=\"token variable\">)<\/span><\/span><br \/>\n<span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>&#034;<\/span><br \/>\n<span class=\"token function\">cp<\/span> \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/license.dat <span class=\"token punctuation\">\\\\<\/span><br \/>\n   <span class=\"token string\">&#034;<span class=\"token variable\">$BACKUP_DIR<\/span>\/license.dat.bak&#034;<\/span><\/p>\n<p>\u518d\u8986\u76d6\u65b0\u6388\u6743&#xff1a;<\/p>\n<p><span class=\"token function\">cp<\/span> \/acowbo\/kingbase\/packages\/license_4_V009R001C-\u5f00\u53d1\u7248-365\u5929.dat <span class=\"token punctuation\">\\\\<\/span><br \/>\n   \/acowbo\/kingbase\/install\/KESRealPro\/V009R001C010\/license.dat<\/p>\n<p>\u6388\u6743\u6587\u4ef6\u66ff\u6362\u540e\u91cd\u542f\u6570\u636e\u5e93&#xff1a;<\/p>\n<p>sys_ctl <span class=\"token parameter variable\">-D<\/span> <span class=\"token variable\">$KINGBASE_DATA<\/span> stop<br \/>\nsys_ctl <span class=\"token parameter variable\">-D<\/span> <span class=\"token variable\">$KINGBASE_DATA<\/span> <span class=\"token parameter variable\">-l<\/span> \/acowbo\/kingbase\/logs\/kingbase.log start<\/p>\n<p>\u91cd\u65b0\u8fde\u63a5&#xff0c;\u518d\u67e5\u4e00\u6b21&#xff1a;<\/p>\n<p><span class=\"token keyword\">select<\/span> get_license_validdays<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fd4\u56de 365&#xff0c;\u8bf4\u660e\u65b0\u7684\u5f00\u53d1\u7248\u6388\u6743\u5df2\u7ecf\u751f\u6548\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165922-6a6399ea341e7.png\" alt=\"\u66ff\u6362\u6388\u6743\u5e76\u9a8c\u8bc1 365 \u5929\" \/><\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u5230\u8fd9\u91cc&#xff0c;\u6570\u636e\u5e93\u5df2\u7ecf\u4e0d\u53ea\u662f\u201c\u6587\u4ef6\u88c5\u4e0a\u53bb\u4e86\u201d\u3002ISO \u80fd\u6b63\u5e38\u6302\u8f7d&#xff0c;console \u5b89\u88c5\u80fd\u8d70\u5b8c&#xff0c;initdb \u80fd\u628a\u5b9e\u4f8b\u521d\u59cb\u5316\u51fa\u6765&#xff0c;sys_ctl \u80fd\u628a\u670d\u52a1\u62c9\u8d77\u6765&#xff0c;ksql \u4e5f\u80fd\u8fde\u8fdb test \u5e93\u3002\u6388\u6743\u8fd9\u5757\u4e5f\u987a\u624b\u9a8c\u8bc1\u4e86\u4e00\u4e0b&#xff1a;\u9ed8\u8ba4\u8bd5\u7528\u6388\u6743\u662f 90 \u5929&#xff0c;\u6362\u6210\u5f00\u53d1\u7248\u6388\u6743\u540e&#xff0c;get_license_validdays() \u8fd4\u56de 365\u3002<\/p>\n<p>\u76ee\u5f55\u6309\u81ea\u5df1\u7684\u73af\u5883\u8c03\u6574\u5373\u53ef&#xff0c;\u4e0d\u7528\u7167\u642c\u8fd9\u91cc\u7684\u8def\u5f84\u3002\u53ea\u8981\u628a\u8f6f\u4ef6\u3001\u6570\u636e\u3001\u65e5\u5fd7\u3001\u5b89\u88c5\u5305\u3001\u6388\u6743\u6587\u4ef6\u5206\u5f00&#xff0c;\u540e\u9762\u5220\u5b9e\u4f8b\u3001\u67e5\u65e5\u5fd7\u3001\u6362\u6388\u6743\u3001\u505a\u5907\u4efd\u90fd\u4f1a\u7701\u4e8b\u5f88\u591a\u3002<\/p>\n<p>\u8fd9\u6b21\u8fd8\u7559\u4e0b\u4e86\u51e0\u4e2a\u5c0f\u5751&#xff1a;kconsole.sh \u5728\u6ca1\u6709\u56fe\u5f62\u754c\u9762\u7684\u670d\u52a1\u5668\u4e0a\u8d77\u4e0d\u6765&#xff0c;\u76f4\u63a5\u7528 initdb \u66f4\u7701\u4e8b&#xff1b;ksql -U system \u4e0d\u6307\u5b9a\u6570\u636e\u5e93\u540d\u65f6\u4f1a\u53bb\u8fde system \u5e93&#xff0c;\u6240\u4ee5\u9700\u8981\u8865 -d test&#xff1b;\u66ff\u6362 license.dat \u524d\u8981\u5148\u5efa\u5907\u4efd\u76ee\u5f55&#xff0c;\u4e0d\u7136 cp \u4e5f\u4f1a\u62a5\u9519\u3002<\/p>\n<p>\u73b0\u5728\u8fd9\u4e2a\u5b9e\u4f8b\u8fd8\u8c08\u4e0d\u4e0a\u751f\u4ea7\u914d\u7f6e\u3002\u8ba4\u8bc1\u65b9\u5f0f\u3001\u81ea\u542f\u52a8\u3001\u65e5\u5fd7\u8f6e\u8f6c\u3001\u5907\u4efd\u7b56\u7565\u90fd\u6ca1\u5904\u7406\u3002\u7528\u5b83\u8bd5\u5de5\u5177\u3001\u8bd5 SQL\u3001\u8bd5\u5907\u4efd\u6062\u590d&#xff0c;\u5df2\u7ecf\u591f\u7528\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u628a\u73af\u5883\u843d\u5230\u4e00\u53f0\u673a\u5668\u4e0a<br \/>\n\u63a5\u89e6\u4e00\u5957\u65b0\u6570\u636e\u5e93&#xff0c;\u4e0d\u80fd\u53ea\u76ef\u7740 SQL \u8bed\u6cd5\u3002\u771f\u6b63\u5f00\u59cb\u7528\u7684\u65f6\u5019&#xff0c;\u6700\u5148\u78b0\u5230\u7684\u5f80\u5f80\u662f\u53e6\u4e00\u6279\u95ee\u9898&#xff1a;\u5b89\u88c5\u5305\u600e\u4e48\u9009&#xff0c;\u76ee\u5f55\u653e\u54ea\u91cc&#xff0c;\u6570\u636e\u5e93\u5b9e\u4f8b\u600e\u4e48\u521d\u59cb\u5316&#xff0c;\u670d\u52a1\u600e\u4e48\u542f\u505c&#xff0c;\u5ba2\u6237\u7aef\u600e\u4e48\u8fde&#xff0c;\u6388\u6743\u6587\u4ef6\u653e\u5728\u54ea&#xff0c;\u65e5\u5fd7\u51fa\u4e86\u95ee\u9898\u53bb\u54ea\u770b\u3002<br \/>\n\u8fd9\u4e9b\u95ee\u9898\u4e0d\u590d\u6742&#xff0c;\u4f46\u5fc5\u987b\u5148\u8dd1\u4e00\u904d\u3002\u5426\u5219\u540e\u9762\u5199 SQL\u3001\u5907\u4efd\u6062\u590d\u3001\u5de5\u5177\u4f7f\u7528\u65f6&#xff0c;\u73af\u5883\u672c\u8eab\u4e00\u76f4\u4e0d\u8e0f\u5b9e\u3002\u5c24\u5176<\/p>\n","protected":false},"author":2,"featured_media":81274,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9107,100,43,44],"topic":[],"class_list":["post-81317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-9107","tag-100","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/81317.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5148\u628a\u73af\u5883\u843d\u5230\u4e00\u53f0\u673a\u5668\u4e0a \u63a5\u89e6\u4e00\u5957\u65b0\u6570\u636e\u5e93&#xff0c;\u4e0d\u80fd\u53ea\u76ef\u7740 SQL \u8bed\u6cd5\u3002\u771f\u6b63\u5f00\u59cb\u7528\u7684\u65f6\u5019&#xff0c;\u6700\u5148\u78b0\u5230\u7684\u5f80\u5f80\u662f\u53e6\u4e00\u6279\u95ee\u9898&#xff1a;\u5b89\u88c5\u5305\u600e\u4e48\u9009&#xff0c;\u76ee\u5f55\u653e\u54ea\u91cc&#xff0c;\u6570\u636e\u5e93\u5b9e\u4f8b\u600e\u4e48\u521d\u59cb\u5316&#xff0c;\u670d\u52a1\u600e\u4e48\u542f\u505c&#xff0c;\u5ba2\u6237\u7aef\u600e\u4e48\u8fde&#xff0c;\u6388\u6743\u6587\u4ef6\u653e\u5728\u54ea&#xff0c;\u65e5\u5fd7\u51fa\u4e86\u95ee\u9898\u53bb\u54ea\u770b\u3002 \u8fd9\u4e9b\u95ee\u9898\u4e0d\u590d\u6742&#xff0c;\u4f46\u5fc5\u987b\u5148\u8dd1\u4e00\u904d\u3002\u5426\u5219\u540e\u9762\u5199 SQL\u3001\u5907\u4efd\u6062\u590d\u3001\u5de5\u5177\u4f7f\u7528\u65f6&#xff0c;\u73af\u5883\u672c\u8eab\u4e00\u76f4\u4e0d\u8e0f\u5b9e\u3002\u5c24\u5176\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/81317.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T16:59:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165852-6a6399ccb1d0e.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81317.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/81317.html\",\"name\":\"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T16:59:26+00:00\",\"dateModified\":\"2026-07-24T16:59:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/81317.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/81317.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81317.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/81317.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5148\u628a\u73af\u5883\u843d\u5230\u4e00\u53f0\u673a\u5668\u4e0a \u63a5\u89e6\u4e00\u5957\u65b0\u6570\u636e\u5e93&#xff0c;\u4e0d\u80fd\u53ea\u76ef\u7740 SQL \u8bed\u6cd5\u3002\u771f\u6b63\u5f00\u59cb\u7528\u7684\u65f6\u5019&#xff0c;\u6700\u5148\u78b0\u5230\u7684\u5f80\u5f80\u662f\u53e6\u4e00\u6279\u95ee\u9898&#xff1a;\u5b89\u88c5\u5305\u600e\u4e48\u9009&#xff0c;\u76ee\u5f55\u653e\u54ea\u91cc&#xff0c;\u6570\u636e\u5e93\u5b9e\u4f8b\u600e\u4e48\u521d\u59cb\u5316&#xff0c;\u670d\u52a1\u600e\u4e48\u542f\u505c&#xff0c;\u5ba2\u6237\u7aef\u600e\u4e48\u8fde&#xff0c;\u6388\u6743\u6587\u4ef6\u653e\u5728\u54ea&#xff0c;\u65e5\u5fd7\u51fa\u4e86\u95ee\u9898\u53bb\u54ea\u770b\u3002 \u8fd9\u4e9b\u95ee\u9898\u4e0d\u590d\u6742&#xff0c;\u4f46\u5fc5\u987b\u5148\u8dd1\u4e00\u904d\u3002\u5426\u5219\u540e\u9762\u5199 SQL\u3001\u5907\u4efd\u6062\u590d\u3001\u5de5\u5177\u4f7f\u7528\u65f6&#xff0c;\u73af\u5883\u672c\u8eab\u4e00\u76f4\u4e0d\u8e0f\u5b9e\u3002\u5c24\u5176","og_url":"https:\/\/www.wsisp.com\/helps\/81317.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T16:59:26+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724165852-6a6399ccb1d0e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/81317.html","url":"https:\/\/www.wsisp.com\/helps\/81317.html","name":"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T16:59:26+00:00","dateModified":"2026-07-24T16:59:26+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/81317.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/81317.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/81317.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e00\u53f0 2C2G \u670d\u52a1\u5668\u4e0a\u7684 KingbaseES \u5b89\u88c5\u8bb0\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=81317"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81317\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/81274"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=81317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=81317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=81317"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=81317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}