尊龙凯时人生就是搏

dzÎöGitLabµÄ×°Öð취¼°×¢ÖØÊÂÏî

gitlabÊÇÒ»¸ö»ùÓÚwebµÄgit´æ´¢¿âÖÎÀí¹¤¾ß£¬¿ÉÒÔÓÃÀ´ÖÎÀíÍŶӵĴúÂë¡¢ÎĵµºÍ½ø¶È¡£×°ÖÃgitlab¿ÉÒÔʹÍŶӳÉÔ±¿ÉÒÔÔÚͳһƽ̨ÉÏЭ×÷¿ª·¢ºÍÖÎÀí´úÂ룬´Ó¶øÌá¸ß¿ª·¢Ð§ÂʺÍÍŶÓÏàͬЧ¹û¡£±¾ÎĽ«Îª¸÷ÈËÏÈÈÝgitlabµÄ×°Öð취¼°×¢ÖØÊÂÏî¡£

Ò»¡¢×°ÖÃÇ°µÄ×¼±¸ÊÂÇé

ÔÚ×îÏÈ×°ÖÃGitLab֮ǰ£¬ÇëÈ·±£ÄúÒѾ­×öºÃÁËÒÔÏÂ×¼±¸ÊÂÇ飺

1.Ñ¡ÔñºÏÊʵÄЧÀÍÆ÷£ºÒª×°ÖÃGitLab£¬ÄúÐèҪһ̨ÎïÀíЧÀÍÆ÷»òÐéÄâ»ú£¬ÒÔÔËÐÐGitLabµÄÈí¼þ°üºÍÏà¹ØЧÀÍ¡£½¨ÒéÑ¡Ôñһ̨ÐÔÄܽϺá¢ÄÚ´æ´óÓÚ»ò¼´ÊÇ2GBµÄЧÀÍÆ÷£¬ÒÔ°ü¹ÜʹÓÃGitLabʱµÄÎȹ̺ÍÁ÷ͨ¡£

2.×°ÖÃÐëÒªµÄÈí¼þ£ºÔÚЧÀÍÆ÷ÉÏ×°ÖÃGitLabÐèҪһЩÐëÒªµÄÈí¼þ°ü£¬È磺curl¡¢openssh-server¡¢ca-certificatesµÈ£¬ÇëÔÚ×°ÖÃGitLab֮ǰÏÈ×°ÖÃÕâЩÈí¼þ°ü¡£

3.×¼±¸Êý¾Ý¿â£ºGitLabÐèÒªÒ»¸öÊý¾Ý¿âÀ´´æ´¢ËùÓÐÐÅÏ¢¡£Äú¿ÉÒÔÑ¡Ôñ×°ÖÃMySQL»òPostgreSQL£¬µ«½¨Òé×°ÖÃPostgreSQL¡£ÔÚ×°ÖÃGitLab֮ǰ£¬ÇëÏȽ¨ÉèÒ»¸öÊý¾Ý¿â¡¢Óû§ºÍÃÜÂ룬ÒÔ¹©GitLabʹÓá£

¶þ¡¢ÏÂÔز¢×°ÖÃGitLab

1.ÏÂÔØGitLab£ºÔÚ×îÏÈ×°ÖÃGitLab֮ǰ£¬ÇëÏÈ´ÓGitLab¹Ù·½ÍøÕ¾£¨https://about.gitlab.com/install£©ÏÂÔØ×îа汾µÄGitLabÈí¼þ°ü¡£

2.×°ÖÃGitLab£ºµ±ÏÂÔØGitLabÈí¼þ°üºó£¬Çëƾ֤ÒÔÏ°취¾ÙÐÐ×°Öãº

£¨1£©×°ÖÃÒÀÀµÏÔÚ×îÏÈ×°ÖÃGitLabÈí¼þ°ü֮ǰ£¬ÇëÏÈ×°ÖÃÐëÒªµÄÒÀÀµÏî¡ £¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁî×°ÖÃÒÀÀµÏ

  sudo apt-get update

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

£¨2£©ÏÂÔز¢×°ÖÃGitLabÈí¼þ°ü£ºÖ´ÐÐÒÔÏÂÏÂÁÏÂÔز¢×°ÖÃGitLabÈí¼þ°ü£º

  cd /tmp

  curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh

  sudo bash /tmp/script.deb.sh

  sudo EXTERNAL_URL=”http://gitlab.example.com” apt-get install gitlab-ee

×¢£º½«http://gitlab.example.comÌ滻ΪÄúµÄÖ÷»úÃû»òIPµØµã¡£

£¨3£©·­¿ª·À»ðǽ¶Ë¿Ú£ºÒª»á¼ûGitLab Web½çÃ棬ÄúÐèÒª·­¿ªGitLabËùÐèµÄ¶Ë¿Ú¡£Ä¬ÈÏÇéÐÎÏ£¬GitLabÐèÒª·­¿ªHTTP£¨80¶Ë¿Ú£©ºÍHTTPS£¨443¶Ë¿Ú£©¶Ë¿Ú¡ £¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî´òÆðÔ´¿Ú£º

sudo ufw allow http

sudo ufw allow https

£¨4£©ÖØÆôGitLab£º×°ÖÃÍê³Éºó£¬Ê¹ÓÃÒÔÏÂÏÂÁîÖØÆôGitLab£º

  sudo gitlab-ctl reconfigure

Èý¡¢ÉèÖÃGitLab

ÔÚ×°ÖÃGitLabºó£¬ÄúÐèÒª¾ÙÐÐЩ¼òÆÓµÄÉèÖÃÀ´ÉèÖÃGitLab¡£ÒÔÏÂÊÇÍê³ÉһЩ»ù±¾ÉèÖõİ취¡£

1.ÉèÖÃSMTPÓʼþЧÀÍ£ºGitLabÐèÒªSMTPÓʼþЧÀÍÀ´·¢ËÍÓʼþ¸øÓû§¡£ÄúÐèÒªÉèÖÃSMTPÓʼþЧÀͲŻªÏòÓû§·¢ËÍÓʼþ¡ £¿ÉÒÔƾ֤GitLabÎĵµ£¨https://docs.gitlab.com/omnibus/settings/smtp.html£©ÉèÖÃSMTPÓʼþЧÀÍ¡£

2.ÐÞ¸ÄRootÃÜÂ룺ÔÚ×°ÖÃGitLabºó£¬Ä¬ÈÏÇéÐÎÏ£¬Äú¿ÉÒÔʹÓÃÓû§Ãû¡°root¡±ºÍ³õʼÃÜÂë¡°5iveL!fe¡±£¬µ«½¨ÒéÄúÁ¬Ã¦¸ü¸ÄÃÜÂë¡ £¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî¸ü¸ÄRootÃÜÂ룺

sudo gitlab-rails console

user = User.where(id: 1).first

user.password = ‘new_password’

user.password_confirmation = ‘new_password’

user.save!

3.½¨ÉèÓû§£ºGitLabÖ§³Ö¶à¸öÓû§£¬Äú¿ÉÒÔ½¨ÉèÐí¶àÓû§ÒÔ¼ÓÈëºÍÖÎÀí´úÂë¡ £¿ÉÒÔƾ֤GitLabÎĵµ£¨https://docs.gitlab.com/ee/user/project/members/index.html£©½¨ÉèºÍÌí¼ÓÓû§¡£

ËÄ¡¢×ܽá

±¾ÎÄÏÈÈÝÁËÔõÑù×°ÖÃGitLabÒÔ¼°ÔÚ×°ÖúóÔõÑù¾ÙÐÐGitLabµÄÉèÖá£ÔÚ×îÏÈ×°ÖÃGitLab֮ǰ£¬ÇëÈ·±£ÄúÒѾ­×öºÃÁË×¼±¸ÊÂÇ飬Èç×°ÖÃÐëÒªµÄÈí¼þ¡¢½¨ÉèÊý¾Ý¿â¡¢×¼±¸SMTPÓʼþЧÀ͵È¡£Í¨¹ý±¾ÎÄÌṩµÄ°ì·¨£¬Äú¿ÉÒÔÀÖ³É×°ÖúÍÉèÖÃ×îа汾µÄGitLab£¬²¢ÓëÄúµÄÍŶÓÒ»ÆðЭ×÷¿ª·¢ºÍÖÎÀí´úÂë¡£

ÒÔÉϾÍÊÇdzÎöGitLabµÄ×°Öð취¼°×¢ÖØÊÂÏîµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

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