linuxÔõôװÖÃgitlab£¿½Ì³Ì·ÖÏí
gitlab ÊÇÒ»¿îÓÃÓÚÏîÄ¿ÖÎÀíºÍÐ×÷µÄ¹¤¾ß£¬ÔÚÈí¼þ¿ª·¢ºÍÍŶÓÐ×÷Öб»ÆÕ±éʹÓᣱ¾ÎĽ«ÏÈÈÝÔõÑùÔÚ linux ÉÏ×°Öà gitlab¡£
×°ÖÃÒÀÀµ
ÔÚ×°Öà Gitlab ֮ǰÐèÒªÏÈ×°ÖÃÒÔÏÂÒÀÀµ°ü£º
curl
openssh-server
postfix
¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÔÚ Ubuntu/Debian ÉÏ×°ÖÃÒÀÀµ£º
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates postfix
µÇ¼ºó¸´ÖÆ
ÔÚ CentOS/RHEL ÉÏ×°ÖÃÒÀÀµ£º
sudo yum install -y curl policycoreutils-python openssh-server postfix sudo systemctl enable postfix sudo systemctl start postfix
µÇ¼ºó¸´ÖÆ
×°ÖÃ Gitlab
ʹÓà curl ÏÂÔØ Gitlab ×°Öðü£º
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
µÇ¼ºó¸´ÖÆ
»òÕßÔÚ CentOS/RHEL ÉÏʹÓÃÒÔÏÂÏÂÁ
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
µÇ¼ºó¸´ÖÆ
È»ºó×°Öà Gitlab£º
sudo apt-get install gitlab-ce
µÇ¼ºó¸´ÖÆ
»òÕßÔÚ CentOS/RHEL ÉÏÖ´ÐÐÒÔÏÂÏÂÁ
sudo yum install -y gitlab-ce
µÇ¼ºó¸´ÖÆ
ÉèÖÃ Gitlab
×°ÖÃÍê³Éºó£¬ÐèÒªÉèÖà Gitlab ÒÔʹÆäÄܹ»ÔËÐС£ÔËÐÐÒÔÏÂÏÂÁ
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁî»á×Ô¶¯ÉèÖà Gitlab ²¢Æô¶¯ËùÐèµÄЧÀÍ¡£
»á¼û Gitlab
×°ÖÃÍê³Éºó£¬Äú¿ÉÒÔÔÚ Web ä¯ÀÀÆ÷Öлá¼û Gitlab¡£Í¨¹ýä¯ÀÀÆ÷»á¼ûÄúµÄЧÀÍÆ÷µÄ IP µØµã»òÓòÃû£¬²¢½«Â·¾¶ÉèÖÃΪ /users/sign_in¡£
ÀýÈ磬http://your-server-ip/users/sign_in »òÕß http://your-domain.com/users/sign_in¡£
ʹÓÃĬÈÏÖÎÀíÔ±Óû§ÃûºÍÃÜÂ루root/5iveL!fe£©µÇ¼ Gitlab ºó£¬Äú¿ÉÒÔƾ֤ÐèÒª¸ü¸ÄÃÜÂëºÍÆäËûÉèÖá£
ÏÖÔÚÄúµÄ Gitlab ×°ÖÃÒѾÍê³ÉÁË£¡Äú¿ÉÒÔ×îÏȽ¨ÉèÐÂÏîÄ¿£¬Ìí¼ÓÍŶӳÉÔ±£¬ÍÆËͺÍÀÈ¡´úÂëµÈµÈ¡£
×ܽá
ÔÚ±¾ÎÄÖУ¬ÎÒÃÇѧϰÁËÔõÑù×°ÖúÍÉèÖà Gitlab£¬ÒÔ±ã¾ÙÐÐÈí¼þ¿ª·¢ºÍÍŶÓÐ×÷¡£ÏÖÔÚÄú¿ÉÒÔÁ¬Ã¦ÔÚ×Ô¼ºµÄ Linux ÉÏ×°Öà Gitlab ²¢Ê¹ÓÃËü¡£
ÒÔÉϾÍÊÇlinuxÔõôװÖÃgitlab£¿½Ì³Ì·ÖÏíµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡