{"id":569,"date":"2025-11-03T20:09:58","date_gmt":"2025-11-03T12:09:58","guid":{"rendered":"https:\/\/www.bit.ac.cn\/?p=569"},"modified":"2026-01-16T16:42:17","modified_gmt":"2026-01-16T08:42:17","slug":"%e3%80%90%e6%99%ba%e8%83%bd%e4%bd%93%e3%80%91maxkb","status":"publish","type":"post","link":"https:\/\/www.bit.ac.cn\/index.php\/2025\/11\/03\/%e3%80%90%e6%99%ba%e8%83%bd%e4%bd%93%e3%80%91maxkb\/","title":{"rendered":"\u3010\u667a\u80fd\u4f53\u3011MaxKB"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1> \u5b89\u88c5\u914d\u7f6e\u6587\u4ef6<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u57fa\u7840\u914d\u7f6e\n## \u5b89\u88c5\u76ee\u5f55\nMAXKB_BASE=\/usr\/local\n## \u670d\u52a1\u7aef\u53e3\nMAXKB_PORT=12380\n## docker \u7f51\u6bb5\u8bbe\u7f6e\nMAXKB_DOCKER_SUBNET=172.31.250.192\/26\n# \u6570\u636e\u5e93\u914d\u7f6e\n## \u662f\u5426\u4f7f\u7528\u5916\u90e8\u6570\u636e\u5e93\nMAXKB_EXTERNAL_PGSQL=true\n## \u6570\u636e\u5e93\u5730\u5740\nPGSQL_HOST=192.168.1.100\n## \u6570\u636e\u5e93\u7aef\u53e3\nPGSQL_PORT=5432\n## \u6570\u636e\u5e93\u5e93\u540d\nPGSQL_DB=maxkb\n## \u6570\u636e\u5e93\u7528\u6237\u540d\nPGSQL_USER=hailey\n## \u6570\u636e\u5e93\u5bc6\u7801\nPGSQL_PASSWORD='Xnw2qw3NI3ebuN'\n# Redis\u914d\u7f6e\n## \u662f\u5426\u4f7f\u7528\u5916\u90e8Redis\nMAXKB_EXTERNAL_REDIS=true\n## Redis\u5730\u5740\nREDIS_HOST=192.168.1.100\n## Redis\u7aef\u53e3\nREDIS_PORT=6379\n## Redis\u6570\u636e\u5e93\nREDIS_DB=1\n## Redis\u5bc6\u7801\nREDIS_PASSWORD='~I9wzDOqSVe#3'\n# \u955c\u50cf\u914d\u7f6e\n## \u955c\u50cf\u4ed3\u5e93\nMAXKB_IMAGE_REPOSITORY=registry.fit2cloud.com\/maxkb\n## \u955c\u50cf\u540d\u79f0\nMAXKB_IMAGE=maxkb\n## \u7248\u672c\u53f7\nMAXKB_VERSION=v2.5.0<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2> postgres \u5b89\u88c5vector<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\ngit clone --branch v0.8.1 https:\/\/github.com\/pgvector\/pgvector.git\ncd pgvector\nmake\nmake install <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># Enable the extension\nCREATE EXTENSION vector;<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1> \u5b89\u88c5\u914d\u7f6e\u6587\u4ef6 2> postgres \u5b89\u88c5vector<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-569","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/posts\/569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/comments?post=569"}],"version-history":[{"count":3,"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/posts\/569\/revisions"}],"predecessor-version":[{"id":725,"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/posts\/569\/revisions\/725"}],"wp:attachment":[{"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/categories?post=569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bit.ac.cn\/index.php\/wp-json\/wp\/v2\/tags?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}