gitlabÉÏ°¶½øÈ¥ÔõôÕÕ¾ÉÐÞ¸ÄÃÜÂë
gitlabÊÇÒ»¿î¿ªÔ´µÄgit¿ÍÕ»ÖÎÀí¹¤¾ß£¬¿ÉÒÔ×ÊÖúÍŶӸüºÃµØÐ×÷¿ª·¢¡£ÔÚʹÓÃgitlabʱ£¬ÓÐʱ»á·ºÆð”µÇ¼ºó½öÏÔʾÐÞ¸ÄÃÜÂëÒ³Ã攵ÄÎÊÌ⣬ÕâÒâζ×ÅÄãÎÞ·¨½øÈëgitlabµÄÖ÷½çÃæ¡£ÄÇô£¬ÔõÑù½â¾öÕâ¸öÎÊÌâÄØ£¿
¼ì²éÓû§ÃûºÍÃÜÂë
Ê×ÏÈ£¬ÄãÐèҪȷ±£ÊäÈëµÄÓû§ÃûºÍÃÜÂëÊÇ׼ȷµÄ¡£ÔڵǼ½çÃ棬Äã¿ÉÒÔ¿´µ½¡°Forgot your password?¡±µÄÁ´½Ó£¬µã»÷¸ÃÁ´½Ó¿ÉÒÔ¾ÙÐÐÃÜÂëÖØÖá£ÈôÊÇÓû§ÃûºÍÃÜÂ붼׼ȷ£¬µ«ÈÔÈ»½öÏÔʾÐÞ¸ÄÃÜÂëÒ³Ã棬ÄÇô¾ÍÐèҪ˼Á¿ÆäËû¿ÉÄܵÄÎÊÌâÁË¡£
¼ì²éCookieÉèÖÃ
GitLabʹÓÃCookieÀ´¸ú×ÙÓû§µÄµÇ¼״̬¡£ÈôÊÇCookieÉèÖò»×¼È·£¬¾Í»áµ¼Ö½öÏÔʾÐÞ¸ÄÃÜÂëÒ³ÃæµÄÎÊÌâ¡£Äã¿ÉÒÔʵÑéɨ³ýä¯ÀÀÆ÷»º´æºÍCookie£¬È»ºóÖØеǼGitLab¡£ÈôÊÇÎÊÌâÈÔÈ»±£´æ£¬ÄÇô¾ÍÐèÒª¼ì²éCookieÉèÖÃÁË¡£
¼ì²éNginxºÍGitLabÉèÖÃ
ÈôÊÇÄãʹÓÃNginx×÷ΪGitLabµÄ·´ÏòÊðÀíЧÀÍÆ÷£¬ÄÇô¾ÍÐèÒª¼ì²éNginxµÄÉèÖÃÎļþÊÇ·ñ׼ȷ¡£ÌØÊâÊÇÔÚʹÓÃHTTPSÐÒéʱ£¬ÐèÈ·±£SSLÖ¤ÊéÉèÖÃ׼ȷ¡£ÈôÊÇNginxÉèÖÃ׼ȷ£¬ÄÇô¾ÍÐèÒª¼ì²éGitLabµÄÉèÖÃÁË¡£ÔÚGitLabµÄÉèÖÃÎļþÖУ¬ÄãÐèÒªÕÒµ½’external_url’Ñ¡Ï²¢È·±£ÉèÖÃÁË׼ȷµÄURLµØµã¡£
¼ì²éGitLabÊý¾Ý¿â
ÈôÊÇÒÔÉÏÒªÁ춼ÎÞ·¨½â¾öÎÊÌ⣬ÄÇôÎÊÌâ¿ÉÄÜ·ºÆðÔÚGitLabµÄÊý¾Ý±íÖС£Äã¿ÉÒÔʹÓÃGitLabµÄά»¤¾ç±¾¾ÙÐÐÊý¾Ý¿â¼ì²éºÍÐÞ¸´¡£ÔÚGitLabЧÀÍÆ÷ÉÏÖ´ÐÐÏÂÁÐÏÂÁî¼´¿É£º
sudo gitlab-ctl stop
sudo gitlab-rake gitlab:check SANITIZE=true
sudo gitlab-rake gitlab:db:check SANITIZE=true
sudo gitlab-cti start
ÕâЩÏÂÁ×èÖ¹GitLabЧÀÍ£¬Ö´ÐÐÊý¾Ý¿â¼ì²éºÍÐÞ¸´²Ù×÷£¬È»ºóÖØÆôGitLabЧÀÍ¡£ÈôÊÇÊý¾Ý¿âÖб£´æ¹ýʧ£¬ÄÇôËüÃǽ«±»ÐÞ¸´£¬´Ó¶ø½â¾ö½öÏÔʾÐÞ¸ÄÃÜÂëÒ³ÃæµÄÎÊÌâ¡£
×ܽá
ÒÔÉÏÊǽâ¾öGitLabµÇ¼ºó½öÏÔʾÐÞ¸ÄÃÜÂëÒ³ÃæµÄ¼¸ÖÖÒªÁì¡£ÈôÊÇÄãÓöµ½Õâ¸öÎÊÌ⣬¿ÉÒÔʵÑéÒÔÉϵÄÒªÁ죬ͨ³£Äܹ»½â¾öÎÊÌâ¡£ÈôÊÇÎÊÌâÈÔÈ»±£´æ£¬ÄÇô¾ÍÐèÒªÏòGitLab¹Ù·½ÉçÇø×·Çó×ÊÖú£¬ËûÃǽ«Ìṩ½øÒ»²½µÄÐÖúºÍÖ§³Ö¡£
ÒÔÉϾÍÊÇgitlabÉÏ°¶½øÈ¥ÔõôÕÕ¾ÉÐÞ¸ÄÃÜÂëµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡