ubuntuÖÐÔõôװÖÃgitlab
ubuntuÊÇÒ»¸öÊ¢ÐеĿªÔ´²Ù×÷ϵͳ£¬¶øgitlabÔòÊÇÒ»¸öÓÃÓÚÖÎÀígit¿ÍÕ»µÄwebƽ̨¡£ÔÚubuntuÖÐ×°ÖÃgitlab¿ÉÒÔÈÃÄú¸üÇáËɵØÖÎÀíÄúµÄ´úÂë¿âºÍ°æ±¾¿ØÖƹ¤¾ß¡£ÏÂÃæÊÇÔõÑùÔÚubuntuÖÐ×°ÖÃgitlabµÄ°ì·¨¡£
µÚÒ»²½£º×°ÖÃÐëÒªµÄÒÀÀµÏî
Ê×ÏÈ£¬·¿ªÖն˲¢Ö´ÐÐÒÔÏÂÏÂÁîÒÔ×°ÖÃËùÐèµÄÒÀÀµÏ
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates postfix
µÇ¼ºó¸´ÖÆ
ÆäÖÐcurlÊÇÓÃÓÚÏÂÔØGitLab×°ÖóÌÐòµÄ¹¤¾ß£¬openssh-serverÓÃÓÚÖ§³ÖGitLab SSHÐÒ飬ca-certificatesÓÃÓÚÑéÖ¤ÍøÕ¾Ö¤Ê飬postfixÓÃÓÚ·¢ËÍÓʼþ֪ͨ¡£ÔÚ×°ÖÃʱ´ú£¬ÏµÍ³¿ÉÄÜ»áÌáÐÑÄúÊäÈëSMTPЧÀÍÆ÷Ãû³Æ»òÕßÉèÖÃÆäËüÉèÖá£Çëƾ֤ÌáÐÑÊäÈë׼ȷµÄÐÅÏ¢²¢Íê³É×°Öá£
µÚ¶þ²½£º×°ÖÃGitLab
ÔÚ×°ÖúÃÐëÒªÈí¼þºó£¬Ö´ÐÐÒÔÏÂÏÂÁîÒÔÏÂÔØ×°ÖÃGitLab£º
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash sudo apt-get install gitlab-ce
µÇ¼ºó¸´ÖÆ
×°ÖÃÀú³Ì¿ÉÄÜÐèҪһЩʱ¼ä£¬È¡¾öÓÚÄúµÄÍøÂçËÙÂʺÍϵͳÐÔÄÜ¡£
µÚÈý²½£ºÉèÖò¢Æô¶¯GitLab
Ò»µ©GitLab×°ÖÃÍê³É£¬Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÉèÖúÍÆô¶¯GitLab£º
sudo gitlab-ctl reconfigure sudo gitlab-ctl start
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁÖØÐÂÉèÖÃGitLab²¢Æô¶¯ÐëÒªµÄЧÀÍ¡£ÈôÊÇÄúÔÚ×°ÖûòÉèÖÃʱ´úÓöµ½ÈκÎÎÊÌ⣬ÇëÉó²éGitLabµÄÎĵµ»òÉçÇøÖ§³Ö¡£
µÚËIJ½£º»á¼ûGitLabƽ̨
×°ÖúÍÉèÖÃÍêGitLabºó£¬Äú¿ÉÒÔͨ¹ýÒÔÏÂURLÀ´»á¼ûGitLabWeb½çÃ棺
http://<your-server-ip-or-hostname></your-server-ip-or-hostname>
µÇ¼ºó¸´ÖÆ
ÆäÖДyour-server-ip-or-hostname”ÊÇÄú×°ÖÃGitLabµÄЧÀÍÆ÷µÄIPµØµã»òÕßÖ÷»úÃû¡£Ê״λá¼û¸ÃÍøҳʱ£¬ÄúÐèÒªÉèÖÃrootÓû§µÄÃÜÂ롣Ȼºó¾Í¿ÉÒԵǼ²¢×îÏÈʹÓÃGitLabÀ´ÖÎÀíÄúµÄ´úÂë¿âÁË¡£
½áÂÛ
×°ÖÃGitLabµÄÀú³ÌºÜ¼òÆÓ£¬Ö»ÐèÒª¼¸¸öÏÂÁî¾Í¿ÉÒÔÍê³ÉÕû¸öÀú³Ì¡£ÔÚÄú×°ÖúÍÉèÖúÃGitLabºó£¬Äú¿ÉÒÔʹÓÃËüÀ´¸üÇáËɵØÖÎÀíºÍά»¤ÄúµÄ´úÂë¿â¡£ÈôÊÇÄúÓÐÈκÎÎÊÌâ»òÐèÒª¸ü¶à×ÊÖú£¬Çë²Î¿¼GitLabµÄ¹Ù·½Îĵµ»òÉçÇøÖ§³Ö¡£
ÒÔÉϾÍÊÇubuntuÖÐÔõôװÖÃgitlabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡