{"id":18815,"date":"2024-11-19T14:55:40","date_gmt":"2024-11-19T06:55:40","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18815\/"},"modified":"2024-11-19T14:55:40","modified_gmt":"2024-11-19T06:55:40","slug":"redhat%e7%b3%bb%e7%bb%9f%e4%b8%8a%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85gitlab","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18815\/","title":{"rendered":"redhat\u7cfb\u7edf\u4e0a\u600e\u4e48\u5b89\u88c5gitlab"},"content":{"rendered":"<p>gitlab\u662f\u4e00\u4e2a\u5f00\u6e90\u7684git\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\uff0c\u5177\u6709\u4ee3\u7801\u7ba1\u7406\u3001\u95ee\u9898\u8ddf\u8e2a\u3001\u6301\u7eed\u96c6\u6210\u7b49\u529f\u80fd\u3002\u5bf9\u4e8e\u5f00\u53d1\u56e2\u961f\u6765\u8bf4\uff0c\u4f7f\u7528gitlab\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u534f\u4f5c\u6548\u7387\u3002\u5728\u672c\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728redhat\u7cfb\u7edf\u4e0a\u5b89\u88c5gitlab\u3002<\/p>\n<p>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/p>\n<p>\u5b89\u88c5Gitlab\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u4e00\u4e9b\u5fc5\u9700\u7684\u8f6f\u4ef6\u548c\u73af\u5883\uff0c\u5305\u62ec\uff1a<\/p>\n<p>1.\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u5305<\/p>\n<p>sudo yum -y install curl policycoreutils openssh-server openssh-clients postfix<\/p>\n<p>2.\u542f\u52a8\u5e76\u8bbe\u7f6ePostfix\u670d\u52a1<\/p>\n<p>sudo systemctl enable postfix<br \/>sudo systemctl start postfix<\/p>\n<p>3.\u5b89\u88c5\u914d\u7f6eGit<\/p>\n<p>sudo yum -y install git<\/p>\n<p>4.\u5b89\u88c5\u914d\u7f6eNTP<\/p>\n<p>sudo yum -y install ntp<br \/>sudo systemctl enable ntpd<br \/>sudo systemctl start ntpd<\/p>\n<p>\u4e8c\u3001\u5b89\u88c5Gitlab<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecdGitlab\u7684\u5b89\u88c5\u8fc7\u7a0b\u3002<\/p>\n<p>1.\u6dfb\u52a0Gitlab\u7684\u6e90<\/p>\n<p>sudo curl -s https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ce\/script.rpm.sh | sudo bash<\/p>\n<p>2.\u5b89\u88c5Gitlab<\/p>\n<p>sudo yum install gitlab-ce<\/p>\n<p>3.\u914d\u7f6e\u5e76\u542f\u52a8Gitlab<\/p>\n<p>sudo gitlab-ctl reconfigure<br \/>sudo gitlab-ctl start<\/p>\n<p>4.\u8bbf\u95eeGitlab<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u670d\u52a1\u5668IP\u5730\u5740\u548c\u7aef\u53e3\u53f7\uff08\u9ed8\u8ba480\u7aef\u53e3\uff09\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>http:\/\/192.168.1.100\/<\/p>\n<p>\u5373\u53ef\u8bbf\u95eeGitlab\u3002<\/p>\n<p>\u4e09\u3001\u914d\u7f6eGitlab<\/p>\n<p>1.\u8bbe\u7f6e\u7ba1\u7406\u5458\u8d26\u53f7<\/p>\n<p>\u9996\u6b21\u767b\u5f55Gitlab\u65f6\uff0c\u7cfb\u7edf\u4f1a\u8981\u6c42\u8bbe\u7f6e\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u5bc6\u7801\u3002\u6309\u7167\u63d0\u793a\u8bbe\u7f6e\u5373\u53ef\u3002<\/p>\n<p>2.\u521b\u5efa\u7ec4\u548c\u9879\u76ee<\/p>\n<p>\u70b9\u51fb\u5de6\u4fa7\u83dc\u5355\u680f\u4e2d\u7684\u201cGroup\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cNew group\u201d\u6309\u94ae\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7ec4\u3002\u63a5\u7740\u5728\u7ec4\u5185\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\uff0c\u5e76\u4e0a\u4f20\u4ee3\u7801\u3002<\/p>\n<p>3.\u6dfb\u52a0\u6210\u5458<\/p>\n<p>\u70b9\u51fb\u5de6\u4fa7\u83dc\u5355\u680f\u4e2d\u7684\u201cMembers\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cAdd member\u201d\u6309\u94ae\uff0c\u8f93\u5165\u9700\u8981\u6dfb\u52a0\u7684\u6210\u5458\u59d3\u540d\u548c\u90ae\u7bb1\u5730\u5740\uff0c\u7136\u540e\u70b9\u51fb\u201cAdd to project\u201d\u6309\u94ae\u5373\u53ef\u3002<\/p>\n<p>4.\u8bbe\u7f6e\u9879\u76ee\u8bbf\u95ee\u6743\u9650<\/p>\n<p>\u70b9\u51fb\u5de6\u4fa7\u83dc\u5355\u680f\u4e2d\u7684\u201cSettings\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cMembers\u201d\u9009\u9879\u5361\uff0c\u5728\u6210\u5458\u5217\u8868\u4e2d\u8bbe\u7f6e\u76f8\u5173\u7684\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<p>\u56db\u3001\u603b\u7ed3<\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u4ecb\u7ecd\u4e86\u5728Redhat\u7cfb\u7edf\u4e0a\u5b89\u88c5Gitlab\u7684\u8fc7\u7a0b\u3002\u4f7f\u7528Gitlab\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u4ee3\u7801\u7ba1\u7406\u548c\u534f\u4f5c\uff0c\u63d0\u9ad8\u56e2\u961f\u534f\u4f5c\u6548\u7387\u3002\u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5efa\u8bae\uff0c\u8bf7\u968f\u65f6\u8054\u7cfb\u6211\u4eec\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fredhat\u7cfb\u7edf\u4e0a\u600e\u4e48\u5b89\u88c5gitlab\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\u4e2a\u5f00\u6e90\u7684git\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\uff0c\u5177\u6709\u4ee3\u7801\u7ba1\u7406\u3001\u95ee\u9898\u8ddf\u8e2a\u3001\u6301\u7eed\u96c6\u6210\u7b49\u529f\u80fd\u3002\u5bf9\u4e8e\u5f00\u53d1\u56e2\u961f\u6765\u8bf4\uff0c\u4f7f\u7528gitlab\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u534f\u4f5c\u6548\u7387\u3002\u5728\u672c\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728redhat\u7cfb\u7edf\u4e0a\u5b89\u88c5gitlab\u3002 \u4e00\u3001\u51c6\u5907\u5de5\u4f5c \u5b89\u88c5Gitlab\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u4e00\u4e9b\u5fc5\u9700\u7684\u8f6f\u4ef6\u548c\u73af\u5883\uff0c\u5305\u62ec\uff1a 1.\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u5305 sudo yum -y install curl policycoreutils openssh-server openssh-clients postfix 2.\u542f\u52a8\u5e76\u8bbe\u7f6ePostfix\u670d\u52a1 sudo systemctl enable postfixsudo systemctl start postfix 3.\u5b89\u88c5\u914d\u7f6eGit sudo yum -y install git 4.\u5b89\u88c5\u914d\u7f6eNTP sudo yum -y install ntpsudo systemctl enable ntpdsudo systemctl start ntpd \u4e8c\u3001\u5b89\u88c5Gitlab \u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecdGitlab\u7684\u5b89\u88c5\u8fc7\u7a0b\u3002 1.\u6dfb\u52a0Gitlab\u7684\u6e90 sudo curl -s https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ce\/script.rpm.sh | sudo bash 2.\u5b89\u88c5Gitlab sudo yum install gitlab-ce 3.\u914d\u7f6e\u5e76\u542f\u52a8Gitlab [&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-18815","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18815","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=18815"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18815\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}