ÔõÑùÔÚMacϵͳÉÏ°²ÅÅGitLab£¿
Ëæ×ÅÈí¼þ¿ª·¢µÄÒ»Ö±Éú³¤ºÍÊÖÒÕµÄÒ»Ö±¸üУ¬´úÂëÍйܳÉΪÁËÈí¼þ¿ª·¢Àú³ÌÖв»¿É»òȱµÄÒ»²¿·Ö¡£gitlabÊÇÒ»¸ö¿ªÔ´ÇÒ¹¦Ð§Ç¿Ê¢µÄgit´úÂëÍйÜƽ̨£¬Ö§³ÖÍŶÓÐ×÷¡¢Ò»Á¬¼¯³ÉºÍ¿ìËÙ°²Åŵȹ¦Ð§¡£ÈôÊÇÄúÏëÔÚmacϵͳÉϴ×Ô¼ºµÄgitlabЧÀÍÆ÷£¬±¾ÎĽ«ÎªÄúÌṩÏêϸµÄ°²ÅÅ°ì·¨¡£
°ì·¨Ò»£º×°ÖÃHomebrew
ÈôÊÇÄúµÄMacϵͳÉÏÒѾװÖÃÁËHomebrew£¬ÇëÌø¹ý´Ë°ì·¨¡£²»È»£¬Çë·¿ªTerminal£¬ÊäÈëÒÔÏÂÏÂÁîÀ´×°ÖÃHomebrew£º
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
µÇ¼ºó¸´ÖÆ
ÔÚ×°ÖÃÀú³ÌÖУ¬ÏµÍ³¿ÉÄÜ»áÒªÇóÄúÊäÈëÅÌËãÉñÃØÂë¡£
×°ÖÃÍê³Éºó£¬Äú¿ÉÒÔÊäÈëÒÔÏÂÏÂÁîÀ´ÑéÖ¤HomebrewÊÇ·ñÀÖ³É×°Öãº
brew doctor
µÇ¼ºó¸´ÖÆ
ÈôÊÇÄú¿´µ½¡°Your system is ready to brew.¡±µÄÌáÐÑÐÅÏ¢£¬ËµÃ÷HomebrewÒѾװÖÃÀֳɡ£
°ì·¨¶þ£º×°ÖÃGitLab
ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁîÀ´×°ÖÃGitLab£º
brew install gitlab-ce
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬Äú¿ÉÒÔÊäÈëÒÔÏÂÏÂÁîÀ´Éó²éGitLabµÄ×°Ö÷¾¶£º
brew list gitlab-ce
µÇ¼ºó¸´ÖÆ
ÔÚMacϵͳÖУ¬GitLabµÄĬÈÏ×°Ö÷¾¶Îª¡°/usr/local/opt/gitlab-ce¡±¡£
°ì·¨Èý£ºÉèÖÃGitLab
ΪÁËʹGitLabÄܹ»Õý³£ÊÂÇ飬ÄúÐèÒª¾ÙÐÐһЩ»ù±¾ÉèÖá£Ê×ÏÈ£¬ÇëÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁîÀ´Æô¶¯GitLab£º
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
ÔÚÔËÐдËÏÂÁîÖ®ºó£¬GitLab½«×Ô¶¯¾ÙÐÐһЩÉèÖ㬰üÀ¨ÌìÉúSSLÖ¤Êé¡¢³õʼ»¯Êý¾Ý¿âµÈ²Ù×÷¡£ÇëÄÍÐÄÆÚ´ýÕâЩ²Ù×÷Íê³É¡£
ÔÚÉèÖÃÀú³ÌÖУ¬Äú»¹ÐèÒª¾ÙÐÐһЩÊÖ¶¯ÉèÖá£ÀýÈ磬ÄúÐèÒªÉèÖÃGitLabµÄÖÎÀíÔ±ÕË»§¡¢ÉèÖÃSMTPЧÀÍÆ÷ÒÔ¼°ÉèÖÃÍⲿURLµÈ¡£ÕâЩÉèÖÃÏîµÄÏêϸ˵Ã÷¿ÉÒÔÔÚGitLab¹Ù·½ÎĵµÖÐÕÒµ½¡£
°ì·¨ËÄ£º»á¼ûGitLab
ÔÚÍê³ÉÒÔÉÏÉèÖúó£¬ÄúÓ¦¸Ã¿ÉÒÔͨ¹ýä¯ÀÀÆ÷À´»á¼ûÄúµÄGitLabЧÀÍÆ÷ÁË¡£Ä¬ÈÏÇéÐÎÏ£¬GitLabµÄWeb½çÃæÓ¦¸Ã¿ÉÒÔÔÚÒÔϵصãÖоÙÐлá¼û£º
http://localhost:8080
µÇ¼ºó¸´ÖÆ
ÈôÊÇÄúÏë´ÓÆäËûÅÌËã»úÉÏ»á¼ûGitLabЧÀÍÆ÷£¬Äú¿ÉÄÜÐèÒªÔÚ·ÓÉÆ÷ÖоÙÐж˿ÚÓ³Éä¡£
ÖÁ´Ë£¬ÄúÒѾÀֳɴÁË×Ô¼ºµÄGitLabЧÀÍÆ÷£¬²¢ÇÒ¿ÉÒÔͨ¹ýWeb½çÃæ¾ÙÐдúÂëÍйܡ¢ÍŶÓÐ×÷µÈ²Ù×÷¡£Ï£ÍûÕâƪÎÄÕ¶ÔÄúÓÐËù×ÊÖú£¡
ÒÔÉϾÍÊÇÔõÑùÔÚMacϵͳÉÏ°²ÅÅGitLab£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡