{"id":3947,"date":"2023-02-21T14:51:22","date_gmt":"2023-02-21T06:51:22","guid":{"rendered":"https:\/\/km94.com\/?p=3947"},"modified":"2023-02-21T14:51:22","modified_gmt":"2023-02-21T06:51:22","slug":"%e9%98%bf%e9%87%8c%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2gitlab%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/dy208.cn\/index.php\/2023\/02\/21\/%e9%98%bf%e9%87%8c%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2gitlab%e6%95%99%e7%a8%8b\/","title":{"rendered":"\u963f\u91cc\u4e91\u670d\u52a1\u5668\u5b89\u88c5\u90e8\u7f72GitLab\u6559\u7a0b"},"content":{"rendered":"<p>GitLab\u662fRuby\u5f00\u53d1\u7684\u81ea\u6258\u7ba1\u7684Git\u9879\u76ee\u4ed3\u5e93\uff0c\u53ef\u901a\u8fc7Web\u754c\u9762\u8bbf\u95ee\u516c\u5f00\u7684\u6216\u8005\u79c1\u4eba\u7684\u9879\u76ee\u3002\u672c\u6559\u7a0b\u5c06\u4ecb\u7ecd\u4e0b\u5982\u4f55\u4f7f\u7528\u963f\u91cc\u4e91\u670d\u52a1\u5668\u955c\u50cf\u90e8\u7f72GitLab\u73af\u5883\u3002<\/p>\n<p>1\u3001\u8bbf\u95ee\u963f\u91cc\u4e91\u4e91\u5e02\u573a\uff0c\u5728\u4ea7\u54c1\u5206\u7c7b\u4e2d\uff0c\u4f9d\u6b21\u9009\u62e9\u8f6f\u4ef6\u5e02\u573a&#8211;\u5e94\u7528\u5f00\u53d1\uff0c\u627e\u5230GitLab\u4ee3\u7801\u7ba1\u7406\u5e76\u70b9\u51fb\u5b83\uff0c\u8fdb\u5165GitLab\u4ee3\u7801\u7ba1\u7406\u955c\u50cf\u8be6\u60c5\u9875\u9762\uff0c\u5355\u51fb\u7acb\u5373\u8d2d\u4e70\uff0c\u7136\u540e\u6309\u754c\u9762\u63d0\u793a\u5b8c\u6210\u914d\u7f6e\u9009\u578b\u5e76\u8d2d\u4e70\u963f\u91cc\u4e91\u670d\u52a1\u5668ECS\u5b9e\u4f8b\u3002<\/p>\n<p>2\u3001\u63a5\u4e0b\u6765\uff0c\u8fdc\u7a0b\u8fde\u63a5\u963f\u91cc\u4e91\u670d\u52a1\u5668ECS\u5b9e\u4f8b\u3002<\/p>\n<p>3\u3001\u5f00\u542fGitLab\u7684\u8fdc\u7a0b\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<p>GitLab\u955c\u50cf\u90e8\u7f72\u6210\u529f\u540e\u9ed8\u8ba4\u7981\u6b62\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u5f00\u542f\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u624d\u80fd\u901a\u8fc7ECS\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740\u8bbf\u95eeGitLab\u7684\u767b\u5f55\u754c\u9762\u3002<\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u8fdb\u5165gitlab\u76ee\u5f55\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">cd gitlab\/<\/code><\/pre>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u6267\u884cgitlab_opennet.sh\u811a\u672c\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">.\/gitlab_opennet.sh<\/code><\/pre>\n<p>\u547d\u4ee4\u6267\u884c\u5b8c\u6bd5\u540e\uff0c\u5373\u53ef\u8fdc\u7a0b\u8bbf\u95eeGitLab\u7684\u767b\u5f55\u754c\u9762\u3002<\/p>\n<p>4\u3001\u83b7\u53d6\u963f\u91cc\u4e91\u670d\u52a1\u5668ECS\u5b9e\u4f8b\u7684\u516c\u7f51IP\u5730\u5740\u3002<\/p>\n<ul>\n<li>\u767b\u5f55ECS\u7ba1\u7406\u63a7\u5236\u53f0\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u5bfc\u822a\u680f\uff0c\u9009\u62e9\u5b9e\u4f8b\u4e0e\u955c\u50cf &gt; \u5b9e\u4f8b\u3002<\/li>\n<li>\u5728\u9876\u90e8\u83dc\u5355\u680f\u5de6\u4e0a\u89d2\u5904\uff0c\u9009\u62e9\u5730\u57df\u3002<\/li>\n<li>\u5728\u5b9e\u4f8b\u9875\u9762\uff0c\u627e\u5230\u6240\u8d2dECS\u5b9e\u4f8b\uff0c\u5e76\u5728IP\u5730\u5740\u5217\u83b7\u53d6\u8be5\u5b9e\u4f8b\u7684\u516c\u7f51IP\u5730\u5740\u3002<\/li>\n<li>\u5728\u672c\u5730\u4e3b\u673a\u4e2d\uff0c\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u7136\u540e\u5728\u5730\u5740\u680f\u8f93\u5165ECS\u5b9e\u4f8b\u7684\u516c\u7f51IP\u5730\u5740\uff0c\u8bbf\u95eeGitLab\u4e3b\u9875\u3002<\/li>\n<\/ul>\n<div>\n<div>\n<\/div>\n<div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>GitLab\u662fRuby\u5f00\u53d1\u7684\u81ea\u6258\u7ba1\u7684Git\u9879\u76ee\u4ed3\u5e93\uff0c\u53ef\u901a\u8fc7Web\u754c\u9762\u8bbf\u95ee\u516c\u5f00\u7684\u6216\u8005\u79c1\u4eba\u7684\u9879\u76ee\u3002\u672c\u6559\u7a0b\u5c06\u4ecb\u7ecd\u4e0b\u5982&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3948,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,2],"tags":[],"class_list":["post-3947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zjjc","category-jc","entry"],"_links":{"self":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/3947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3947"}],"version-history":[{"count":0,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/3947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}