{"id":19466,"date":"2024-11-19T15:38:57","date_gmt":"2024-11-19T07:38:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19466\/"},"modified":"2024-11-19T15:38:57","modified_gmt":"2024-11-19T07:38:57","slug":"gitlab%e5%8d%87%e7%ba%a7%e4%b8%8d%e4%b8%8a%e5%8e%bb%e6%80%8e%e4%b9%88%e5%9b%9e%e4%ba%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19466\/","title":{"rendered":"gitlab\u5347\u7ea7\u4e0d\u4e0a\u53bb\u600e\u4e48\u56de\u4e8b"},"content":{"rendered":"<p>\u6700\u8fd1\u4f7f\u7528 gitlab \u7684\u5c0f\u4f19\u4f34\u4eec\u53d1\u73b0\uff0c\u5347\u7ea7 gitlab \u7248\u672c\u53d8\u6210\u4e86\u4e00\u4ef6\u9ebb\u70e6\u7684\u4e8b\u60c5\u3002\u5728\u5347\u7ea7\u524d\uff0c\u9700\u8981\u6ce8\u610f\u4e00\u4e9b\u5fc5\u8981\u7684\u4e8b\u9879\uff0c\u4ee5\u786e\u4fdd\u5347\u7ea7\u6210\u529f\u5e76\u4e14\u4e0d\u4f1a\u4e22\u5931\u4efb\u4f55\u6570\u636e\u3002<\/p>\n<p>1.\u5907\u4efd\u6570\u636e<\/p>\n<p>\u5728\u5347\u7ea7\u4e4b\u524d\uff0c\u52a1\u5fc5\u8981\u5907\u4efd GitLab \u4e2d\u7684\u6240\u6709\u6570\u636e\uff0c\u5305\u62ec\u6570\u636e\u5e93\u3001\u5b58\u50a8\u5e93\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u3002\u8fd9\u662f\u4e3a\u4e86\u9632\u6b62\u6570\u636e\u4e22\u5931\u4ee5\u53ca\u5347\u7ea7\u5931\u8d25\u800c\u505a\u7684\u5fc5\u8981\u6b65\u9aa4\u3002\u5efa\u8bae\u4f7f\u7528 GitLab \u81ea\u5e26\u7684\u5907\u4efd\u547d\u4ee4\u8fdb\u884c\u5907\u4efd\uff0c\u5177\u4f53\u64cd\u4f5c\u53ef\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.gitlab.com\/ee\/raketasks\/backup_restore.html#creating-a-backup-of-gitlab.<\/p>\n<p>2.\u67e5\u770b\u66f4\u65b0\u65e5\u5fd7<\/p>\n<p>\u5728\u51b3\u5b9a\u5347\u7ea7 GitLab \u7684\u7248\u672c\u4e4b\u524d\uff0c\u9700\u8981\u67e5\u770b GitLab \u7684\u66f4\u65b0\u65e5\u5fd7\uff0c\u4e86\u89e3\u65b0\u7248\u672c\u4fee\u590d\u7684\u95ee\u9898\u4ee5\u53ca\u65b0\u589e\u7684\u529f\u80fd\u3002\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u67e5\u770b GitLab \u7684\u66f4\u65b0\u6587\u6863\uff0c\u4e86\u89e3\u65b0\u7248\u672c\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u7684\u4e8b\u9879\u548c\u5177\u4f53\u64cd\u4f5c\u65b9\u5f0f\u3002\u8fd9\u4e9b\u90fd\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u7684\u51c6\u5907\u5347\u7ea7\u5de5\u4f5c\u3002<\/p>\n<p>3.\u68c0\u67e5\u7cfb\u7edf\u73af\u5883<\/p>\n<p>\u9664\u4e86 GitLab \u81ea\u8eab\u7684\u73af\u5883\u8bbe\u7f6e\u5916\uff0c\u8fd8\u9700\u8981\u68c0\u67e5\u7cfb\u7edf\u73af\u5883\u662f\u5426\u6ee1\u8db3\u65b0\u7248\u672c\u7684\u8981\u6c42\u3002\u4f8b\u5982\uff0c\u662f\u5426\u5b89\u88c5\u4e86\u6240\u9700\u7684\u4f9d\u8d56\u9879\u3001\u662f\u5426\u6709\u8db3\u591f\u7684\u78c1\u76d8\u7a7a\u95f4\u3001\u7cfb\u7edf\u5185\u5b58\u662f\u5426\u8db3\u591f\u7b49\u7b49\u3002\u5982\u679c\u7cfb\u7edf\u73af\u5883\u4e0d\u7b26\u5408\u8981\u6c42\uff0c\u5347\u7ea7 GitLab \u53ef\u80fd\u4f1a\u5931\u8d25\u6216\u8005\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83\u3002<\/p>\n<p>4.\u5c0f\u7248\u672c\u5347\u7ea7<\/p>\n<p>\u5982\u679c\u8981\u5347\u7ea7\u7684 GitLab \u7248\u672c\u548c\u5f53\u524d\u7248\u672c\u5dee\u8ddd\u8f83\u5927\uff0c\u5efa\u8bae\u5148\u8fdb\u884c\u5c0f\u7248\u672c\u5347\u7ea7\uff0c\u9010\u6b65\u5347\u7ea7\u5230\u76ee\u6807\u7248\u672c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u5f53\u524d\u7684 GitLab \u7248\u672c\u662f 11.0\uff0c\u60f3\u8981\u5347\u7ea7\u5230 13.0\uff0c\u5c31\u9700\u8981\u5148\u5347\u7ea7\u5230 11.1\u300111.2\u300111.3 \u7b49\u9010\u6b65\u5347\u7ea7\u7248\u672c\uff0c\u6700\u7ec8\u624d\u80fd\u5347\u7ea7\u5230 13.0\u3002<\/p>\n<p>5.\u505c\u6b62\u670d\u52a1<\/p>\n<p>\u5728\u5347\u7ea7 GitLab \u65f6\uff0c\u8981\u786e\u4fdd GitLab \u7684\u670d\u52a1\u5df2\u7ecf\u505c\u6b62\u3002\u5426\u5219\uff0c\u5728\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u51fa\u73b0\u6587\u4ef6\u9501\u5b9a\u7b49\u95ee\u9898\uff0c\u5bfc\u81f4\u5347\u7ea7\u5931\u8d25\u3002\u53ef\u4ee5\u4f7f\u7528 GitLab \u81ea\u5e26\u7684\u547d\u4ee4\u505c\u6b62 GitLab \u670d\u52a1\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.gitlab.com\/ee\/administration\/restart_gitlab.html#stop-gitlab.<\/p>\n<p>6.\u6267\u884c\u5347\u7ea7<\/p>\n<p>\u5982\u679c\u524d\u9762\u7684\u6b65\u9aa4\u90fd\u6ca1\u6709\u95ee\u9898\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6267\u884c\u5347\u7ea7\u64cd\u4f5c\u4e86\u3002\u5347\u7ea7\u547d\u4ee4\u53ef\u4ee5\u901a\u8fc7 GitLab \u81ea\u5e26\u7684\u547d\u4ee4\u6765\u6267\u884c\uff0c\u5177\u4f53\u64cd\u4f5c\u53ef\u4ee5\u53c2\u8003 GitLab \u7684\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.gitlab.com\/ee\/update\/#update-gitlab-ce.<\/p>\n<p>7.\u68c0\u6d4b\u5347\u7ea7\u662f\u5426\u6210\u529f<\/p>\n<p>\u5347\u7ea7\u5b8c\u6210\u540e\uff0c\u9700\u8981\u91cd\u65b0\u542f\u52a8 GitLab \u670d\u52a1\uff0c\u5e76\u4f7f\u7528\u7ba1\u7406\u5458\u8d26\u6237\u767b\u5f55 GitLab \u8fdb\u884c\u68c0\u6d4b\u5347\u7ea7\u662f\u5426\u6210\u529f\u3002\u5982\u679c\u51fa\u73b0\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b GitLab \u65e5\u5fd7\u6587\u4ef6\u627e\u5230\u95ee\u9898\u6240\u5728\u3002<\/p>\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0c\u5347\u7ea7 GitLab \u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u8981\u6c42\u548c\u7ecf\u9a8c\uff0c\u9700\u8981\u6211\u4eec\u5728\u64cd\u4f5c\u4e4b\u524d\u505a\u597d\u5145\u5206\u7684\u51c6\u5907\u5de5\u4f5c\uff0c\u624d\u80fd\u786e\u4fdd\u5347\u7ea7\u6210\u529f\u3002\u5982\u679c\u9047\u5230\u95ee\u9898\u53ef\u4ee5\u524d\u5f80 GitLab \u7684\u5b98\u65b9\u8bba\u575b\u8fdb\u884c\u54a8\u8be2\uff0c\u6216\u8005\u63d0\u4ea4 issue \u5bfb\u6c42\u5e2e\u52a9\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fgitlab\u5347\u7ea7\u4e0d\u4e0a\u53bb\u600e\u4e48\u56de\u4e8b\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>\u6700\u8fd1\u4f7f\u7528 gitlab \u7684\u5c0f\u4f19\u4f34\u4eec\u53d1\u73b0\uff0c\u5347\u7ea7 gitlab \u7248\u672c\u53d8\u6210\u4e86\u4e00\u4ef6\u9ebb\u70e6\u7684\u4e8b\u60c5\u3002\u5728\u5347\u7ea7\u524d\uff0c\u9700\u8981\u6ce8\u610f\u4e00\u4e9b\u5fc5\u8981\u7684\u4e8b\u9879\uff0c\u4ee5\u786e\u4fdd\u5347\u7ea7\u6210\u529f\u5e76\u4e14\u4e0d\u4f1a\u4e22\u5931\u4efb\u4f55\u6570\u636e\u3002 1.\u5907\u4efd\u6570\u636e \u5728\u5347\u7ea7\u4e4b\u524d\uff0c\u52a1\u5fc5\u8981\u5907\u4efd GitLab \u4e2d\u7684\u6240\u6709\u6570\u636e\uff0c\u5305\u62ec\u6570\u636e\u5e93\u3001\u5b58\u50a8\u5e93\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u3002\u8fd9\u662f\u4e3a\u4e86\u9632\u6b62\u6570\u636e\u4e22\u5931\u4ee5\u53ca\u5347\u7ea7\u5931\u8d25\u800c\u505a\u7684\u5fc5\u8981\u6b65\u9aa4\u3002\u5efa\u8bae\u4f7f\u7528 GitLab \u81ea\u5e26\u7684\u5907\u4efd\u547d\u4ee4\u8fdb\u884c\u5907\u4efd\uff0c\u5177\u4f53\u64cd\u4f5c\u53ef\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.gitlab.com\/ee\/raketasks\/backup_restore.html#creating-a-backup-of-gitlab. 2.\u67e5\u770b\u66f4\u65b0\u65e5\u5fd7 \u5728\u51b3\u5b9a\u5347\u7ea7 GitLab \u7684\u7248\u672c\u4e4b\u524d\uff0c\u9700\u8981\u67e5\u770b GitLab \u7684\u66f4\u65b0\u65e5\u5fd7\uff0c\u4e86\u89e3\u65b0\u7248\u672c\u4fee\u590d\u7684\u95ee\u9898\u4ee5\u53ca\u65b0\u589e\u7684\u529f\u80fd\u3002\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u67e5\u770b GitLab \u7684\u66f4\u65b0\u6587\u6863\uff0c\u4e86\u89e3\u65b0\u7248\u672c\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u7684\u4e8b\u9879\u548c\u5177\u4f53\u64cd\u4f5c\u65b9\u5f0f\u3002\u8fd9\u4e9b\u90fd\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u7684\u51c6\u5907\u5347\u7ea7\u5de5\u4f5c\u3002 3.\u68c0\u67e5\u7cfb\u7edf\u73af\u5883 \u9664\u4e86 GitLab \u81ea\u8eab\u7684\u73af\u5883\u8bbe\u7f6e\u5916\uff0c\u8fd8\u9700\u8981\u68c0\u67e5\u7cfb\u7edf\u73af\u5883\u662f\u5426\u6ee1\u8db3\u65b0\u7248\u672c\u7684\u8981\u6c42\u3002\u4f8b\u5982\uff0c\u662f\u5426\u5b89\u88c5\u4e86\u6240\u9700\u7684\u4f9d\u8d56\u9879\u3001\u662f\u5426\u6709\u8db3\u591f\u7684\u78c1\u76d8\u7a7a\u95f4\u3001\u7cfb\u7edf\u5185\u5b58\u662f\u5426\u8db3\u591f\u7b49\u7b49\u3002\u5982\u679c\u7cfb\u7edf\u73af\u5883\u4e0d\u7b26\u5408\u8981\u6c42\uff0c\u5347\u7ea7 GitLab \u53ef\u80fd\u4f1a\u5931\u8d25\u6216\u8005\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83\u3002 4.\u5c0f\u7248\u672c\u5347\u7ea7 \u5982\u679c\u8981\u5347\u7ea7\u7684 GitLab \u7248\u672c\u548c\u5f53\u524d\u7248\u672c\u5dee\u8ddd\u8f83\u5927\uff0c\u5efa\u8bae\u5148\u8fdb\u884c\u5c0f\u7248\u672c\u5347\u7ea7\uff0c\u9010\u6b65\u5347\u7ea7\u5230\u76ee\u6807\u7248\u672c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u5f53\u524d\u7684 GitLab \u7248\u672c\u662f 11.0\uff0c\u60f3\u8981\u5347\u7ea7\u5230 13.0\uff0c\u5c31\u9700\u8981\u5148\u5347\u7ea7\u5230 11.1\u300111.2\u300111.3 \u7b49\u9010\u6b65\u5347\u7ea7\u7248\u672c\uff0c\u6700\u7ec8\u624d\u80fd\u5347\u7ea7\u5230 13.0\u3002 5.\u505c\u6b62\u670d\u52a1 \u5728\u5347\u7ea7 GitLab \u65f6\uff0c\u8981\u786e\u4fdd GitLab \u7684\u670d\u52a1\u5df2\u7ecf\u505c\u6b62\u3002\u5426\u5219\uff0c\u5728\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u51fa\u73b0\u6587\u4ef6\u9501\u5b9a\u7b49\u95ee\u9898\uff0c\u5bfc\u81f4\u5347\u7ea7\u5931\u8d25\u3002\u53ef\u4ee5\u4f7f\u7528 GitLab \u81ea\u5e26\u7684\u547d\u4ee4\u505c\u6b62 GitLab \u670d\u52a1\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.gitlab.com\/ee\/administration\/restart_gitlab.html#stop-gitlab. 6.\u6267\u884c\u5347\u7ea7 \u5982\u679c\u524d\u9762\u7684\u6b65\u9aa4\u90fd\u6ca1\u6709\u95ee\u9898\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6267\u884c\u5347\u7ea7\u64cd\u4f5c\u4e86\u3002\u5347\u7ea7\u547d\u4ee4\u53ef\u4ee5\u901a\u8fc7 GitLab \u81ea\u5e26\u7684\u547d\u4ee4\u6765\u6267\u884c\uff0c\u5177\u4f53\u64cd\u4f5c\u53ef\u4ee5\u53c2\u8003 GitLab \u7684\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.gitlab.com\/ee\/update\/#update-gitlab-ce. 7.\u68c0\u6d4b\u5347\u7ea7\u662f\u5426\u6210\u529f \u5347\u7ea7\u5b8c\u6210\u540e\uff0c\u9700\u8981\u91cd\u65b0\u542f\u52a8 GitLab [&hellip;]<\/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-19466","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19466","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=19466"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19466\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}