尊龙凯时人生就是博

ÔõÑùÐÞ¸ÄgitlabÊý¾Ý¿â´æ´¢Î»ÖÃ

gitlabÊÇÒ»¸öÊ¢ÐеĿªÔ´´úÂëÍйÜƽ̨£¬Ðí¶àÆóÒµºÍ¿ª·¢ÕßʹÓÃËüÀ´ÖÎÀíËûÃǵĴúÂë¡£gitlabÌṩÁË¿ÉÒÔ×Ô½ç˵µÄ´æ´¢Î»Öã¬ÕâÒâζ×ÅÄú¿ÉÒÔ½«gitlabÊý¾Ý¿âµÄ´æ´¢Î»ÖÃÖ¸¶¨ÎªÄúÑ¡ÔñµÄÈκÎλÖá£

ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ÏòÄúչʾÔõÑùÐÞ¸ÄGitLabÊý¾Ý¿â´æ´¢Î»Öá£

°ì·¨1£º×èÖ¹GitLab

ÔÚ¸ü¸ÄGitLabÊý¾Ý¿â´æ´¢Î»ÖÃ֮ǰ£¬ÄúÐèÒª×èÖ¹GitLabЧÀÍ£¬ÒÔ±ã¿ÉÒÔ¶ÔÆä¾ÙÐиü¸Ä¡£Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî×èÖ¹GitLabЧÀÍ£º

sudo gitlab-ctl stop

µÇ¼ºó¸´ÖÆ

°ì·¨2£º¸´ÖÆÏÖÓÐÊý¾Ý

ΪÁË°ü¹Ü²»É¥Ê§GitLabÊý¾Ý¿âÖеÄÈκÎÊý¾Ý£¬ÄúÐèÒª¸´ÖÆÏÖÓеÄGitLabÊý¾Ý¡£Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁÖÆÏÖÓÐÊý¾Ýµ½ÐÂλÖãº

sudo cp -R /var/opt/gitlab /new/gitlab/location

µÇ¼ºó¸´ÖÆ

Ç뽫/new/gitlab/locationÌ滻ΪÄúÏ£Íû½«GitLabÊý¾Ý¸´ÖƵ½µÄÐÂλÖá£

°ì·¨3£ºÐÞ¸ÄGitLabÉèÖÃ

Ò»µ©Äú¸´ÖÆÁËÏÖÓеÄÊý¾Ý£¬ÄúÐèÒª·­¿ªGitLabÉèÖÃÎļþ²¢½«Êý¾Ý¿â´æ´¢Î»Öøü¸ÄΪÐÂλÖá£Ä¬ÈÏÇéÐÎÏ£¬GitLabµÄÉèÖÃÎļþλÓÚ/etc/gitlab/gitlab.rb¡£

ÔÚ¸ÃÎļþÖÐÕÒµ½ÒÔÏÂÐУº

git_data_dir "/var/opt/gitlab/git-data"

µÇ¼ºó¸´ÖÆ

½«Â·¾¶¸ü¸ÄΪÐÂλÖãº

git_data_dir "/new/gitlab/location/git-data"

µÇ¼ºó¸´ÖÆ

Çë×¢ÖØ£¬×îºóµÄ¡°/git-data¡±ÊDZØÐèµÄ£¬ÓÉÓÚÔÚÐÂλÖÃÖÐÐèÒªÒ»¸öÓëÏÖÓÐλÖÃÏàͬµÄĿ¼½á¹¹¡£

°ì·¨4£º¸ü¸ÄÎļþȨÏÞ

¸ü¸ÄÎļþȨÏÞÊÇÈ·±£GitLab¿ÉÒÔ»á¼ûз¾¶µÄÐëÒª°ì·¨¡£Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî¸ü¸ÄÐÂλÖõÄËùÓÐÕߺÍȨÏÞ£º

sudo chown -R git:git /new/gitlab/location
sudo chmod -R 0700 /new/gitlab/location

µÇ¼ºó¸´ÖÆ

Çë×¢ÖØ£¬ÔÚÉÏÃæµÄÏÂÁîÖУ¬¡°git¡±ÊÇGitLabÀú³ÌµÄÔËÐÐÓû§¡£ÈôÊÇÄúÔÚÆô¶¯GitLabʱ½ç˵µÄ²î±ðÓû§£¬ÇëʹÓÃË­ÈËÖµ¡£

°ì·¨5£ºÖØÐÂÆô¶¯GitLab

Íê³ÉÉÏÊö°ì·¨ºó£¬Äú¿ÉÒÔÖØÐÂÆô¶¯GitLabЧÀÍÒÔʹ¸ü¸ÄÉúЧ¡£

sudo gitlab-ctl start

µÇ¼ºó¸´ÖÆ

Íê³Éºó£¬Äú¿ÉÒÔ²âÊÔGitLabÊÇ·ñÕýÔÚʹÓÃÐÂλÖ᣻á¼ûÄúµÄGitLabʵÀý²¢¾ÙÐвÙ×÷£¬ÈôÊÇ¿ÉÒÔÕý³£ÊÂÇ飬Ôò˵Ã÷ÄúÒÑÀÖ³ÉÐÞ¸ÄÁËGitLabÊý¾Ý¿â´æ´¢Î»Öá£

½áÂÛ

ÔÚ±¾ÎÄÖУ¬ÎÒÃÇÏòÄúչʾÁËÔõÑùÐÞ¸ÄGitLabÊý¾Ý¿âµÄ´æ´¢Î»Öá£Çë×¢ÖØ£¬¸ü¸ÄÊý¾Ý¿â´æ´¢Î»ÖÃÊÇÒ»ÏîÃô¸ÐʹÃü£¬ÇëÎñ±Ø±¸·ÝËùÓÐÊý¾Ý²¢×ñÕÕ׼ȷµÄ°ì·¨¡£

ÒÔÉϾÍÊÇÔõÑùÐÞ¸ÄgitlabÊý¾Ý¿â´æ´¢Î»ÖõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

13452372176

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

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

QR code
sitemap¡¢ÍøÕ¾µØͼ