{"id":19051,"date":"2024-11-19T16:11:09","date_gmt":"2024-11-19T08:11:09","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19051\/"},"modified":"2024-11-19T16:11:09","modified_gmt":"2024-11-19T08:11:09","slug":"windows%e5%b9%b3%e5%8f%b0%e4%b8%8a%e5%ae%89%e8%a3%85gitlab%e7%9a%84%e6%ad%a5%e9%aa%a4%ef%bc%88%e8%af%a6%e8%a7%a3%ef%bc%89","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19051\/","title":{"rendered":"Windows\u5e73\u53f0\u4e0a\u5b89\u88c5GitLab\u7684\u6b65\u9aa4\uff08\u8be6\u89e3\uff09"},"content":{"rendered":"<p>gitlab\u662f\u4e00\u6b3e\u7528\u4e8e\u7ba1\u7406git\u4ed3\u5e93\u7684\u81ea\u6258\u7ba1\u8f6f\u4ef6\u3002\u5728\u56e2\u961f\u5408\u4f5c\u4e2d\uff0c\u4f7f\u7528gitlab\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u8ddf\u8e2a\u95ee\u9898\u5e76\u8fdb\u884c\u7248\u672c\u63a7\u5236\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5728windows\u5e73\u53f0\u4e0a\u5b89\u88c5gitlab\u7684\u6b65\u9aa4\u3002<\/p>\n<p>\u4e00\u3001\u5b89\u88c5GitLab\u8981\u6c42<\/p>\n<p>\u5728\u5b89\u88c5GitLab\u4e4b\u524d\uff0c\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ol>\n<li>Windows 64\u4f4d\u7248\u672c\uff08Windows Server 2012\u53ca\u4ee5\u4e0a\u7248\u672c\u3001Windows 10\/8\/7\uff09\uff1b<\/li>\n<li>4\u6838\u5fc3CPU\uff1b<\/li>\n<li>4GB RAM\uff1b<\/li>\n<li>2GB\u78c1\u76d8\u7a7a\u95f4\uff1b<\/li>\n<li>\u5b89\u88c5\u5e76\u914d\u7f6e.NET Framework 4.6.1\u4ee5\u4e0a\u7248\u672c\uff1b<\/li>\n<li>\u5b89\u88c5\u5e76\u914d\u7f6eMicrosoft SQL Server 2012\u4ee5\u4e0a\u7248\u672c\u3002<\/li>\n<\/ol>\n<p>\u4e8c\u3001\u5b89\u88c5GitLab\u6b65\u9aa4<\/p>\n<p>1.\u4e0b\u8f7dGitLab\u5b89\u88c5\u5305<\/p>\n<p>\u5728GitLab\u5b98\u7f51\u4e0b\u8f7dGitLab Community Edition\u7684\u5b89\u88c5\u5305\u3002\u9009\u62e9\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u5305\u8fdb\u884c\u4e0b\u8f7d\uff0c\u5e76\u9009\u62e9\u5408\u9002\u7684\u5730\u5740\u8fdb\u884c\u4e0b\u8f7d\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u89e3\u538b\u7f29\u5b89\u88c5\u5305\u3002<\/p>\n<p>2.\u5b89\u88c5GitLab<\/p>\n<p>\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\uff0c\u5f00\u59cb\u5b89\u88c5\u8fc7\u7a0b\uff0c\u4f9d\u6b21\u70b9\u51fb\u201cNext\u201d\u6309\u94ae\uff0c\u8fdb\u5165\u201cSelect Components\u201d\u9875\u9762\uff0c\u52fe\u9009\u201cGitLab Shell\u201d\u548c\u201cGitLab\u201d\u9009\u9879\uff0c\u7136\u540e\u70b9\u51fb\u201cNext\u201d\u6309\u94ae\u3002\u63a5\u7740\u8fdb\u5165\u201cSelect Installation Path\u201d\u9875\u9762\uff0c\u9009\u62e9GitLab\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4f7f\u7528\u9ed8\u8ba4\u7684\u5b89\u88c5\u8def\u5f84\u5373\u53ef\u3002\u7136\u540e\u70b9\u51fb\u201cInstall\u201d\u6309\u94ae\uff0c\u7b49\u5f85\u5b89\u88c5\u8fc7\u7a0b\u5b8c\u6210\u3002<\/p>\n<p>3.\u914d\u7f6eGitLab<\/p>\n<p>\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0cGitLab\u4f1a\u5728\u60a8\u7684\u8ba1\u7b97\u673a\u4e0a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cGitLab\u201d\u7684\u670d\u52a1\u3002\u5728Windows\u63a7\u5236\u53f0\u4e2d\uff0c\u627e\u5230\u8fd9\u4e2a\u670d\u52a1\u5e76\u53f3\u952e\u5355\u51fb\u5b83\uff0c\u7136\u540e\u9009\u62e9\u201c\u5c5e\u6027\u201d\u9009\u9879\u3002\u8fdb\u5165\u5c5e\u6027\u9875\u9762\uff0c\u9996\u5148\u9009\u62e9\u201c\u542f\u52a8\u7c7b\u578b\u201d\u4e3a\u201c\u81ea\u52a8\u201d\uff0c\u7136\u540e\u5207\u6362\u5230\u201c\u767b\u5f55\u201d\u9009\u9879\u5361\uff0c\u9009\u62e9\u201c\u672c\u5730\u7cfb\u7edf\u8d26\u6237\u201d\u5e76\u52fe\u9009\u201c\u5141\u8bb8\u670d\u52a1\u4e0e\u684c\u9762\u4ea4\u4e92\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5e94\u7528\u201d\u548c\u201c\u786e\u5b9a\u201d\u6309\u94ae\u3002<\/p>\n<p>4.\u542f\u52a8GitLab<\/p>\n<p>\u5728\u5b89\u88c5\u548c\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u542f\u52a8GitLab\u670d\u52a1\uff0c\u65b9\u6cd5\u662f\u5728Windows\u63a7\u5236\u53f0\u4e2d\u627e\u5230\u8fd9\u4e2a\u670d\u52a1\u5e76\u53f3\u952e\u5355\u51fb\u5b83\uff0c\u7136\u540e\u9009\u62e9\u201c\u542f\u52a8\u201d\u9009\u9879\u3002\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c\u5f85GitLab\u5b8c\u5168\u542f\u52a8\u540e\uff0c\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost:8090\uff08\u9ed8\u8ba4\u7aef\u53e3\u4e3a8090\uff09\u3002<\/p>\n<p>5.\u521d\u59cb\u8d26\u6237\u767b\u5f55<\/p>\n<p>\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95eeGitLab\u767b\u5f55\u9875\u9762\uff0c\u8f93\u5165\u521d\u59cb\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u7528\u6237\u540d\u4e3a\u201croot\u201d\uff0c\u5bc6\u7801\u4e3a\u60a8\u5728\u5b89\u88c5GitLab\u65f6\u8bbe\u7f6e\u7684\u5bc6\u7801\u3002\u767b\u5f55\u540e\uff0c\u60a8\u53ef\u4ee5\u65b0\u5efa\u9879\u76ee\u3001\u7ba1\u7406\u7528\u6237\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>\u4e09\u3001\u603b\u7ed3<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5728Windows\u5e73\u53f0\u4e0a\u5b89\u88c5GitLab\u7684\u6b65\u9aa4\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u5230\u9700\u8981\u5728Windows\u4e0a\u4f7f\u7528GitLab\u7684\u4eba\u58eb\u3002\u5982\u679c\u60a8\u5728\u5b89\u88c5\u548c\u4f7f\u7528\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u53c2\u8003GitLab\u5b98\u65b9\u6587\u6863\u548c\u8bba\u575b\uff0c\u5bfb\u6c42\u5e2e\u52a9\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fWindows\u5e73\u53f0\u4e0a\u5b89\u88c5GitLab\u7684\u6b65\u9aa4\uff08\u8be6\u89e3\uff09\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>gitlab\u662f\u4e00\u6b3e\u7528\u4e8e\u7ba1\u7406git\u4ed3\u5e93\u7684\u81ea\u6258\u7ba1\u8f6f\u4ef6\u3002\u5728\u56e2\u961f\u5408\u4f5c\u4e2d\uff0c\u4f7f\u7528gitlab\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u8ddf\u8e2a\u95ee\u9898\u5e76\u8fdb\u884c\u7248\u672c\u63a7\u5236\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5728windows\u5e73\u53f0\u4e0a\u5b89\u88c5gitlab\u7684\u6b65\u9aa4\u3002 \u4e00\u3001\u5b89\u88c5GitLab\u8981\u6c42 \u5728\u5b89\u88c5GitLab\u4e4b\u524d\uff0c\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u8981\u6c42\uff1a Windows 64\u4f4d\u7248\u672c\uff08Windows Server 2012\u53ca\u4ee5\u4e0a\u7248\u672c\u3001Windows 10\/8\/7\uff09\uff1b 4\u6838\u5fc3CPU\uff1b 4GB RAM\uff1b 2GB\u78c1\u76d8\u7a7a\u95f4\uff1b \u5b89\u88c5\u5e76\u914d\u7f6e.NET Framework 4.6.1\u4ee5\u4e0a\u7248\u672c\uff1b \u5b89\u88c5\u5e76\u914d\u7f6eMicrosoft SQL Server 2012\u4ee5\u4e0a\u7248\u672c\u3002 \u4e8c\u3001\u5b89\u88c5GitLab\u6b65\u9aa4 1.\u4e0b\u8f7dGitLab\u5b89\u88c5\u5305 \u5728GitLab\u5b98\u7f51\u4e0b\u8f7dGitLab Community Edition\u7684\u5b89\u88c5\u5305\u3002\u9009\u62e9\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u5305\u8fdb\u884c\u4e0b\u8f7d\uff0c\u5e76\u9009\u62e9\u5408\u9002\u7684\u5730\u5740\u8fdb\u884c\u4e0b\u8f7d\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u89e3\u538b\u7f29\u5b89\u88c5\u5305\u3002 2.\u5b89\u88c5GitLab \u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\uff0c\u5f00\u59cb\u5b89\u88c5\u8fc7\u7a0b\uff0c\u4f9d\u6b21\u70b9\u51fb\u201cNext\u201d\u6309\u94ae\uff0c\u8fdb\u5165\u201cSelect Components\u201d\u9875\u9762\uff0c\u52fe\u9009\u201cGitLab Shell\u201d\u548c\u201cGitLab\u201d\u9009\u9879\uff0c\u7136\u540e\u70b9\u51fb\u201cNext\u201d\u6309\u94ae\u3002\u63a5\u7740\u8fdb\u5165\u201cSelect Installation Path\u201d\u9875\u9762\uff0c\u9009\u62e9GitLab\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4f7f\u7528\u9ed8\u8ba4\u7684\u5b89\u88c5\u8def\u5f84\u5373\u53ef\u3002\u7136\u540e\u70b9\u51fb\u201cInstall\u201d\u6309\u94ae\uff0c\u7b49\u5f85\u5b89\u88c5\u8fc7\u7a0b\u5b8c\u6210\u3002 3.\u914d\u7f6eGitLab \u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0cGitLab\u4f1a\u5728\u60a8\u7684\u8ba1\u7b97\u673a\u4e0a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cGitLab\u201d\u7684\u670d\u52a1\u3002\u5728Windows\u63a7\u5236\u53f0\u4e2d\uff0c\u627e\u5230\u8fd9\u4e2a\u670d\u52a1\u5e76\u53f3\u952e\u5355\u51fb\u5b83\uff0c\u7136\u540e\u9009\u62e9\u201c\u5c5e\u6027\u201d\u9009\u9879\u3002\u8fdb\u5165\u5c5e\u6027\u9875\u9762\uff0c\u9996\u5148\u9009\u62e9\u201c\u542f\u52a8\u7c7b\u578b\u201d\u4e3a\u201c\u81ea\u52a8\u201d\uff0c\u7136\u540e\u5207\u6362\u5230\u201c\u767b\u5f55\u201d\u9009\u9879\u5361\uff0c\u9009\u62e9\u201c\u672c\u5730\u7cfb\u7edf\u8d26\u6237\u201d\u5e76\u52fe\u9009\u201c\u5141\u8bb8\u670d\u52a1\u4e0e\u684c\u9762\u4ea4\u4e92\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5e94\u7528\u201d\u548c\u201c\u786e\u5b9a\u201d\u6309\u94ae\u3002 4.\u542f\u52a8GitLab \u5728\u5b89\u88c5\u548c\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u542f\u52a8GitLab\u670d\u52a1\uff0c\u65b9\u6cd5\u662f\u5728Windows\u63a7\u5236\u53f0\u4e2d\u627e\u5230\u8fd9\u4e2a\u670d\u52a1\u5e76\u53f3\u952e\u5355\u51fb\u5b83\uff0c\u7136\u540e\u9009\u62e9\u201c\u542f\u52a8\u201d\u9009\u9879\u3002\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c\u5f85GitLab\u5b8c\u5168\u542f\u52a8\u540e\uff0c\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost:8090\uff08\u9ed8\u8ba4\u7aef\u53e3\u4e3a8090\uff09\u3002 5.\u521d\u59cb\u8d26\u6237\u767b\u5f55 \u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95eeGitLab\u767b\u5f55\u9875\u9762\uff0c\u8f93\u5165\u521d\u59cb\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u7528\u6237\u540d\u4e3a\u201croot\u201d\uff0c\u5bc6\u7801\u4e3a\u60a8\u5728\u5b89\u88c5GitLab\u65f6\u8bbe\u7f6e\u7684\u5bc6\u7801\u3002\u767b\u5f55\u540e\uff0c\u60a8\u53ef\u4ee5\u65b0\u5efa\u9879\u76ee\u3001\u7ba1\u7406\u7528\u6237\u7b49\u64cd\u4f5c\u3002 \u4e09\u3001\u603b\u7ed3 \u4ee5\u4e0a\u5c31\u662f\u5728Windows\u5e73\u53f0\u4e0a\u5b89\u88c5GitLab\u7684\u6b65\u9aa4\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u5230\u9700\u8981\u5728Windows\u4e0a\u4f7f\u7528GitLab\u7684\u4eba\u58eb\u3002\u5982\u679c\u60a8\u5728\u5b89\u88c5\u548c\u4f7f\u7528\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u53c2\u8003GitLab\u5b98\u65b9\u6587\u6863\u548c\u8bba\u575b\uff0c\u5bfb\u6c42\u5e2e\u52a9\u3002 \u4ee5\u4e0a\u5c31\u662fWindows\u5e73\u53f0\u4e0a\u5b89\u88c5GitLab\u7684\u6b65\u9aa4\uff08\u8be6\u89e3\uff09\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-19051","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=19051"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19051\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}