ÔõÑùÔÚCentOS 6.5ϵͳÉÏ×°ÖÃGitLab
½üÄêÀ´£¬gitlab×÷ΪÆóÒµ¼¶´úÂëÍйÜƽ̨±¸ÊܽӴý¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚcentos 6.5ϵͳÉÏ×°ÖÃgitlab¡£
Ê×ÏÈ£¬ÎÒÃÇÐèÒª½«ÏµÍ³Éý¼¶ÖÁ×îа汾£º
sudo yum update
µÇ¼ºó¸´ÖÆ
½Ó×Å£¬ÎÒÃÇÐèҪװÖÃһЩÒÀÀµ°ü£º
sudo yum install curl policycoreutils openssh-server openssh-clients sudo yum install postfix sudo service postfix start sudo chkconfig postfix on
µÇ¼ºó¸´ÖÆ
×¢ÖØ£ºÕâÀïµÄpostfixÊÇÓʼþЧÀÍ£¬¿ÉÒÔ²»×°Öã¬ÈôÊÇÒѾװÖÃÆäËûÓʼþЧÀÍ¿ÉÒÔºöÂÔ´Ë°ì·¨¡£
ÏÂÒ»²½¾ÍÊÇ×°ÖÃGitLab¹Ù·½ÌṩµÄ¿ÍÕ»£º
sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
µÇ¼ºó¸´ÖÆ
×°ÖÃGitLab£º
sudo yum install gitlab-ee
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬ÎÒÃÇÐèÒªÉèÖÃÒ»ÏÂGitLab¡£Ê×ÏÈÒªÐÞ¸ÄÉèÖÃÎļþ£º
sudo vim /etc/gitlab/gitlab.rb
µÇ¼ºó¸´ÖÆ
½«”external_url”ÉèÖÃΪÄãµÄÓòÃû»òÕßIP£¬ÀýÈ磺
external_url 'http://gitlab.example.com'
µÇ¼ºó¸´ÖÆ
ÈôÊÇÐèÒªÐÞ¸ÄÊý¾Ý¿âÉèÖ㬿ÉÒÔÔÚ´ËÎļþÖоÙÐÐÐ޸ġ£ÐÞ¸ÄÍê³Éºó£¬ÖØÆôGitLab£º
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
ÈôÊÇûÒâÍ⣬GitLabÓ¦¸ÃÒѾÀÖ³ÉÔËÐÐÁË¡£¿ÉÒÔͨ¹ýä¯ÀÀÆ÷»á¼ûÄãµÄÓòÃû»òIPµØµãÉó²éGitLabÊÇ·ñÕý³£ÔËÐС£Ä¬ÈϵÄÖÎÀíÔ±ÕË»§ÊÇ¡°root¡±£¬ÃÜÂëÊÇ¡°5iveL!fe¡±¡£
ÈôÊÇÐèÒªÌí¼ÓеÄÓû§£¬¿ÉÒÔʹÓÃÖÎÀíÔ±ÕË»§µÇ¼ºóÔÚWebÒ³ÃæÖÐÌí¼Ó¡£ÈôÊÇÐèÒªÌí¼ÓеÄÏîÄ¿£¬¿ÉÒÔÔÚWebÒ³ÃæÖн¨ÉèеÄÏîÄ¿¡£
ÖÁ´Ë£¬ÎÒÃÇÒѾÀֳɵØÔÚCentOS 6.5ϵͳÉÏ×°Öò¢ÉèÖúÃÁËGitLab¡£GitLab×÷Ϊһ¸ö¼¯³ÉÁË°æ±¾¿ØÖƺÍÏîÄ¿ÖÎÀíµÄƽ̨£¬¿ÉÒÔÀû±ãµØ¾ÙÐдúÂëÖÎÀí¡¢ÏîÄ¿ÖÎÀíºÍÐ×÷¿ª·¢µÈ¹¦Ð§¡£Ï£Íû±¾ÎĶÔÄúÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇÔõÑùÔÚCentOS 6.5ϵͳÉÏ×°ÖÃGitLabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡