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

gitlab×°ÖÃÉèÖÃÒªÇóÓÐÄÄЩ

½üÄêÀ´ £¬ÔÚÈí¼þ¿ª·¢ÁìÓò £¬git×÷Ϊ°æ±¾ÖÎÀí¹¤¾ßÒѾ­±»ÆÕ±éÓ¦Ó᣶øgitlabÔòÊÇÒ»¸ö»ùÓÚgitµÄ´úÂëÍйÜƽ̨ £¬ÌṩÁË´úÂë¿ÍÕ»¡¢issue¸ú×Ù¡¢ci/cdµÈ¹¦Ð§ £¬±»Ô½À´Ô½¶àµÄÆóÒµºÍÍŶÓËùʹÓᣱ¾ÎĽ«ÏÈÈÝgitlab×°ÖÃÉèÖõÄÒªÇó £¬×ÊÖú¶ÁÕ߸üºÃµØ´î½¨×Ô¼ºµÄgitlabƽ̨¡£

Ò»¡¢Ó²¼þÒªÇó

1¡¢CPU£º½¨ÒéʹÓÃË«ºË»òÒÔÉϵÄCPU¡£

2¡¢Äڴ棺½¨ÒéʹÓÃ4GB»òÒÔÉÏÄÚ´æ¡£

3¡¢Ó²ÅÌ£º½¨ÒéʹÓÃÖÁÉÙ50GBµÄÓ²ÅÌ¿Õ¼ä £¬ÈôÊÇÐèҪʹÓÃgit-lfs £¬Ôò½¨ÒéʹÓÃ100GB»òÒÔÉϵÄÓ²Å̿ռ䡣

¶þ¡¢Èí¼þÒªÇó

1¡¢²Ù×÷ϵͳ£º½¨ÒéʹÓÃLinux²Ù×÷ϵͳ £¬ÍƼöʹÓÃUbuntu»òCentOS²Ù×÷ϵͳ¡£

2¡¢ÒÀÀµÏ

a£©curl¡¢openssh-server¡¢ca-certificatesÈí¼þ°ü¡£

b£©PostgreSQL»òMySQLÊý¾Ý¿â¡£½¨ÒéʹÓÃPostgreSQLÊý¾Ý¿â¡£

c£©RedisЧÀÍ¡£¸ÃЧÀÍÓÃÓÚ´¦ÀígitlabµÄºǫ́ʹÃü¡£

d£©nginx»òapacheЧÀÍ¡£gitlabʹÓÃÆäÖеÄÒ»¸öЧÀÍ×÷ΪwebЧÀÍÆ÷ £¬ÍƼöʹÓÃnginx¡£

3¡¢Gitlab£ºÍ¨¹ý¹Ù·½ÍøÕ¾ÏÂÔØÏìÓ¦°æ±¾µÄgitlab×°Öðü¡£Ò²¿ÉÒÔͨ¹ýÔ´ÂëÀ´×°ÖÃgitlab¡£

Èý¡¢ÍøÂçÒªÇó

1¡¢¿ª·Å¶Ë¿Ú£º

a£©TCP 80ºÍTCP 443¶Ë¿ÚÓÃÓÚgitlabµÄweb»á¼û¡£

b£©TCP 22¶Ë¿ÚÓÃÓÚSSH»á¼û¡£ÈôÊÇʹÓÃHTTPЭÒé £¬ÔòÐèÒª¿ª·ÅTCP 81¶Ë¿Ú¡£

c£©SMTP¶Ë¿ÚÓÃÓÚÓʼþЧÀÍ¡£½¨Ò鿪·ÅTCP 25¶Ë¿Ú¡£

2¡¢·À»ðǽ£ºÈôÊÇЧÀÍÆ÷ʹÓÃÁË·À»ðǽ £¬ÔòÐèÒªÔÊÐíÒÔÉÏËùÊöµÄ¶Ë¿Ú±»»á¼û¡£

ËÄ¡¢×°Öð취

1¡¢×°ÖÃÒÀÀµÏî

ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁ

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

×¢£ºÈôÊÇÐèҪʹÓÃMySQLÊý¾Ý¿â £¬ÐèҪװÖÃÏìÓ¦µÄÈí¼þ°ü¡£PostgreSQLÊý¾Ý¿âÔò²»ÐèÒªÌØÁíÍâÈí¼þ°ü¡£

2¡¢×°ÖÃÊý¾Ý¿â

a£©PostgreSQLÊý¾Ý¿â£º

ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁ

sudo apt-get install postgresql postgresql-contrib

b£©MySQLÊý¾Ý¿â£º

ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁ

sudo apt-get install libmysqlclient-dev mysql-server mysql-client

×°ÖÃÍê³Éºó £¬ÐèÒª½¨ÉèÊý¾Ý¿âºÍÓû§¡£Ïêϸ²Ù×÷¿É²Î¿¼¹Ù·½Îĵµ¡£

3¡¢×°ÖÃRedisЧÀÍ

ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁ

sudo apt-get install redis-server

4¡¢×°ÖÃnginx

ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁ

sudo apt-get install nginx

×°ÖÃÍê³Éºó £¬ÐèÒªÐÞ¸ÄnginxµÄÉèÖÃÎļþ¡£Ïêϸ²Ù×÷¿É²Î¿¼¹Ù·½Îĵµ¡£

5¡¢ÏÂÔز¢×°ÖÃgitlab

a£©Í¨¹ý¹Ù·½ÍøÕ¾ÏÂÔØ

ÔÚ¹Ù·½ÍøÕ¾ÖÐ £¬Ñ¡ÔñÏìÓ¦°æ±¾µÄgitlab×°Öðü £¬²¢ÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁ

sudo dpkg -i gitlab_x.x.x-ce.x_amd64.deb

b£©Í¨¹ýÔ´Âë×°ÖÃ

ÏÂÔØÔ´Âë²¢±àÒë £¬Ïêϸ²Ù×÷¿É²Î¿¼¹Ù·½Îĵµ¡£

×°ÖÃÍê³Éºó £¬ÐèÒª¾ÙÐÐgitlabµÄÉèÖá£Ïêϸ²Ù×÷¿É²Î¿¼¹Ù·½Îĵµ¡£

Îå¡¢×ܽá

±¾ÎÄÏÈÈÝÁËgitlab×°ÖÃÉèÖõÄÒªÇó £¬²¢ÌṩÁËһЩװÖõÄÏÂÁîºÍ²Ù×÷¡£ÏÖʵװÖÃʱ £¬ÐèҪƾ֤×Ô¼ºµÄÇéÐξÙÐÐÏìÓ¦µÄÐ޸ĺ͵÷½â¡£ÈôÊÇÓöµ½ÎÊÌâ £¬¿ÉÒԲο¼¹Ù·½Îĵµ»òÏìÓ¦µÄÉçÇøÂÛ̳¡£Ï£Íû±¾ÎÄÄܹ»×ÊÖú¶ÁÕ߸üºÃµØ´î½¨×Ô¼ºµÄgitlabƽ̨¡£

ÒÔÉϾÍÊÇgitlab×°ÖÃÉèÖÃÒªÇóÓÐÄÄЩµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

QR code
ÍøÕ¾µØͼ