{"id":19302,"date":"2024-11-19T15:47:00","date_gmt":"2024-11-19T07:47:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19302\/"},"modified":"2024-11-19T15:47:00","modified_gmt":"2024-11-19T07:47:00","slug":"windows%e4%b8%8a%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85gitlab%ef%bc%9f%e6%ad%a5%e9%aa%a4%e5%88%86%e4%ba%ab","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19302\/","title":{"rendered":"Windows\u4e0a\u600e\u4e48\u5b89\u88c5GitLab\uff1f\u6b65\u9aa4\u5206\u4eab"},"content":{"rendered":"<p>gitlab\u662f\u4e00\u4e2aweb\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e3a\u7528\u6237\u63d0\u4f9bgit\u4ee3\u7801\u4ed3\u5e93\u7ba1\u7406\u3001\u95ee\u9898\u8ddf\u8e2a\u3001ci\/cd\u81ea\u52a8\u5316\u6784\u5efa\u7b49\u529f\u80fd\u3002\u5728windows\u5e73\u53f0\u4e0a\u5b89\u88c5gitlab\u662f\u5341\u5206\u65b9\u4fbf\u7684\uff0c\u53ea\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\u5373\u53ef\u3002<\/p>\n<p>\u6b65\u9aa4\u4e00\uff1a\u5b89\u88c5\u8981\u6c42<\/p>\n<p>\u5728\u5b89\u88c5\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u7cfb\u7edf\u7b26\u5408GitLab\u7684\u8981\u6c42\uff1a<\/p>\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1aWindows Server 2012\u6216\u4ee5\u4e0a\u7248\u672c\uff1b<\/p>\n<p>Memory\uff1a\u81f3\u5c11\u9700\u89814GB\u7269\u7406\u5185\u5b58\uff1b<\/p>\n<p>\u5b58\u50a8\uff1a\u6700\u5c1120GB\u786c\u76d8\u5b58\u50a8\u7a7a\u95f4\uff1b<\/p>\n<p>CPU\uff1a\u81f3\u5c11\u9700\u89814\u6838CPU\uff1b<\/p>\n<p>.NET Framework\uff1a\u81f3\u5c11\u9700\u8981.NET Framework 4.5.2\u3002<\/p>\n<p>\u6b65\u9aa4\u4e8c\uff1a\u83b7\u53d6GitLab\u5b89\u88c5\u7a0b\u5e8f<\/p>\n<p>\u4eceGitLab\u5b98\u65b9\u7f51\u7ad9 https:\/\/about.gitlab.com\/install\/ \u4e0a\u4e0b\u8f7d\u6240\u9700\u7248\u672c\u7684GitLab\u5b89\u88c5\u7a0b\u5e8f\u3002\u9009\u62e9Windows\u5e73\u53f0\uff0c\u4e0b\u8f7d\u9002\u5408\u60a8\u7684\u7248\u672c\u3002\u5b89\u88c5\u7a0b\u5e8f\u6709\u4e24\u4e2a\uff0c\u4e00\u4e2a\u662fGitLab-CE\uff08\u793e\u533a\u7248\uff09\uff0c\u53e6\u4e00\u4e2a\u662fGitLab-EE\uff08\u4f01\u4e1a\u7248\uff09\u3002\u672c\u6587\u4ee5GitLab-CE \u4e3a\u4f8b\u3002<\/p>\n<p>\u6b65\u9aa4\u4e09\uff1a\u5b89\u88c5GitLab<\/p>\n<p>\u53cc\u51fbGitLab\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5f00\u59cb\u5b89\u88c5\u5411\u5bfc\u3002\u9996\u5148\u9009\u62e9\u5b89\u88c5\u8def\u5f84\u548c\u6570\u636e\u5b58\u50a8\u8def\u5f84\u3002\u63a5\u4e0b\u6765\uff0c\u9009\u62e9\u5b89\u88c5\u65b9\u5f0f\uff1a\u6700\u4f4e\u7248\u9700\u8981.NET Framework 4.5.2\u6216\u4ee5\u4e0a\uff0c\u5982\u60a8\u7684\u8ba1\u7b97\u673a\u4e0a\u5df2\u7ecf\u6709\u6240\u9700\u7684.NET\u6846\u67b6\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9Minimum\uff1b\u5982\u679c\u6ca1\u6709\uff0c\u5219\u9700\u8981\u9009\u62e9\u5305\u542b.NET\u6846\u67b6\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002\u5b89\u88c5\u7a0b\u5e8f\u5f00\u59cb\u6267\u884c\u5b89\u88c5\u64cd\u4f5c\uff0c\u6b64\u65f6\u9700\u8981\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\u4ee5\u5b8c\u6210\u5b89\u88c5\u3002<\/p>\n<p>\u6b65\u9aa4\u56db\uff1a\u914d\u7f6eGitLab<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u9700\u8981\u914d\u7f6eGitLab\u3002\u901a\u8fc7\u547d\u4ee4\u884c\u63a7\u5236\u53f0\uff0c\u8fdb\u5165\u5b89\u88c5\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5373\u53ef\u542f\u52a8GitLab\u7684\u914d\u7f6e\u5411\u5bfc\uff1a<\/p>\n<pre>gitlab reconfigure<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>GitLab\u5c06\u4f1a\u68c0\u67e5\u914d\u7f6e\uff0c\u5b89\u88c5\u6570\u636e\u5e93\u548c\u5176\u4ed6\u5fc5\u9700\u7ec4\u4ef6\u3002\u5728\u5b8c\u6210\u6267\u884c\u540e\uff0c\u7ba1\u7406\u5458\uff08root\uff09\u8d26\u6237\u7684\u9ed8\u8ba4\u5bc6\u7801\u5c06\u88ab\u751f\u6210\u3002\u5bc6\u7801\u88ab\u5b58\u50a8\u5728\u5b89\u88c5\u76ee\u5f55\u7684\u79c1\u5bc6\u6587\u4ef6\u4e2d\uff0c\u8be5\u6587\u4ef6\u521d\u59cb\u53ea\u5141\u8bb8\u7ba1\u7406\u5458\u8bbf\u95ee\u3002\u7ba1\u7406\u5458\u53ef\u4ee5\u767b\u5f55\u5230GitLab\u7684web UI\uff0c\u4fee\u6539\u548c\u7ba1\u7406\u7528\u6237\u3001\u9879\u76ee\uff0c\u8bbe\u7f6e\u8bbf\u95ee\u6743\u9650\u7b49\u3002<\/p>\n<p>\u6b65\u9aa4\u4e94\uff1a\u767b\u5f55GitLab<\/p>\n<p>\u6253\u5f00\u4efb\u4f55\u6d4f\u89c8\u5668\uff0c\u8f93\u5165GitLab\u7684IP\u5730\u5740\u6216\u8005\u57df\u540d\uff0c\u8fdb\u5165\u767b\u5f55\u7684\u9875\u9762\uff0c\u8f93\u5165root\u7528\u6237\u548c\u5b83\u751f\u6210\u7684\u9ed8\u8ba4\u5bc6\u7801\uff0c\u767b\u5f55\u5230GitLab\u3002<\/p>\n<p>\u6b65\u9aa4\u516d\uff1a\u4f7f\u7528GitLab<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528GitLab\u7ba1\u7406\u4ee3\u7801\u4ed3\u5e93\u3001\u90e8\u7f72CI\/CD\u6784\u5efa\u6d41\u7a0b\u4ee5\u53ca\u95ee\u9898\u8ddf\u8e2a\u670d\u52a1\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u6b64\u6587\u7b80\u5355\u4ecb\u7ecd\u4e86\u5728Windows\u5e73\u53f0\u4e0a\u5b89\u88c5GitLab\u7684\u6b65\u9aa4\uff0c\u5982\u679c\u60a8\u5df2\u7ecf\u5177\u5907\u4e86\u9884\u5148\u8981\u6c42\u7684\u64cd\u4f5c\u7cfb\u7edf\u3001\u786c\u4ef6\u548c\u7f51\u7edc\u73af\u5883\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0a\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\u3002GitLab\u63d0\u4f9b\u4e86\u5f88\u591a\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u4e3a\u4e86\u4f7f\u4f60\u66f4\u597d\u5730\u5b8c\u6210\u60a8\u7684\u9879\u76ee\uff0c\u5e0c\u671b\u60a8\u5c3d\u53ef\u80fd\u591a\u5730\u4f7f\u7528GitLab\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fWindows\u4e0a\u600e\u4e48\u5b89\u88c5GitLab\uff1f\u6b65\u9aa4\u5206\u4eab\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\u4e2aweb\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e3a\u7528\u6237\u63d0\u4f9bgit\u4ee3\u7801\u4ed3\u5e93\u7ba1\u7406\u3001\u95ee\u9898\u8ddf\u8e2a\u3001ci\/cd\u81ea\u52a8\u5316\u6784\u5efa\u7b49\u529f\u80fd\u3002\u5728windows\u5e73\u53f0\u4e0a\u5b89\u88c5gitlab\u662f\u5341\u5206\u65b9\u4fbf\u7684\uff0c\u53ea\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\u5373\u53ef\u3002 \u6b65\u9aa4\u4e00\uff1a\u5b89\u88c5\u8981\u6c42 \u5728\u5b89\u88c5\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u7cfb\u7edf\u7b26\u5408GitLab\u7684\u8981\u6c42\uff1a \u64cd\u4f5c\u7cfb\u7edf\uff1aWindows Server 2012\u6216\u4ee5\u4e0a\u7248\u672c\uff1b Memory\uff1a\u81f3\u5c11\u9700\u89814GB\u7269\u7406\u5185\u5b58\uff1b \u5b58\u50a8\uff1a\u6700\u5c1120GB\u786c\u76d8\u5b58\u50a8\u7a7a\u95f4\uff1b CPU\uff1a\u81f3\u5c11\u9700\u89814\u6838CPU\uff1b .NET Framework\uff1a\u81f3\u5c11\u9700\u8981.NET Framework 4.5.2\u3002 \u6b65\u9aa4\u4e8c\uff1a\u83b7\u53d6GitLab\u5b89\u88c5\u7a0b\u5e8f \u4eceGitLab\u5b98\u65b9\u7f51\u7ad9 https:\/\/about.gitlab.com\/install\/ \u4e0a\u4e0b\u8f7d\u6240\u9700\u7248\u672c\u7684GitLab\u5b89\u88c5\u7a0b\u5e8f\u3002\u9009\u62e9Windows\u5e73\u53f0\uff0c\u4e0b\u8f7d\u9002\u5408\u60a8\u7684\u7248\u672c\u3002\u5b89\u88c5\u7a0b\u5e8f\u6709\u4e24\u4e2a\uff0c\u4e00\u4e2a\u662fGitLab-CE\uff08\u793e\u533a\u7248\uff09\uff0c\u53e6\u4e00\u4e2a\u662fGitLab-EE\uff08\u4f01\u4e1a\u7248\uff09\u3002\u672c\u6587\u4ee5GitLab-CE \u4e3a\u4f8b\u3002 \u6b65\u9aa4\u4e09\uff1a\u5b89\u88c5GitLab \u53cc\u51fbGitLab\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5f00\u59cb\u5b89\u88c5\u5411\u5bfc\u3002\u9996\u5148\u9009\u62e9\u5b89\u88c5\u8def\u5f84\u548c\u6570\u636e\u5b58\u50a8\u8def\u5f84\u3002\u63a5\u4e0b\u6765\uff0c\u9009\u62e9\u5b89\u88c5\u65b9\u5f0f\uff1a\u6700\u4f4e\u7248\u9700\u8981.NET Framework 4.5.2\u6216\u4ee5\u4e0a\uff0c\u5982\u60a8\u7684\u8ba1\u7b97\u673a\u4e0a\u5df2\u7ecf\u6709\u6240\u9700\u7684.NET\u6846\u67b6\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9Minimum\uff1b\u5982\u679c\u6ca1\u6709\uff0c\u5219\u9700\u8981\u9009\u62e9\u5305\u542b.NET\u6846\u67b6\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002\u5b89\u88c5\u7a0b\u5e8f\u5f00\u59cb\u6267\u884c\u5b89\u88c5\u64cd\u4f5c\uff0c\u6b64\u65f6\u9700\u8981\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\u4ee5\u5b8c\u6210\u5b89\u88c5\u3002 \u6b65\u9aa4\u56db\uff1a\u914d\u7f6eGitLab \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u9700\u8981\u914d\u7f6eGitLab\u3002\u901a\u8fc7\u547d\u4ee4\u884c\u63a7\u5236\u53f0\uff0c\u8fdb\u5165\u5b89\u88c5\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5373\u53ef\u542f\u52a8GitLab\u7684\u914d\u7f6e\u5411\u5bfc\uff1a gitlab reconfigure \u767b\u5f55\u540e\u590d\u5236 GitLab\u5c06\u4f1a\u68c0\u67e5\u914d\u7f6e\uff0c\u5b89\u88c5\u6570\u636e\u5e93\u548c\u5176\u4ed6\u5fc5\u9700\u7ec4\u4ef6\u3002\u5728\u5b8c\u6210\u6267\u884c\u540e\uff0c\u7ba1\u7406\u5458\uff08root\uff09\u8d26\u6237\u7684\u9ed8\u8ba4\u5bc6\u7801\u5c06\u88ab\u751f\u6210\u3002\u5bc6\u7801\u88ab\u5b58\u50a8\u5728\u5b89\u88c5\u76ee\u5f55\u7684\u79c1\u5bc6\u6587\u4ef6\u4e2d\uff0c\u8be5\u6587\u4ef6\u521d\u59cb\u53ea\u5141\u8bb8\u7ba1\u7406\u5458\u8bbf\u95ee\u3002\u7ba1\u7406\u5458\u53ef\u4ee5\u767b\u5f55\u5230GitLab\u7684web UI\uff0c\u4fee\u6539\u548c\u7ba1\u7406\u7528\u6237\u3001\u9879\u76ee\uff0c\u8bbe\u7f6e\u8bbf\u95ee\u6743\u9650\u7b49\u3002 \u6b65\u9aa4\u4e94\uff1a\u767b\u5f55GitLab \u6253\u5f00\u4efb\u4f55\u6d4f\u89c8\u5668\uff0c\u8f93\u5165GitLab\u7684IP\u5730\u5740\u6216\u8005\u57df\u540d\uff0c\u8fdb\u5165\u767b\u5f55\u7684\u9875\u9762\uff0c\u8f93\u5165root\u7528\u6237\u548c\u5b83\u751f\u6210\u7684\u9ed8\u8ba4\u5bc6\u7801\uff0c\u767b\u5f55\u5230GitLab\u3002 \u6b65\u9aa4\u516d\uff1a\u4f7f\u7528GitLab \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528GitLab\u7ba1\u7406\u4ee3\u7801\u4ed3\u5e93\u3001\u90e8\u7f72CI\/CD\u6784\u5efa\u6d41\u7a0b\u4ee5\u53ca\u95ee\u9898\u8ddf\u8e2a\u670d\u52a1\u3002 \u603b\u7ed3 \u6b64\u6587\u7b80\u5355\u4ecb\u7ecd\u4e86\u5728Windows\u5e73\u53f0\u4e0a\u5b89\u88c5GitLab\u7684\u6b65\u9aa4\uff0c\u5982\u679c\u60a8\u5df2\u7ecf\u5177\u5907\u4e86\u9884\u5148\u8981\u6c42\u7684\u64cd\u4f5c\u7cfb\u7edf\u3001\u786c\u4ef6\u548c\u7f51\u7edc\u73af\u5883\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0a\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\u3002GitLab\u63d0\u4f9b\u4e86\u5f88\u591a\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u4e3a\u4e86\u4f7f\u4f60\u66f4\u597d\u5730\u5b8c\u6210\u60a8\u7684\u9879\u76ee\uff0c\u5e0c\u671b\u60a8\u5c3d\u53ef\u80fd\u591a\u5730\u4f7f\u7528GitLab\u3002 \u4ee5\u4e0a\u5c31\u662fWindows\u4e0a\u600e\u4e48\u5b89\u88c5GitLab\uff1f\u6b65\u9aa4\u5206\u4eab\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-19302","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19302","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=19302"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19302\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}