ÔÚCentOSЧÀÍÆ÷ÉϴGitLabµÄÒªÁì
centos gitlab´î½¨
GitLabÊÇ¿ªÔ´µÄGit¿ÍÕ»ÖÎÀíϵͳ£¬¿ÉÒÔ×ÊÖúÍŶÓÐͬ¿ª·¢¡¢´úÂëÖÎÀíÒÔ¼°Ò»Á¬¼¯³ÉºÍ°²ÅŵÈʹÃü¡£±¾ÎĽ«ÏÈÈÝÔÚCentOSЧÀÍÆ÷ÉϴGitLabµÄÒªÁì¡£
×¼±¸ÊÂÇé
ÔÚ×îÏȴGitLab֮ǰ£¬ÐèҪȷ±£CentOSЧÀÍÆ÷ÒѾװÖÃÁËÐëÒªµÄÈí¼þºÍ¹¤¾ß¡£ÒÔÏÂÊÇËùÐèµÄÈí¼þºÍ¹¤¾ß£º
CentOS 7.x »ò¸ü¸ß°æ±¾£¨¾ß±¸Root»á¼ûȨÏÞ£©
curl ºÍ openssh-server ÒÑ×°ÖÃ
2 GB ÒÔÉϵÄRAM
×°ÖÃGitLab
2.1 ×°ÖÃÐëÒªµÄÒÀÀµ
ÔÚ×îÏÈ×°ÖÃGitLab֮ǰ£¬ÐèÒªÏÈ×°ÖÃÐëÒªµÄÒÀÀµ¡£·¿ªÖն˲¢Ö´ÐÐÒÔÏÂÏÂÁ
sudo yum install -y curl policycoreutils-python openssh-server
2.2 Ìí¼ÓGitLab¿ÍÕ»Ô´
ΪÁË×°ÖÃGitLab£¬ÐèÒªÏȽ«Æä¿ÍÕ»Ô´Ìí¼Óµ½ÏµÍ³ÖС£Ö´ÐÐÒÔÏÂÏÂÁ
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
2.3 ×°ÖÃGitLab
GitLabÔ´ÒѾÌí¼Óµ½ÏµÍ³ÖУ¬ÏÖÔÚ¿ÉÒÔ×°ÖÃÆäÈí¼þ°ü¡£Ö´ÐÐÒÔÏÂÏÂÁ
sudo yum install -y gitlab-ce
×°ÖÃÀú³Ì¿ÉÄÜÐèҪһЩʱ¼ä£¬ÊÓÍøÂçËÙÂʶø¶¨¡£
2.4 Æô¶¯GitLab
×°ÖÃÍê³Éºó£¬¿ÉÒÔÆô¶¯GitLabЧÀÍ¡£Ö´ÐÐÒÔÏÂÏÂÁ
sudo gitlab-ctl reconfigure
´ËÏÂÁ×Ô¶¯Æô¶¯GitLabЧÀͲ¢ÉèÖÃÐëÒªµÄÑ¡Ïî¡£
»á¼ûGitLab
ÏÖÔÚ¿ÉÒÔͨ¹ýä¯ÀÀÆ÷»á¼ûGitLab¡£ÔÚä¯ÀÀÆ÷ÖÐÊäÈëЧÀÍÆ÷IPµØµã»òÓòÃûºó£¬½«¿´µ½GitLabµÄ½Ó´ýÒ³Ãæ¡£
Ê״λá¼ûʱ£¬ÐèÒª½¨ÉèÒ»¸öÖÎÀíÔ±ÕÊ»§¡£Æ¾Ö¤ÌáÐÑÌîдÐëÒªµÄÐÅÏ¢À´½¨ÉèÖÎÀíÔ±ÕÊ»§¡£
ʹÓÃGitLab
ÏÖÔÚÒѾÀÖ³É×°Öò¢Æô¶¯ÁËGitLab£¬¿ÉÒÔ×îÏÈʹÓÃÁË¡£GitLabµÄÖ÷ÒªÌصãÖ®Ò»ÊÇËüµÄ¼òÆÓÒ×ÓÃÐÔ¡£´ÓÖÎÀíÏîÄ¿µ½Ðͬ¿ª·¢£¬GitLab¿ÉÒÔÇáËÉÖÎÀíÖÖÖÖʹÃü¡£
×ܽá
±¾ÎÄÏÈÈÝÁËÔÚCentOSЧÀÍÆ÷ÉϴGitLabµÄÒªÁì¡£ÔÚ×îÏÈ֮ǰ£¬ÐèҪȷ±£ÒѾװÖÃÐëÒªµÄÈí¼þºÍ¹¤¾ß£¬²¢Æ¾Ö¤°ì·¨×°ÖÃGitLab¡£ÈôÊÇÓöµ½ÈκÎÎÊÌ⣬ÇëÉó²é¹Ù·½Îĵµ»òÉçÇøÖ§³Ö¡£
GitLabÌṩÁËÒ»Ì×ÍêÕûµÄ½â¾ö¼Æ»®£¬¿ÉÓÃÓÚÖÎÀíÍŶӵĴúÂëÐ×÷ºÍ°²ÅÅ¡£ËüÊǽ¨ÉèÒ»¸ö¿ìËÙ¡¢¼òÆӺͺÏÀíµÄ¿ª·¢ºÍÐ×÷ÇéÐεÄÀíÏëÑ¡Ôñ£¬¿ª·¢ÍŶӿÉÒÔ±ã½ÝµØÐͬ¿ª·¢ºÍÖÎÀí´úÂë¿â¡£
ÒÔÉϾÍÊÇÔÚCentOSЧÀÍÆ÷ÉϴGitLabµÄÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡