centos7ÔõôװÖÃgitlabЧÀÍÆ÷
×÷Ϊһ¸öÏ൱ǿʢµÄ°æ±¾¿ØÖƹ¤¾ß£¬gitlab¿ÉÒÔÈÃÍŶӸüÀû±ãµØÐ×÷¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ÏàʶÔõÑùʹÓÃcentos 7À´×°ÖÃÒÔ¼°ÉèÖÃgitlabЧÀÍÆ÷¡£
°ì·¨ 1£º¸üаü¹ÜÀíÆ÷
ÔÚ×îÏÈ֮ǰ£¬ÇëÈ·±£ÄúµÄЧÀÍÆ÷ÒѾ¸üÐÂÁË°ü¹ÜÀíÆ÷¡£Ö´ÐÐÒÔÏÂÏÂÁ
sudo yum update -y
µÇ¼ºó¸´ÖÆ
°ì·¨ 2£º×°ÖÃÒÀÀµÏî
GitLabÒÀÀµÓÚÐí¶àÈí¼þ°ü£¬ÐèÒªÔÚЧÀÍÆ÷ÉÏ×°Öá£ÇëʹÓÃÒÔÏÂÏÂÁî×°ÖÃÕâЩÈí¼þ°ü£º
sudo yum install curl policycoreutils openssh-server openssh-clients -y sudo systemctl enable sshd sudo systemctl start sshd sudo firewall-cmd --permanent --add-service=http sudo systemctl reload firewalld
µÇ¼ºó¸´ÖÆ
°ì·¨ 3£ºÉèÖÃ×°ÖÃÔ´
×°Öò¢ÉèÖÃGitLab֮ǰ£¬ÎÒÃÇÐèÒª½«´æ´¢¿âÌí¼Óµ½ÏµÍ³ÖС£ÔËÐÐÒÔÏÂÏÂÁî²¢·µ»Ø׼ȷµÄRPM´úÂë:
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
µÇ¼ºó¸´ÖÆ
°ì·¨ 4£º×°ÖÃGitLab
µ±ÄúÒѾÉèÖÃÁËGitLabµÄ´æ´¢¿â²¢×°ÖÃÁËÒÀÀµÏîºó£¬ÄÇôËü¾Í¿ÉÒÔ×°Öõ½ÄúµÄCentOS 7ϵͳÖÐÁË¡£Ê¹ÓÃÒÔÏÂÏÂÁî×°ÖÃGitLab:
sudo yum install gitlab-ce -y
µÇ¼ºó¸´ÖÆ
´Ë×°ÖÃÀú³Ì¿ÉÄÜÐèҪһЩʱ¼ä£¬Òò´ËÄúÐèÒªÄÍÐÄÆÚ´ý¡£
°ì·¨ 5£ºÉèÖÃGitLab
ÔÚ×°ÖÃGitLabºó£¬ÎÒÃÇÓ¦¸ÃÉèÖÃËüÒÔʹÆäÊʺÏÎÒÃǵÄÐèÇó¡£ÔËÐÐÒÔÏÂÏÂÁîÀ´Æô¶¯GitLabµÄÉèÖÃÏòµ¼:
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
ÔÚÍê³Éºó£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏ·½·¨ÖØÐÂÆô¶¯GitLab:
sudo gitlab-ctl restart
µÇ¼ºó¸´ÖÆ
ÏÖÔÚ£¬ÄúÒѾװÖò¢ÉèÖÃÁËGitLab£¡Äú¿ÉÒÔʹÓÃWebä¯ÀÀÆ÷ÊäÈëЧÀÍÆ÷IPµØµã»òURL£¬²¢Ê¹ÓÃÖÎÀíÔ±ÕÊ»§µÇ¼¡£
½áÂÛ
GitLabÊÇÒ»¸öÇ¿Ê¢µÄ°æ±¾¿ØÖƹ¤¾ß£¬¿ÉÒÔ×ÊÖúÎÒÃǸüÀû±ãµØÐ×÷¡£Í¨¹ý±¾ÎÄ£¬ÎÒÃÇÏàʶÁËÔõÑùʹÓÃCentOS 7À´×°ÖÃÒÔ¼°ÉèÖÃGitLabЧÀÍÆ÷¡£ºÃÔË£¡
ÒÔÉϾÍÊÇcentos7ÔõôװÖÃgitlabЧÀÍÆ÷µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡