ÔõÑùÔÚCentOSϵͳÉÏͨ¹ýyum×°ÖÃGitLab
gitlabÊÇÒ»¸ö¿ªÔ´µÄweb git¿ÍÕ»ÖÎÀí¹¤¾ß£¬Ëü²»µ«ÌṩÁË»ùÓÚgitµÄ°æ±¾¿ØÖÆ£¬»¹°üÀ¨ÁË´úÂëÆÀÉó¡¢Ò»Á¬¼¯³ÉÓë°²ÅÅ¡¢wiki¡¢ÎÊÌâ¸ú×ÙµÈÖڶ๦Ч¡£
±¾ÎĽ«ÏÈÈÝÔõÑùÔÚCentOSϵͳÉÏͨ¹ýyum×°ÖÃGitLab£¬²¢¼òÆÓÉèÖá£
Ò»¡¢×°ÖÃÒÀÀµ
ÔÚ×°ÖÃGitLab֮ǰ£¬ÐèҪװÖÃÒÔÏÂÒÀÀµ°ü£º
sudo yum install -y curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd –permanent –add-service=http
sudo systemctl reload firewalld
¶þ¡¢×°ÖÃGitLab
1.ÏÂÔØGitLabÔ´
sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
2.×°ÖÃGitLab
sudo yum install -y gitlab-ce
Èý¡¢ÉèÖÃGitLab
1.ÐÞ¸ÄGitLabÉèÖÃÎļþ
sudo vi /etc/gitlab/gitlab.rb
2.ÐÞ¸ÄGitLabÓòÃû
external_url ‘http://ÄãµÄÓòÃû»òIP’
3.ÉúÑÄÐÞ¸Ä
:wq
4.ÖØÐÂÉèÖÃGitLab
sudo gitlab-ctl reconfigure
5.»á¼ûGitLab
ÔÚä¯ÀÀÆ÷µØµãÀ¸ÖÐÊäÈëGitLabµÄÓòÃû»òIPµØµã£¬¼´¿É½øÈëGitLabÒ³Ãæ¡£
ËÄ¡¢Ê¹ÓÃGitLab
1.½¨ÉèÓû§
ÔÚGitLabÒ³Ãæµã»÷ÓÒÉϽǵġ°Sign In / Register¡±°´Å¥£¬½øÈë×¢ÊéÒ³Ã棬ÊäÈëÓû§Ãû¡¢ÃÜÂëºÍÓÊÏ䣬µã»÷¡°Register¡±°´Å¥¼´¿ÉÍê³ÉÓû§×¢²á¡£
2.½¨Éè¿ÍÕ»
µÇ¼GitLabºó£¬ÔÚÒ³ÃæÉÏ·½µ¼º½À¸ÖУ¬µã»÷¡°New Project¡±°´Å¥£¬Ìîд¿ÍÕ»Ãû³ÆºÍÐÎò£¬Ñ¡Ôñ¿É¼ûÐÔ£¬µã»÷¡°Create Project¡±°´Å¥¼´¿É½¨Éè¿ÍÕ»¡£
3.¿Ë¡¿ÍÕ»
ÔÚGitLab¿ÍÕ»Ò³ÃæÖУ¬µã»÷¿ÍÕ»ÓÒÉϽǵġ°Clone¡±°´Å¥£¬¸´ÖÆ¿ÍÕ»µÄSSH»òHTTPSµØµã£¬Ê¹ÓÃgit cloneÏÂÁ¿ÍÕ»¿Ë¡µ½ÍâµØ¡£
×ÛÉÏËùÊö£¬Í¨¹ýyum×°ÖÃGitLabÊÇÒ»¼þÏà¶Ô¼òÆÓµÄÊÂÇé¡£ÈôÊÇÄúÏëÉîÈëÏàʶGitLabµÄ¸ü¶à¹¦Ð§£¬¿ÉÒÔÔÚ¹ÙÍøÉó²é¸ü¶àÎĵµ¡£
ÒÔÉϾÍÊÇÔõÑùÔÚCentOSϵͳÉÏͨ¹ýyum×°ÖÃGitLabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡