尊龙凯时人生就是搏

ÔõÑùÔÚCentOSϵͳÉÏͨ¹ýyum×°ÖÃGitLab

gitlabÊÇÒ»¸ö¿ªÔ´µÄweb git¿ÍÕ»ÖÎÀí¹¤¾ß£¬Ëü²»µ«ÌṩÁË»ùÓÚgitµÄ°æ±¾¿ØÖÆ£¬»¹°üÀ¨ÁË´úÂëÆÀÉó¡¢Ò»Á¬¼¯³ÉÓë°²ÅÅ¡¢wiki¡¢ÎÊÌâ¸ú×ÙµÈÖڶ๦Ч¡£

±¾ÎĽ«ÏÈÈÝÔõÑùÔÚCentOSϵͳÉÏͨ¹ýyum×°ÖÃGitLab£¬²¢¼òÆÓÉèÖá£

Ò»¡¢×°ÖÃÒÀÀµ

ÔÚ×°ÖÃGitLab֮ǰ£¬ÐèҪװÖÃÒÔÏÂÒÀÀµ°ü£º

sudo yum install -y curl policycoreutils openssh-server openssh-clients

sudo systemctl enable sshd

sudo systemctl start sshd

sudo firewall-cmd –permanent –add-service=http

sudo systemctl reload firewalld

¶þ¡¢×°ÖÃGitLab

1.ÏÂÔØGitLabÔ´

sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

2.×°ÖÃGitLab

sudo yum install -y gitlab-ce

Èý¡¢ÉèÖÃGitLab

1.ÐÞ¸ÄGitLabÉèÖÃÎļþ

sudo vi /etc/gitlab/gitlab.rb

2.ÐÞ¸ÄGitLabÓòÃû

external_url ‘http://ÄãµÄÓòÃû»òIP’

3.ÉúÑÄÐÞ¸Ä

:wq

4.ÖØÐÂÉèÖÃGitLab

sudo gitlab-ctl reconfigure

5.»á¼ûGitLab

ÔÚä¯ÀÀÆ÷µØµãÀ¸ÖÐÊäÈëGitLabµÄÓòÃû»òIPµØµã£¬¼´¿É½øÈëGitLabÒ³Ãæ¡£

ËÄ¡¢Ê¹ÓÃGitLab

1.½¨ÉèÓû§

ÔÚGitLabÒ³Ãæµã»÷ÓÒÉϽǵġ°Sign In / Register¡±°´Å¥£¬½øÈë×¢ÊéÒ³Ã棬ÊäÈëÓû§Ãû¡¢ÃÜÂëºÍÓÊÏ䣬µã»÷¡°Register¡±°´Å¥¼´¿ÉÍê³ÉÓû§×¢²á¡£

2.½¨Éè¿ÍÕ»

µÇ¼GitLabºó£¬ÔÚÒ³ÃæÉÏ·½µ¼º½À¸ÖУ¬µã»÷¡°New Project¡±°´Å¥£¬Ìîд¿ÍÕ»Ãû³ÆºÍÐÎò£¬Ñ¡Ôñ¿É¼ûÐÔ£¬µã»÷¡°Create Project¡±°´Å¥¼´¿É½¨Éè¿ÍÕ»¡£

3.¿Ë¡¿ÍÕ»

ÔÚGitLab¿ÍÕ»Ò³ÃæÖУ¬µã»÷¿ÍÕ»ÓÒÉϽǵġ°Clone¡±°´Å¥£¬¸´ÖÆ¿ÍÕ»µÄSSH»òHTTPSµØµã£¬Ê¹ÓÃgit cloneÏÂÁ¿ÍÕ»¿Ë¡µ½ÍâµØ¡£

×ÛÉÏËùÊö£¬Í¨¹ýyum×°ÖÃGitLabÊÇÒ»¼þÏà¶Ô¼òÆÓµÄÊÂÇé¡£ÈôÊÇÄúÏëÉîÈëÏàʶGitLabµÄ¸ü¶à¹¦Ð§£¬¿ÉÒÔÔÚ¹ÙÍøÉó²é¸ü¶àÎĵµ¡£

ÒÔÉϾÍÊÇÔõÑùÔÚCentOSϵͳÉÏͨ¹ýyum×°ÖÃGitLabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

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