Linuxƽ̨ÉÏÔõô´î½¨GitLab£¿ÒªÁìdzÎö
ÔÚÈí¼þ¿ª·¢ºÍÏîÄ¿ÖÎÀíÖУ¬´úÂë°æ±¾¿ØÖÆÊÇÒ»¸ö±Ø²»¿ÉÉٵĻ·½Ú¡£git×÷ΪÂþÑÜʽ°æ±¾¿ØÖÆϵͳ£¬ÒѾ³ÉΪÁËÖڶ࿪·¢ÕßµÄÊ×Ñ¡¡£¶øgitlab×÷ΪÆäÖÐÒ»ÖÖÖ§³ÖgitµÄweb½çÃæÖÎÀí¹¤¾ß£¬Æ书Чǿʢ£¬Ê¹Óñã½Ý£¬Ô½À´Ô½Êܵ½ÈËÃǵÄÇàíù¡£¿ÉÊÇ£¬ÎªÁ˸üÎÞаµØʹÓÃgitlab£¬linuxƽ̨ϵÄgitlab´î½¨¾Í³ÉΪ¸÷ÈËÆÈÇÐÐèÒªÏàʶºÍÕÆÎÕµÄÊÖÒÕ¡£ÏÂÃ棬±¾ÎĽ«Îª¸÷ÈËÏÈÈÝÔõÑùÔÚlinuxƽ̨Éϴgitlab¡£
µÚÒ»²½£º×°ÖÃÐëÒªµÄÒÀÀµ×é¼þ
ÔÚÆô¶¯GitLab֮ǰ£¬ÎÒÃÇÐèÒªÏÈ×°ÖÃһЩÐëÒªµÄÒÀÀµ×é¼þ¡£½øÈëLinuxÖն˽çÃ棬ִÐÐÒÔÏÂÏÂÁî¾ÙÐÐ×°Öãº
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates tzdata
µÇ¼ºó¸´ÖÆ
ÔÚ¸Ã×°ÖÃÀú³ÌÖУ¬ÎÒÃÇ»¹ÐèÒªÊäÈëÁ½´ÎÃÜÂëÀ´È·ÈÏ×°ÖÃÀú³Ì¡£È»ºóÎÒÃǾÍÐèÒªÆÚ´ýÒÀÀµ×é¼þµÄ×°ÖÃÍê³É¡£
µÚ¶þ²½£º×°ÖÃGitLab
×°ÖÃGitLabºÜÊǼòÆÓ£¬ÎÒÃÇÖ»ÐèÒª´Ó¹ÙÍøÏÂÔضÔÓ¦°æ±¾µÄ.debÎļþ£¬È»ºóͨ¹ýÏÂÁî¾ÙÐÐ×°Öü´¿É¡£½øÈëLinuxÖն˽çÃ棬ִÐÐÒÔÏÂÏÂÁî¾ÙÐÐÏÂÔغÍ×°Öãº
curl -LO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_<version_number>_amd64.deb/download.deb sudo dpkg -i gitlab-ce_<version_number>_amd64.deb</version_number></version_number>
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬ VERSION_NUMBER ´ú±í GitLab µÄ°æ±¾ºÅ£¬ÎÒÃÇÐèҪƾ֤×Ô¼ºµÄÏÖÕæÏàÐξÙÐÐ×°Öá£ÔÚ×°ÖÃÀú³ÌÖУ¬ÎÒÃÇͬÑùÐèÒªÊäÈëÁ½´ÎÃÜÂëÀ´È·ÈÏ×°ÖÃÀú³Ì¡£È»ºóÎÒÃǾÍÐèÒªÆÚ´ýGitLabµÄ×°ÖÃÍê³É¡£
µÚÈý²½£ºÉèÖÃGitLab
×°ÖÃÍê³Éºó£¬ÎÒÃÇÐèÒª¾ÙÐÐGitLabµÄ³õʼ»¯ÉèÖá£ÔÚLinuxÖն˽çÃæÖ´ÐÐÒÔÏÂÏÂÁ
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁ×Ô¶¯ÉèÖÃGitLab£¬²¢ÇÒ½«GitLabÔËÐÐÔÚÎÒÃÇÊäÈëµÄÖ÷»úÃûϵÄIPµØµãºÍ80¶Ë¿Ú¡£ÔÚ¸ÃÏÂÁîÖ´ÐÐÀֳɺó£¬ÎÒÃǾͿÉÒÔÔÚä¯ÀÀÆ÷Öлá¼ûGitLabÁË¡£
µÚËIJ½£ºÊ¹ÓÃGitLab
ÔÚ»á¼ûGitLabʱ£¬ÎÒÃÇÊ×ÏÈÐèÒªÊäÈëÖÎÀíÔ±µÄÓû§ÃûºÍÃÜÂë¾ÙÐеǼ¡£È»ºóÎÒÃǾͿÉÒÔʹÓÃGitLab¾ÙÐдúÂë°æ±¾ÖÎÀíÁË¡£ÔÚGitLabÉÏ£¬ÎÒÃÇ¿ÉÒÔ½¨ÉèÏîÄ¿£¬ÉÏ´«´úÂ룬¶Ô´úÂë¾ÙÐзÖÖ§ÖÎÀíºÍºÏ²¢µÈ²Ù×÷¡£ÎÒÃÇÒ²¿ÉÒÔÔÚÏîÄ¿ÖоÙÐÐÆäËû³ÉÔ±µÄÌí¼ÓºÍȨÏÞÖÎÀíµÈ²Ù×÷¡£ÔÚGitLabÉϵÄËùÓвÙ×÷¶¼¿ÉÒÔͨ¹ýWeb½çÃæÀ´Íê³É£¬ºÜÊÇÀû±ã¿ì½Ý¡£
×ܽ᣺
ͨ¹ýÒÔÉÏËĸö°ì·¨£¬ÎÒÃǾͿÉÒÔÔÚLinuxƽ̨ÉϴGitLabÁË¡£GitLab×÷Ϊһ¿îÇ¿Ê¢¶øÀû±ãµÄGit°æ±¾ÖÎÀí¹¤¾ß£¬ÆäʹÓÃÆձ飬ÓëGitÏศÏà³É¡£ÔÚLinuxƽ̨ϾÙÐÐGitLab´î½¨Äܹ»¸üºÃµØÌá¸ß×ðÁú¿Ê±´úÂë°æ±¾ÖÎÀíЧÂÊ£¬Õâ¹ØÓÚÏÖ´úÈí¼þ¿ª·¢¾ßÓкÜÊÇÖ÷ÒªµÄÒâÒå¡£
ÒÔÉϾÍÊÇLinuxƽ̨ÉÏÔõô´î½¨GitLab£¿ÒªÁìdzÎöµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡