ÁÄÁÄcentos7ÉÏgitlabµÄ×°ÖÃÒªÁì
gitlabÊÇÒ»ÖÖÖÎÀí git ´æ´¢¿âµÄÍøÕ¾³ÌÐò£¬Ëü¿ÉÒÔÓÃÓÚͬ²½´úÂ룬е÷ÍŶӳÉÔ±Ö®¼äµÄÊÂÇ飬¸ú×ÙÎÊÌâµÈµÈ¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚcentos 7ÉÏ×°ÖÃgitlab¡£
µÚÒ»²½£º×°ÖÃÐëÒªµÄÒÀÀµÏîºÍʹÓÃÔ´¡£
ÔÚ¼ÌÐø×°ÖÃ֮ǰ£¬ÄúÐèҪװÖÃһЩÐëÒªµÄÒÀÀµÏʹÓÃÒÔÏÂÏÂÁî×°ÖÃËùÐèµÄÒÀÀµÏ
sudo yum install curl policycoreutils-python openssh-server
µÇ¼ºó¸´ÖÆ
½ÓÏÂÀ´£¬Ê¹Óùٷ½Ô´ÉèÖÃGitLabÔ´£º
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
µÇ¼ºó¸´ÖÆ
µÚ¶þ²½£º×°ÖÃGitLab
ÏÖÔÚ£¬ÄúÒѾ׼±¸ºÃ×°ÖÃÁË¡£Ê¹ÓÃÒÔÏÂÏÂÁî×°ÖÃGitLab£º
sudo yum install gitlab-ce
µÇ¼ºó¸´ÖÆ
×°Öý«×îÏÈ£¬²¢ÔÚ¼¸·ÖÖÓÄÚÍê³É¡£
µÚÈý²½£ºÉèÖÃGitLab
ÏÖÔÚ£¬ÄúÐèÒªÉèÖÃGitLab£¬²¢ÎªÆ佨ÉèÖÎÀíÔ±ÕÊ»§¡£·¿ªÉèÖÃÎļþ£º
sudo nano /etc/gitlab/gitlab.rb
µÇ¼ºó¸´ÖÆ
ÕÒµ½ÒÔÏ´úÂëÐУ¬²¢½«Æä×÷·Ï×¢ÊÍ£º
## Uncomment and customize if you can't use the default because of a conflict # gitlab_workhorse['listen_network'] = "tcp" # gitlab_workhorse['listen_addr'] = "localhost:8181"
µÇ¼ºó¸´ÖÆ
ÔÚ¡°Ö§³ÖRedis¡±²¿·ÖÆôÓÃRedis£º
redis['enable'] = true redis['host'] = "127.0.0.1" redis['port'] = 6379 redis['password'] = nil redis['database'] = 0
µÇ¼ºó¸´ÖÆ
ÏÖÔÚ£¬ÖØÐÂÉèÖÃGitLab£º
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
½¨ÉèÖÎÀíÔ±ÕÊ»§£¬Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ
sudo gitlab-rake gitlab:setup
µÇ¼ºó¸´ÖÆ
ƾ֤ÌáÐÑÊäÈëÖÎÀíÔ±ÕÊ»§µÄÏêϸÐÅÏ¢¡£Íê³Éºó£¬ÄúÓ¦¸ÃÏÖÔÚ¿ÉÒÔ»á¼ûGitLabÁË¡£
µÚËIJ½£º»á¼ûGitLab
ÈôÊÇÄúµÄϵͳÉÏÓзÀ»ðǽ£¬Ç뽫¶Ë¿ÚºÅ80·¿ª¡£ ÊäÈëЧÀÍÆ÷µÄIPµØµã»òÓòÃû£¬È»ºóÔÚWebä¯ÀÀÆ÷ÖÐÆô¶¯GitLab£º
http://your_server_IP_or_domain
µÇ¼ºó¸´ÖÆ
ÔÚ·¿ªµÄÒ³ÃæÉÏ£¬ÊäÈëÄú¸Õ¸Õ×°ÖõÄÖÎÀíÔ±ÕÊ»§µÄÏêϸÐÅÏ¢£¬È»ºóµ¥»÷¡°µÇ¼¡±¡£ÏÖÔÚ£¬Äú¿ÉÒÔ×îÏÈÔÚGitLabÉÏÖÎÀíÄúµÄGit´æ´¢¿âÁË¡£
×ܽá
ÏÖÔÚ£¬ÄúÒѾÀÖ³ÉÔÚCentOS 7ÉÏ×°Öò¢ÉèÖÃÁËGitLab¡£ÄúÔÚGitLabÉÏ¿ÉÒÔ½¨ÉèеĴ洢¿â£¬Í¬²½´úÂ룬е÷ÍŶӳÉÔ±Ö®¼äµÄÊÂÇ飬¸ú×ÙÎÊÌâµÈµÈ¡£Ð»Ð»ÄúÔĶÁ±¾ÎÄ¡£
ÒÔÉϾÍÊÇÁÄÁÄcentos7ÉÏgitlabµÄ×°ÖÃÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡