Yuav ua li cas rau nruab Gitlab ntawm peb lub server nrog Ubuntu

Gitlab logo

Ob peb lim tiam dhau los peb paub qhov kev yuav khoom GitHub sai sai los ntawm MicrosoftCov. Ib qho kev sib cav uas ntau tus tiv thaiv zoo li yog tias lawv tau ua nws lossis thuam nws hnyav heev uas txhais tau tias nws yog qhov tshwm sim ntawm lub caij nplooj zeeg dawb Software. Tus kheej, Kuv tsis ntseeg lossis tiv thaiv ob txoj haujlwm tab sis nws yog qhov tseeb tias cov xov xwm no tau ua rau ntau tus software tsim tawm Github kev pabcuam thiab nrhiav lwm txoj hauv kev dawb li Github ua ntej lawv yuav khoom los ntawm Microsoft.

Muaj ntau cov kev pabcuam uas tau txais kev nyiam, tab sis feem coob ntawm cov neeg siv khoom lag luam raug xaiv siv GitLab, yog lwm txoj kev xaiv pub dawb uas peb tuaj yeem nruab rau peb lub khoos phis tawm nrog Ubuntu lossis ntawm tus kheej ntiag tug uas siv Ubuntu los ua haujlwm.

GitLab yog dab tsi?

Tab sis ua ntej tshaj plaws, peb saib qhov twg yog qhov tseeb. Gitlab yog software software tswj uas siv Git thev naus laus zisCov. Tab sis tsis zoo li lwm yam kev pabcuam, nws koom nrog lwm cov haujlwm ntxiv rau Git xws li kev pabcuam wikis thiab kab ke taug qab. Txhua yam yog ntawv tso cai raws li GPL, tab sis nws yog qhov tseeb uas zoo li lwm hom software xws li WordPress lossis Github nws tus kheej, txhua tus tsis tuaj yeem siv Gitlab. Gitlab muaj lub vev xaib uas muab ob hom nyiaj rau nws cov neeg siv khoom: nyiaj pub dawb nrog rau cov chaw cia dawb thiab pej xeem thiab lwm qhov them nyiaj lossis tus nqi them nyiaj uas tso cai rau peb los tsim cov chaw ntiav thiab chaw muag khoom.

Qhov no txhais tau tias tag nrho peb cov ntaub ntawv sab nraud yog tswv rau ntawm tus neeg sab nraud uas peb tswj hwm peb tsis muaj, zoo li Github. Tab sis Gitlab muaj cov ntawv ntxiv hu ua Gitlab CE o Zej Zog Tsab Ntawv tias tso cai rau peb nruab thiab muaj Gitlab ib puag ncig ntawm peb lub server lossis computer nrog Ubuntu, txawm hais tias cov tswv yim tshaj plaws yog siv nws rau ntawm lub server nrog Ubuntu. Qhov software no muab peb cov txiaj ntsig ntawm Gitlab hwm tab sis tsis tas them dab tsi rau nws, txij li peb nruab txhua cov software ntawm peb lub server thiab tsis yog rau lwm tus neeg siv.

Gitlab, raws li nrog Github kev pabcuam, muaj cov kev pab cuam txaus nyiam xws li cloning chaw cia, txhim kho cov nplooj ntawv web zoo li qub nrog Jekyll software lossis kev tswj hwm version thiab cov cai uas yuav ua rau peb tau txais kev ceeb toom yog tias software lossis kev kho dua tshiab muaj qhov tsis raug lossis tsis.

Lub zog ntawm Gitlab zoo dua rau Github, yam tsawg kawg ntawm kev pabcuam, yog tias peb siv nws li peb cov server tus kheej software, lub hwj chim yuav nyob ntawm kho vajtse ntawm peb cov server. Qee yam uas yuav tsum tau muab rau hauv yog tias qhov peb tab tom yuav ua yog hloov Github software rau Gitlab software ntawm peb tus kheej ntiag tug.

Dab tsi peb xav tau los nruab GitLab ntawm lub Ubuntu server?

Yuav kom muaj Gitlab lossis Gitlab CE ntawm peb cov server, ua ntej peb yuav tsum nruab qhov dependencies lossis software uas xav tau rau cov software ua haujlwm ua haujlwm raugCov. Txhawm rau ua qhov no peb qhib lub davhlau ya nyob twg thiab sau cov hauv qab no:

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

Tejzaum nws lub pob xws li curl yuav twb nyob ntawm peb lub computer tab sis yog tias nws tsis yog, qhov no yog lub sijhawm zoo rau nruab.

GitLab kev teeb tsa

Gitlab CE sab nrauv chaw cia khoom

Tam sim no peb muaj tag nrho Gitlab dependencies, Peb yuav tsum nruab Gitlab CE software, uas yog pej xeem thiab peb tuaj yeem tau txais nws los ntawm kev rov ua dua sab nraud rau UbuntuCov. Txhawm rau ua qhov no peb qhib lub davhlau ya nyob twg thiab sau cov hauv qab no:

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

Muaj lwm txoj hauv kev uas siv nrog lwm tus sab nrauv tab sis nrog Apt-tau software twj. Txhawm rau ua qhov no, hloov chaw sau ntawv saum toj no hauv lub davhlau ya nyob twg, peb yuav tsum sau cov hauv qab no:

sudo EXTERNAL_URL="http://gitlabce.example.com" apt-get install gitlab-ce

Thiab nrog rau qhov no peb yuav muaj Gitlab CE software ntawm peb tus Ubuntu server. Tam sim no nws txog lub sijhawm los ua qee cov theem pib rau nws kom ua haujlwm tau zoo.

Gitlab CE teeb tsa

Thawj yam peb yuav tsum ua yog tso qee qhov chaw nres nkoj uas Gitlab siv thiab tias lawv yuav raug kaw thiab peb siv lub foob pob hluav taws. Qhov chaw nres nkoj uas peb yuav tsum qhib lossis qhov siv Gitlab yog qhov chaw nres nkoj 80 thiab 443.

Tam sim no, peb yuav tsum qhib Gitlab CE lub vev xaib thawj zaug, rau qhov no peb qhib lub vev xaib http://gitlabce.example.com hauv peb lub browser. Nplooj ntawv no yuav yog ntawm peb lub server tab sis, yog thawj zaug, peb yuav tsum hloov lo lus zais uas lub kaw lus muaj los ntawm lub neej ntawdCov. Thaum peb tau hloov tus password, peb yuav tsum tso npe lossis ID nkag mus nrog tus password tshiab thiab tus neeg siv "hauv paus"Cov. Nrog rau qhov no peb yuav muaj qhov ntiag tug kev teeb tsa ntiag tug ntawm Gitlab system ntawm peb tus Ubuntu server.

Yog tias peb lub server siv rau pej xeem siv, tiag peb yuav tau siv https raws tu qauv, lub web raws tu qauv uas siv cov ntawv pov thawj los ua kom lub web browsing muaj kev nyab xeeb dua. Peb tuaj yeem siv daim ntawv pov thawj twg tab sis Gitlab CE tsis hloov hloov qhov url ntawm qhov chaw cia khoom, kom muaj qhov no peb yuav tsum ua nws tus kheej, yog li peb hloov cov ntawv /etc/gitlab/gitlab.rb thiab hauv external_URL peb yuav tsum hloov chaw nyob qub rau qhov chaw nyob tshiabHauv qhov no nws yuav yog ntxiv cov ntawv "s", tab sis peb kuj tuaj yeem ua qhov url txawv thiab nce kev ruaj ntseg ntawm peb lub web server. Thaum peb khaws thiab kaw cov ntawv, peb yuav tsum sau cov ntawv hauv qab no rau hauv lub davhlau ya nyob twg kom pauv hloov tau txais:

sudo gitlab-ctl reconfigure

Qhov no yuav ua rau txhua qhov kev hloov pauv peb ua rau Gitlab software siv tau thiab yuav npaj rau cov neeg siv ntawm cov kab ke tswj hwm no. Tam sim no peb tuaj yeem siv software no yam tsis muaj teeb meem thiab tsis tau them nyiaj dab tsi kom muaj chaw cia khoom ntiag tug.

Gitlab lossis GitHub uas yog qhov zoo dua?

Code poob qis thaum nws tshwm sim hauv Gitlab

Txij ntawm no mus, muaj tseeb ntau ntawm koj yuav xav paub dab tsi software yog zoo dua los siv los yog tsim repositories ntawm peb software. Txawm hais tias txuas ntxiv nrog Github lossis seb puas yuav hloov mus rau Gitlab. Nkawd ob leeg siv Git thiab tuaj yeem hloov lossis yooj yim txav tsim software los ntawm ib qho chaw cia khoom mus rau lwm tusCov. Tab sis ntaub ntawv Kuv pom zoo txuas ntxiv nrog Github yog tias peb muaj nws ntawm peb lub server thiab yog tias peb tsis muaj dab tsi nruab, ces yog nruab GitlabCov. Qhov laj thawj rau qhov no yog vim kuv xav tias cov khoom lag luam zoo tshaj txhua qhov, thiab hloov ib qho software rau lwm qhov uas nws qhov zoo yuav luag tsis muaj nyiaj them rov qab.

Qhov zoo hais txog nws yog tias ob qho tag nrho cov cuab yeej yog Software Dawb thiab yog tias peb paub tsim lub tshuab virtual, peb tuaj yeem sim ob qho khoos kas thiab pom qhov twg ua rau peb tsis tas hloov lossis ua rau peb tus Ubuntu server.


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

5 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm.

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Edgar Albalate Ibanez said

    Kuv siv lwm txoj hauv kev hu ua gitea. https://github.com/go-gitea/Cov. Koj tuaj yeem sim nws hauv https://gitea.io

  2.   wilburnmosum ua said
  3.   Nyuam qhuav said

    Peb ua si ໄດ ໂນ ເສົາ ua si https://dinosaurgames.org.uk/ muab kev lom zem nrog cov tsiaj los ntawm ntau lab xyoo dhau los! Koj tuaj yeem tswj hwm neanderthals thiab txhua hom dinos; Tyrannosaurus Rex, Velociraptors, ntxiv rau Brachiosaurus puav leej muaj! Peb cov dinosaurs qib muaj ntau hom gameplay, los ntawm kev sib ntaus sib tua dhau los mus rau hauv online poker. Koj tuaj yeem ua si txhua hom kev khuam siab uas koj xav tau, muab kev lom zem rau koj lub sijhawm prehistoric rau hrs kawg! Ntaus li cavemen tiv tiag tsiaj, laij lub ntiaj teb, thiab tseem noj koj cov yeeb ncuab!

  4.   LelandHoR said

    Lub ntiaj teb yog thawj heev browser-based First Person Egger! Nrhiav kev tawg! Xaiv koj cov chav kawm thiab kuj xaus koj cov yeeb ncuab nrog eggstreme bias hauv no 3d multplayer shooter. Gear cov cuab yeej ua kom tuag taus zoo li Scramble Shotgun zoo li EggK47 thaum koj lo koj txoj kev yeej. Ua tsaug rau Shellshockers Txhob thaiv cov qhov https://shellshockersunblocked.space/

  5.   wilburnmosum ua said