{"id":196570,"date":"2020-07-20T09:38:53","date_gmt":"2020-07-20T01:38:53","guid":{"rendered":"https:\/\/gulass.cn\/?p=196570"},"modified":"2020-07-20T09:39:54","modified_gmt":"2020-07-20T01:39:54","slug":"centos8-install-gitlab","status":"publish","type":"post","link":"https:\/\/gulass.cn\/centos8-install-gitlab.html","title":{"rendered":"\u5982\u4f55\u5728Centos8\u4e2d\u5b89\u88c5GitLab-CE"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nGitLab\u662f\u4e00\u4e2a\u57fa\u4e8eweb\u754c\u9762\u7684Git\u4ed3\u5e93\u7ba1\u7406\u7a0b\u5e8f\uff0c\u5305\u62ec\u4ee3\u7801\u5ba1\u8ba1\u3001wikis\u3001\u95ee\u9898\u8ddf\u8e2a\u7b49\u529f\u80fd\u3002\u4f7f\u7528GitLab\u521b\u5efa\u3001\u68c0\u67e5\u548c\u90e8\u7f72\u4ee3\u7801\u975e\u5e38\u5bb9\u6613\u3002\u5b83\u53ef\u4ee5\u6258\u7ba1\u5728\u6211\u4eec\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u5728\u5b98\u65b9\u670d\u52a1\u5668\u4e5f\u63d0\u4f9b\u514d\u8d39\u7684\u4ed3\u5e93\u6258\u7ba1\uff0c\u7c7b\u4f3c\u4e8eGithub\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

GitLab\u6709\u4e09\u4e2a\u4e0d\u540c\u7684\u7248\u672c\u53ef\u7528\uff1aCommunity Edition\uff08CE\uff09\u3001Enterprise Edition\uff08EE\uff09\u548c GitLab\u6258\u7ba1\u7248\u672c\u3002\u5176\u4e2dCE\u7248\u672c\u662f\u5f00\u6e90\u514d\u8d39\u7684\u3002EE\u7248\u672c\u662f\u4f01\u4e1a\u7248\uff0c\u9700\u8981\u4ed8\u8d39\u4f7f\u7528\u7684\u3002<\/p>\n

\u73af\u5883<\/strong><\/div>\n
    \n
  • Centos8<\/li>\n
  • gitlab-ce-13.1.4<\/li>\n<\/ul>\n

    \u63a8\u8350cpu\u6838\u5fc3\u6570\u91cf\u4e3a4\u6838\uff0c\u63a8\u8350\u5185\u5b58\u5927\u5c0f\u4e3a4GB\u3002<\/p>\n

    \u5b89\u88c5GitLab-CE<\/strong><\/div>\n

    \u65b0\u5efa\/etc\/yum.repos.d\/gitlab-ce.repo\u4ed3\u5e93\u6587\u4ef6\uff0c\u7136\u540e\u590d\u5236\u5185\u5bb9\u5230\u6587\u4ef6\u91cc\u3002<\/p>\n

    \r\n[root@localhost ~]# touch \/etc\/yum.repos.d\/gitlab-ce.repo \r\n\r\n[gitlab-ce] name=Gitlab CE Repository baseurl=https:\/\/mirrors.tuna.tsinghua.edu.cn\/gitlab-ce\/yum\/el$releasever\/ gpgcheck=0 enabled=1\r\n<\/pre>\n

    \"\"
    \n\u66f4\u65b0yum\u7f13\u5b58\uff0c\u7136\u540e\u5b89\u88c5gitlab-ce\uff1a<\/p>\n

    \r\n[root@localhost ~]# yum makecache\r\n[root@localhost ~]# yum -y install gitlab-ce\r\n<\/pre>\n

    \"\"
    \n\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n

    \u9632\u706b\u5899\u4e2d\u5f00\u653e\u7aef\u53e3<\/strong><\/div>\n
    \r\n[root@localhost ~]# firewall-cmd --permanent --add-service=http\r\nsuccess\r\n[root@localhost ~]# firewall-cmd --permanent --add-service=https\r\nsuccess\r\n[root@localhost ~]# firewall-cmd --reload\r\nsuccess\r\n<\/pre>\n
    \u914d\u7f6e\u5e76\u542f\u52a8gitlab<\/strong><\/div>\n

    \u521a\u5b89\u88c5\u5b8c\uff0c\u9700\u8981\u914d\u7f6e\u4e00\u4e0bgitlab\u3002<\/p>\n

    \r\n[root@localhost ~]# gitlab-ctl reconfigure\r\n<\/pre>\n

    \u914d\u7f6e\u5b8c\u6210\u4e4b\u540e\u5df2\u7ecf\u542f\u52a8\u6240\u6709\u670d\u52a1\u4e86\uff0c\u5df2\u7ecf\u8bbe\u7f6e\u597d\u5f00\u673a\u542f\u52a8\u4e86\u3002<\/p>\n

    gitlab-ctl<\/code>\u7684\u5e38\u7528\u7684\u64cd\u4f5c\uff1a<\/p>\n

    \r\n# \u91cd\u7f6e\u5e94\u7528\r\ngitlab-ctl reconfigure\r\n# \u542f\u52a8\u6240\u6709\u670d\u52a1\r\ngitlab-ctl start\r\n# \u5173\u95ed\u6240\u6709\u670d\u52a1\r\ngitlab-ctl stop\r\n# \u91cd\u542f\u6240\u6709\u670d\u52a1\r\ngitlab-ctl restart\r\n# \u5217\u51fa\u6240\u6709\u670d\u52a1\r\ngitlab-ctl service-list\r\n# \u67e5\u770b\u670d\u52a1\u72b6\u6001\r\ngitlab-ctl status\r\n<\/pre>\n
    web\u754c\u9762\u8bbf\u95eeGitLab<\/strong><\/div>\n

    \u5728\u6d4f\u89c8\u5668\u8f93\u5165\u672c\u673aip\u5730\u5740\uff0c\u8bbf\u95eegitlab\uff0c\u7b2c\u4e00\u6b21\u8bbf\u95ee\u9700\u8981\u4e3a\u7ba1\u7406\u5458\u8bbe\u7f6e\u5bc6\u7801\uff1a
    \n\"\"
    \n\u9ed8\u8ba4\u7684\u7528\u6237\u662froot<\/code>\uff0c\u521a\u8bbe\u7f6e\u597d\u5bc6\u7801\uff0c\u53ef\u4ee5\u767b\u5f55\u4e86\uff1a
    \n\"\"<\/p>\n

    \"\"
    \n\u7136\u540e\u5c31\u53ef\u4ee5\u521b\u5efaproject\u4e86\u3002
    \n\"\"<\/p>\n

    \u603b\u7ed3<\/strong><\/div>\n

    GitLab\u80fd\u591f\u96c6\u6210\u5927\u91cf\u7684\u5de5\u5177\uff0c\u5982Slack\u3001Hipchat\u3001LDAP\u3001JIRA\u3001Jenkins\u3001\u8bb8\u591a\u7c7b\u578b\u7684\u94a9\u5b50\u548c\u4e00\u4e2a\u5b8c\u6574\u7684API\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    GitLab\u6709\u4e09\u4e2a\u4e0d\u540c\u7684\u7248\u672c\u53ef\u7528\uff1aCommunity Edition\uff08CE\uff09\u3001Enterprise Editi […]<\/p>\n","protected":false},"author":362,"featured_media":196571,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-196570","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/196570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=196570"}],"version-history":[{"count":3,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/196570\/revisions"}],"predecessor-version":[{"id":196580,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/196570\/revisions\/196580"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/196571"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=196570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=196570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=196570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}