ÔõÑùͨ¹ý¼¸°ì·¨´î½¨×Ô¼ºµÄGitLabЧÀÍÆ÷
ÔÚÏÖ´úÈí¼þ¿ª·¢ÁìÓòÖУ¬°æ±¾¿ØÖÆÊÇÒ»¸öÖÁ¹ØÖ÷ÒªµÄ»·½Ú¡£gitÊÇÏÖÔÚʹÓÃ×îÆÕ±éµÄÂþÑÜʽ°æ±¾¿ØÖÆϵͳ֮һ£¬¶øgitlabÔòÊÇÒ»ÖÖ»ùÓÚgitµÄÔÚÏß´úÂëÍйܺͰ汾¿ØÖÆÖÎÀí¹¤¾ß£¬ÎªÈí¼þ¿ª·¢ÍŶÓÌṩÁ˹¦Ð§Ç¿Ê¢¡¢Ò×ÓÚʹÓõÄÐͬ¿ª·¢Æ½Ì¨¡£
ÈôÊÇÄãÊÇÒ»ÃûMacµçÄÔÓû§£¬½ñÌìÎÒÃǾÍÀ´½â˵һÏÂÔõÑùͨ¹ý¼òÆÓ¼¸°ì·¨´î½¨×Ô¼ºµÄGitLabЧÀÍÆ÷¡£
µÚÒ»²½£º×°ÖÃHomebrew
HomebrewÊÇMac OS XϵÄÈí¼þ°ü¹ÜÀíÆ÷£¬Äܹ»Àû±ãµØ×°ÖÃһЩ³£¼ûµÄUnixÈí¼þ°ü¡£Í¨¹ýHomebrew£¬ÎÒÃÇ¿ÉÒÔÇáËɵØ×°ÖúÍÖÎÀíGitLabЧÀÍÆ÷ËùÒÀÀµµÄÈí¼þ¡£
ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ¼´¿É×°ÖÃHomebrew£º
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
µÇ¼ºó¸´ÖÆ
µÚ¶þ²½£º×°ÖÃÐëÒªµÄÒÀÀµÈí¼þ
GitLabЧÀÍÆ÷ÐèҪһЩÐëÒªµÄÈí¼þÖ§³Ö²Å»ªÕý³£ÔËÐС£ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ¼´¿É×°ÖÃÐëÒªµÄÒÀÀµÈí¼þ£º
brew install curl openssh-server openssl readline autoconf automake libtool pkg-config gdbm libyaml sqlite libxml2 libxslt libffi libiconv libgcrypt libgpg-error gettext icu4c cmake
µÇ¼ºó¸´ÖÆ
µÚÈý²½£º×°ÖÃGitLab
ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ¼´¿ÉʹÓÃHomebrew×°ÖÃGitLab£º
brew install gitlab
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬ÊäÈëÒÔÏÂÏÂÁîÆô¶¯GitLab£º
sudo gitlab-ctl start
µÇ¼ºó¸´ÖÆ
µÚËIJ½£º»á¼ûGitLab
·¿ªä¯ÀÀÆ÷£¬ÔڵصãÀ¸ÖÐÊäÈëhttp://localhost:8080£¬¼´¿É»á¼ûÍâµØ×°ÖõÄGitLabЧÀÍÆ÷£¬¶ÔÆä¾ÙÐÐÉèÖúÍÖÎÀí¡£
µÚÎå²½£ºÉèÖÃGitLab
Ê״λá¼ûGitLab£¬ÐèÒª¾ÙÐÐһЩ»ù±¾µÄÉèÖúÍÉèÖá£Æ¾Ö¤ÌáÐÑ£¬ÉèÖÃÖÎÀíÔ±ÕË»§ºÍÃÜÂ룬²¢ÉèÖÃSmtpЧÀ͵ȡ£
ÖÁ´Ë£¬Í¨¹ý¼òÆӵļ¸²½²Ù×÷£¬ÎÒÃÇÀֳɵØÔÚMacµçÄÔÉϴÁËGitLabЧÀÍÆ÷£¬²¢¿ÉÒÔ×ÔÓɵØʹÓÃÆäÌṩµÄ¹¦Ð§£¬¾ÙÐдúÂëÍйܺͰ汾¿ØÖÆÖÎÀí¡£
×ܽá
GitLabÊÇÒ»ÖÖ¹¦Ð§Ç¿Ê¢¡¢Ò×ÓÚʹÓõÄÔÚÏß´úÂëÍйܺͰ汾¿ØÖÆÖÎÀí¹¤¾ß£¬¿ÉÒÔÀû±ãµØÐͬ¿ª·¢ÍŶӾÙÐпª·¢¡£Í¨¹ýÉÏÊö¼òÆӵļ¸²½²Ù×÷£¬ÎÒÃÇÀֳɵØÔÚMacµçÄÔÉϴÁËGitLabЧÀÍÆ÷£¬²¢×îÏÈʹÓÃÆäÌṩµÄÇ¿Ê¢¹¦Ð§¡£Ï£ÍûÕâƪÎÄÕ¶ÔÄãÓÐËù×ÊÖú£¬ÈÃÄãµÄ¿ª·¢ÊÂÇéÔ½·¢¸ßЧ¡¢Ë³³©¡£
ÒÔÉϾÍÊÇÔõÑùͨ¹ý¼¸°ì·¨´î½¨×Ô¼ºµÄGitLabЧÀÍÆ÷µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡