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

windowsÔõôװÖÃgitlab

ÔÚÈí¼þ¿ª·¢ÖУ¬gitlab ÊÇÒ»¸öÂþÑÜʽ°æ±¾¿ØÖÆϵͳ (vcs)¡£ËüÌṩÁËÖÖÖÖ¹¤¾ßºÍ¹¦Ð§£¬ÒÔ±ãÍŶÓЭ×÷ºÍ´úÂëÖÎÀíÊÂÇéÔ½·¢¸ßЧ¡£

±¾ÎĽ«ÖصãÏÈÈÝ Windows ϵͳÉÏ GitLab µÄ×°ÖÃÀú³Ì¡£

Ò»¡¢ÏÂÔغÍ×°Öà Git

ÔÚÏÂÔغÍ×°Öà GitLab ֮ǰ£¬ÄúÐèÒªÏÈ×°Öà Git¡£GitLab ÐèÒªÔÚϵͳÉÏÔËÐÐ Git ²Å»ªÊ¹Óá£

»á¼û Git ¹ÙÍø£¨https://git-scm.com/downloads£©²¢×°Öà Git¡£

×°ÖÃÀú³ÌÖУ¬Äú¿ÉÒÔÑ¡ÔñÊÇ·ñÌí¼Ó Git Bash£¬ËüÌṩÁËÒ»¸öÏÂÁîÐнçÃ棬Àû±ãÄúÔÚ Windows ϵͳÉÏʹÓà Git¡£

×°ÖÃÍê³Éºó£¬ÔËÐÐ Git Bash ÑéÖ¤ Git ÊÇ·ñ×°ÖÃÀֳɡ£ÔÚ Git Bash ÖУ¬ÊäÈëÒÔÏÂÏÂÁ

$ git --version

µÇ¼ºó¸´ÖÆ

ÈôÊÇ Git °æ±¾ºÅ±»ÏÔʾ³öÀ´£¬ÄÇô Git ×°ÖÃÍê³É¡£

¶þ¡¢×°Öò¢ÉèÖà Ruby

GitLab ÊÇʹÓà Ruby ÓïÑÔ±àдµÄ£¬Òò´ËÔÚ×°Öà GitLab ֮ǰ£¬ÄúÐèÒªÏÈ×°Öà Ruby ¿ª·¢ÇéÐΡ£

»á¼û Ruby ¹ÙÍø£¨https://rubyinstaller.org/downloads/£©²¢ÏÂÔØ×îа汾µÄ Ruby¡£

×°Öà Ruby¡£ÔÚ×°ÖÃÀú³ÌÖУ¬Äú¿ÉÒÔÑ¡ÔñÊÇ·ñ½« Ruby Ìí¼Óµ½ Windows PATH ÇéÐαäÁ¿ÖУ¬ÒÔ±ãÔÚÏÂÁîÐÐÖÐÇáËɵØʹÓà Ruby¡£

×°ÖÃÍê³Éºó£¬ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁîÀ´ÑéÖ¤ Ruby ÊÇ·ñ×°ÖÃÀֳɣº

$ ruby -v

µÇ¼ºó¸´ÖÆ

ÀÖ³É×°Öúó£¬ÏÂÁîÐлáÏÔʾ Ruby °æ±¾ºÅ¡£

Èý¡¢×°Öò¢ÉèÖà PostgreSQL

GitLab ʹÓà PostgreSQL Êý¾Ý¿âÀ´´æ´¢Êý¾Ý¡£Òò´Ë£¬ÔÚ×°Öà GitLab ֮ǰ£¬ÄúÐèÒªÏÈ×°ÖúÍÉèÖà PostgreSQL¡£

»á¼û PostgreSQL ¹ÙÍø£¨https://www.postgresql.org/download/windows/£©²¢ÏÂÔØ Windows °æ±¾µÄ PostgreSQL¡£

×°Öà PostgreSQL¡£ÔÚ×°ÖÃÀú³ÌÖУ¬ÄúÐèÒªÉèÖÃÒ»¸ö PostgreSQL µÄÖÎÀíÔ±ÃÜÂ룬ÕâÊÇÄúÔÚʹÓà GitLab Ò³ÃæʱÐèÒªÊäÈëµÄ¡£

×°ÖÃÍê³Éºó£¬ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁîÀ´²âÊÔ PostgreSQL ÊÇ·ñ×°ÖÃÀֳɣº

$ psql -U postgres

µÇ¼ºó¸´ÖÆ

ÈôÊÇÏÂÁîÐб»ÐÞ¸ÄÒÔÏÔʾ PostgreSQL µÄ°æ±¾ºÅ£¬Ôò˵Ã÷ PostgreSQL ×°ÖÃÀֳɡ£

ÔÚ GitLab ×°ÖÃ֮ǰ£¬Äú»¹ÐèÒª½¨ÉèÒ»¸öÐ嵀 PostgreSQL Óû§ºÍÊý¾Ý¿â£º

$ createuser -P gitlab
$ createdb -O gitlab gitlabhq_production

µÇ¼ºó¸´ÖÆ

ËÄ¡¢×°ÖÃ GitLab

ÏÖÔÚ£¬Äú¿ÉÒÔÏÂÔز¢×°Öà GitLab ÁË¡£±¾ÎĽ«ÏÈÈÝͨ¹ý Omnibus ×°Öà GitLab µÄ·½·¨¡£

»á¼û GitLab ÆóÒµ°æµÄ¹ÙÍø£¨https://about.gitlab.com/install/£©²¢ÏÂÔØ Windows °æ±¾µÄ GitLab Omnibus¡£

·­¿ª GitLab ×°ÖóÌÐò²¢Æ¾Ö¤ÌáÐѾÙÐÐ×°Öá£ÔÚ×°ÖÃÀú³ÌÖУ¬Äú½«±»ÒªÇóÉèÖà GitLab µÄÖÎÀíÔ±ÕË»§ºÍÃÜÂ룬ÒÔ¼° PostgreSQL Êý¾Ý¿âÅþÁ¬µÄÓû§Ãû¡¢ÃÜÂëºÍÊý¾Ý¿âÃû³Æ¡£

×°ÖÃÍê³Éºó£¬Æô¶¯ GitLab ЧÀÍ¡£ÔÚ Git Bash ÖУ¬ÊäÈëÒÔÏÂÏÂÁ

$ gitlab-ctl start

µÇ¼ºó¸´ÖÆ

ÏÖÔÚ£¬Äú¿ÉÒÔÔÚä¯ÀÀÆ÷Öлá¼û GitLab ÁË¡£ÔڵصãÀ¸ÊäÈë http://localhost£º8080£¬Äú½«¿´µ½ GitLab µÄµÇ¼ҳÃæ¡£ÊäÈëÄúÔÚ×°ÖÃÀú³ÌÖн¨ÉèµÄÖÎÀíÔ±Õ˺źÍÃÜÂ룬¼´¿ÉµÇ¼²¢×îÏÈʹÓà GitLab¡£

×ܽá

ÔÚ Windows ϵͳÉÏ×°Öà GitLab ¿ÉÒÔ×ÊÖúÄú¸ü¸ßЧµØ¾ÙÐдúÂëÖÎÀíºÍÍŶÓЭ×÷¡£Í¨¹ý¼òÆÓµÄÏÂÔغÍ×°Öà Git¡¢Ruby ºÍ PostgreSQL ²¢×°Öà GitLab£¬Äú¿ÉÒÔ×îÏÈʹÓà GitLab ²¢ÏíÊÜÆ书ЧºÍ¹¤¾ß¡£

ÒÔÉϾÍÊÇwindowsÔõôװÖÃgitlabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

QR code
ÍøÕ¾µØͼ