ÁÄÁÄUbuntuÉÏ×°ÖÃGitLabµÄ°ì·¨
ubuntuÊÇÒ»ÖÖÆÕ±éʹÓõIJÙ×÷ϵͳ£¬Ëü»ùÓÚdebianºÍlinuxÄںˡ£¹ØÓÚ¿ª·¢Ö°Ô±À´Ëµ£¬ubuntuÊÇÒ»¸öºÜ°ôµÄƽ̨£¬ÓÉÓÚËüÔÚ¿ª·¢·½ÃæÌṩÁËÐí¶à¹¦Ð§ºÍ¹¤¾ß¡£ÆäÖÐÒ»¸ö×îÊ¢ÐеŤ¾ßÊÇgitlab£¬ËüÊÇÒ»¸ö¿ªÔ´ÏîÄ¿£¬ÌṩÁËÒ»ÖÖ¼¯³ÉµÄ¡¢web-basedµÄgit´æ´¢¿âÖÎÀíϵͳ¡£±¾ÎĽ«ÏòÄúÏÈÈÝÔÚubuntuÉÏ×°ÖÃgitlabµÄ°ì·¨¡£
°ì·¨1£º¸üÐÂϵͳ
ÔÚ×°ÖÃGitLab֮ǰ£¬ÄúÐèҪȷ±£ÏµÍ³ÊÇ×îа汾¡£·¿ªÖն˴°¿Ú²¢ÔËÐÐÒÔÏÂÏÂÁ
sudo apt update sudo apt upgrade
µÇ¼ºó¸´ÖÆ
°ì·¨2£º×°ÖÃÐëÒªµÄÒÀÀµÏî
ÔÚ×°ÖÃGitLab֮ǰ£¬ÄúÐèҪװÖÃһЩÐëÒªµÄÒÀÀµÏî¡£ÔÚÖն˴°¿ÚÖÐÔËÐÐÒÔÏÂÏÂÁ
sudo apt install curl openssh-server ca-certificates postfix
µÇ¼ºó¸´ÖÆ
´ËÏÂÁװÖÃCurl£¬OpenSSHЧÀÍÆ÷ºÍÖ¤Êé¡¢PostfixÓʼþЧÀÍÆ÷¡£Postfix½«ÓÃÓÚÏòÖÎÀíÔ±·¢ËÍ֪ͨ¡£
°ì·¨3£º×°ÖÃGitLab
×°ÖÃÒÀÀµÏîºó£¬Äú¿ÉÒÔͨ¹ýʹÓÃÒÔÏÂÏÂÁîÀ´×°ÖÃGitLab£º
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
µÇ¼ºó¸´ÖÆ
´ËÏÂÁÏòϵͳÌí¼ÓGitLab´æ´¢¿â£¬²¢»ñȡװÖþ籾¡£
½ÓÏÂÀ´£¬ÔÚÖÕ¶ËÖÐÔËÐÐÒÔÏÂÏÂÁîÀ´×°ÖÃGitLab£º
sudo apt install gitlab-ce
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬ÄúÐèҪͨ¹ýÒÔÏÂÏÂÁîÀ´ÖØÐÂÉèÖÃGitLab£º
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁÆô¶¯GitLabµÄÉèÖÃÀú³Ì£¬¸ÃÀú³Ì¿ÉÄÜÐèÒª¼¸·ÖÖÓʱ¼ä¡£
°ì·¨4£º»á¼ûGitLab
ÔÚÍê³ÉGitLabµÄ×°ÖúÍÉèÖúó£¬Äú¿ÉÒÔͨ¹ýÒÔÏÂURLÀ´»á¼ûËü£º
http://your-server-IP
µÇ¼ºó¸´ÖÆ
»á¼ûURLʱ£¬Ç뽫your-server-IPÌ滻ΪÄúЧÀÍÆ÷µÄIPµØµã¡£
°ì·¨5£ºµÇ¼µ½GitLab
ÔÚ»á¼ûURLºó£¬Äú½«¿´µ½GitLabµÄµÇ¼ҳÃ档ΪÁ˵Ǽµ½GitLab£¬ÇëʹÓÃÒÔÏÂĬÈÏÖÎÀíԱƾ֤£º
Óû§Ãû£ºroot
ÃÜÂ룺5iveL!fe
µÇ¼ºó£¬Äú¿ÉÒÔ¸ü¸ÄÖÎÀíÔ±ÃÜÂëÒÔÈ·±£Çå¾²ÐÔ¡£
½áÂÛ£º
ÔÚ±¾ÎÄÖУ¬ÎÒÃÇÏòÄúչʾÁËÔÚUbuntuÉÏ×°ÖÃGitLabµÄ°ì·¨¡£×°ÖÃGitLab֮ǰ£¬ÄúÐèÒªÏȸüÐÂϵͳ²¢×°ÖÃÐëÒªµÄÒÀÀµÏȻºó£¬ÄúÐèÒª´ÓGitLab´æ´¢¿â×°ÖÃGitLab¡£×îºó£¬Äú¿ÉÒÔͨ¹ý»á¼ûURLÀ´»á¼ûGitLab£¬²¢Ê¹ÓÃÖÎÀíԱƾ֤µÇ¼¡£
ÒÔÉϾÍÊÇÁÄÁÄUbuntuÉÏ×°ÖÃGitLabµÄ°ì·¨µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡