×ðÁú¿­Ê±¹ÙÍøµÇ¼

ÔõÑùÔÚLinuxЧÀÍÆ÷ÉÏ°²ÅÅGitLab

×÷Ϊһ¸öÏÖ´ú»¯µÄ´úÂëÖÎÀí¹¤¾ß £¬gitlabµÄʹÓÃÔ½À´Ô½Æձ顣ÔÚÍŶÓЭ×÷ÖÐ £¬ÓÃgitlabÀ´ÖÎÀí´úÂëÊÇÒ»¸öÀû±ã¶øÓÖ¸ßЧµÄÑ¡Ôñ¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚlinuxЧÀÍÆ÷ÉÏ°²ÅÅgitlab¡£

È·ÈÏÇéÐÎ

Ê×ÏÈ £¬ÐèҪȷÈÏÄãµÄЧÀÍÆ÷ϵͳÊÇ64λµÄ £¬²¢ÇÒÖÁÉÙÓÐ2GBµÄÄÚ´æºÍ2¸öCPU¡£ÀíÏëÇéÐÎÏ £¬Ð§ÀÍÆ÷»¹Ó¦¸ÃÓÐ80GBµÄ´ÅÅ̿ռ䡣

½ÓÏÂÀ´ £¬Æ¾Ö¤Ð§ÀÍÆ÷µÄ²Ù×÷ϵͳ £¬Ñ¡ÔñÊʺϵÄ×°Ö÷½·¨¡£ÎÒÃÇ´Ë´¦ÒÔUbuntuΪÀý £¬ÏÈÈÝÔõÑù×°ÖÃGitLab¡£

×°ÖÃÐëÒªÈí¼þ

ÔÚUbuntuϵͳÖÐ £¬ÐèҪװÖÃÐëÒªµÄÈí¼þ°ü¡£ÔÚÖÕ¶ËÊäÈëÒÔÏÂÏÂÁîÀ´×°Öãº

sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates postfix

µÇ¼ºó¸´ÖÆ

PostfixÊÇÒ»ÖÖÓʼþЧÀÍÆ÷ £¬Ëü¿ÉÒÔÓÃÀ´´¦ÀíGitLabµÄÓʼþ֪ͨ¡£

Ìí¼ÓGitLabÈí¼þ¿â

ΪÁË×°ÖÃGitLab £¬ÐèÒªÌí¼ÓGitLabµÄÈí¼þ¿â¡£ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash

µÇ¼ºó¸´ÖÆ

×°ÖÃGitLab

ÔÚÌí¼ÓÈí¼þ¿âºó £¬¿ÉÒÔ×îÏÈ×°ÖÃGitLabÁË¡£ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ

sudo apt-get install gitlab-ee

µÇ¼ºó¸´ÖÆ

×°ÖóÌÐò½«»á×Ô¶¯Æô¶¯¡£Æ¾Ö¤³ÌÐòÌáÐѾÙÐÐÉèÖà £¬ËäÈ» £¬Äã¿ÉÒÔƾ֤×Ô¼ºµÄÐèÇóÐÞ¸ÄĬÈÏÉèÖá£Õâ¸öÀú³Ì¿ÉÄÜÐèÒªÒ»¶Îʱ¼ä £¬×°ÖÃÍê³Éºó £¬ÄãµÄGitLabÒѾ­ÉèÖÃÍê±Ï²¢¿ÉÒÔÔËÐÐÁË¡£

Æô¶¯GitLab

ÔÚ×°ÖÃÍê³Éºó £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´Æô¶¯GitLab:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl start

µÇ¼ºó¸´ÖÆ

»á¼ûGitLab

ÏÖÔÚ £¬¿ÉÒÔÔÚä¯ÀÀÆ÷Öлá¼ûGitLabÁË¡£ÊäÈëЧÀÍÆ÷µÄIPµØµã»òÓòÃû £¬Ö®ºóÔÚÒ³ÃæÖÐÊäÈëÓû§Ãû(admin)ºÍÃÜÂë(gitlab123)¼´¿ÉÀֳɵǼ¡£

ÉèÖÃGitLab

×°ÖÃÀֳɺó £¬ÐèÒªÉèÖÃGitLabÒÔÖª×ãÄãµÄ¸öÐÔ»¯ÐèÇó¡£Ò»Ð©Ö÷ÒªµÄÉèÖÃÈçÏ£º

ÐÞ¸ÄÖÎÀíÔ±ÃÜÂë

ÔڵǼ֮ºó £¬¿ÉÒÔÔÚСÎÒ˽ÈËÕË»§Ò³ÃæÖÐÐÞ¸ÄÃÜÂë¡£

½¨ÉèеÄÓû§²¢ÊÚȨ

ÔÚ×ó²àÃæ°åÖÐ £¬µã»÷¡°Users¡±À´Éó²éÓû§Áбí¡£µã»÷¡°¼ÓºÅ¡±¿ÉÒÔÌí¼ÓÐÂÓû§¡£ÖÎÀíÔ±¿ÉÒÔͨ¹ýµã»÷Óû§Á´½ÓÀ´Éó²éºÍÐÞ¸ÄÓû§È¨ÏÞ¡£

ÉèÖÃSMTPЧÀÍ

GitLabÐèÒªSMTPЧÀÍ¿âÀ´·¢ËÍÓʼþ¡£Äã¿ÉÒÔʹÓÃÍⲿÓʼþЧÀÍ £¬Ò²¿ÉÒÔÍâµØ×°ÖÃÓʼþЧÀÍÆ÷¡£ÔÚÔ±¹¤ÉèÖÃÖÐÑ¡ÔñÓʼþ֪ͨ £¬È»ºóÊäÈëSMTPЧÀÍÆ÷Ïà¹ØÐÅÏ¢¡£

ʹÓÃ×ÔÊðÃûSSLÖ¤Êé

ÔÚä¯ÀÀÆ÷Öлá¼ûÐÅÍеÄHTTPSÍøվʱ £¬ÐèҪʹÓÃSSLÖ¤Êé¡£ GitLabÔÚĬÈÏÇéÐÎÏÂʹÓÃ×ÔÊðÃûÖ¤Êé £¬ÓÃÓÚ½¨ÉèHTTPSÅþÁ¬¡£Äã¿ÉÒÔʹÓÃ×ÔÐÐÊðÃûµÄÖ¤Êé £¬»òÕß´ÓµÚÈý·½É̼ҹºÖÃÖ¤Êé¡£

ÉèÖÃLDAP

ÈôÊÇÄãʹÓÃLDAP×÷ΪÓû§Éí·ÝÑé֤ϵͳ £¬¿ÉÒÔÔÚGitLabÖоÙÐÐÉèÖá£ÔÚ×ó²àÃæ°åÖÐ £¬µã»÷¡°LDAP¡±Ñ¡Ïî £¬È»ºóÊäÈëLDAPЧÀÍÆ÷µÄÏà¹ØÐÅÏ¢¼´¿É¡£

×ܽá

µ½´ËΪֹ £¬ÄãÒѾ­Íê³ÉÁËÒ»¸ö»ù±¾µÄGitLabЧÀÍÆ÷µÄ°²ÅÅ¡£½èÖúGitLabÇ¿Ê¢µÄÍŶÓЭ×÷ºÍ´úÂëÖÎÀí¹¦Ð§ £¬ÄãµÄÍŶӿÉÒÔÔ½·¢¸ßЧµØ¾ÙÐпª·¢ÊÂÇé¡£ËäÈ» £¬´Ë´¦Ö»ÊǼòÆÓÏÈÈÝÁËGitLabµÄ×°ÖÃÀú³Ì £¬ÈôÊÇÄãÏëʹÓÃGitLab¸ü¶àµÄ¹¦Ð§ £¬¿ÉÒÔÔÚ¹ÙÍøÉÏÉó²é¸ü¶àÏêϸµÄÎĵµºÍ½Ì³Ì¡£

ÒÔÉϾÍÊÇÔõÑùÔÚLinuxЧÀÍÆ÷ÉÏ°²ÅÅGitLabµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ