Cov txheej txheem:

Tsim koj tus kheej huab: OwnCloud + DigitalOcean
Tsim koj tus kheej huab: OwnCloud + DigitalOcean
Anonim

Kev txhawj xeeb txog kev nyab xeeb ntawm koj cov ntaub ntawv thiab tsis xav nyeem los ntawm cov neeg txawv? Puas yog huab thev naus laus zis tseem hu ua? Tsim koj huab!

Tsim koj tus kheej huab: OwnCloud + DigitalOcean
Tsim koj tus kheej huab: OwnCloud + DigitalOcean

Ntau tus neeg nyeem ntawm peb lub xaib tau hais tias lawv tsis xav khaws lawv cov ntaub ntawv thiab cov ntaub ntawv hauv cov kev pabcuam huab. Tau kawg, tag nrho zaj dab neeg no nrog US NSA ua rau muaj kev ntseeg siab ntawm Dropbox, Google Drive thiab lwm cov kev pabcuam huab. Thiab ntau tus xav txog kev ruaj ntseg ntawm lawv cov ntaub ntawv. Txoj kev daws teeb meem no tuaj yeem yog kev tsim ntawm koj tus kheej huab. Yog raws nraim! Koj tuaj yeem tsim koj tus kheej huab kev pabcuam. Thiab tag nrho cov no yuav coj koj mus txog 30 feeb. Peb tau npaj cov lus qhia ntxaws ntxaws rau koj.

Yog li, los tsim peb cov huab, peb yuav siv DigitalOcean, qhov chaw peb yuav tsim peb tus kheej virtual server (VPS), nrog rau OwnCloud, ib daim ntawv thov tsim huab server. Ntxiv rau tus sau. Koj tuaj yeem yuav ib lub npe, piv txwv li, ntawm Whois.com. Nws yuav raug nqi koj li $ 10 / xyoo. Qhov pheej yig tshaj VPS ntawm DigitalOcean yog $ 5 / mo. Rau qhov nyiaj no, koj yuav tau txais 20 GB ntawm qhov chaw. Thiab nws yuav txaus rau cov kev xav tau ntawm tus neeg siv zoo tib yam. Cia peb pib.

Peb tsim VPS

Screenshot ntawm 2014-05-09 13:34:46
Screenshot ntawm 2014-05-09 13:34:46

Mus rau DigitalOcean lub vev xaib thiab sau npe rau ntawd. Tom qab tsim ib tug account, koj yuav tsum tsim ib tug droplet. Qhov no yog qhov DigitalOcean hu ua VPS. Thawj kauj ruam yog nkag mus rau lub npe ntawm peb lub server. Txhawm rau tsim koj tus kheej huab, qhov kev xaiv pheej yig tshaj yog txaus rau koj - rau $ 5 ib hlis. Qhov chaw ntawm tus neeg rau zaub mov ua lub luag haujlwm loj - nws cuam tshuam ncaj qha rau kev nkag mus rau koj cov ntaub ntawv. Yog li ntawd, xaiv lub nroog ze tshaj plaws rau koj. Lub kaw lus yuav tsum tau xaiv Ubuntu 12.04. Qhov no yog ib qho version nrog kev txhawb nqa mus ntev (txog 2017), thiab tshiab 14.04 tseem tshiab heev:)

Txuas rau VPS

Tom qab tsim cov tee dej, koj yuav tau txais email nrog IP chaw nyob ntawm koj lub server thiab tus password kom nkag mus rau nws. Txhawm rau txuas rau lub server, koj xav tau lub cuab yeej SSH. Ntawm Linux thiab Mac, qhov no yog Terminal twb tau teeb tsa. Tab sis rau cov neeg siv Windows, kuv qhia koj kom rub tawm Putty. Qhov kev pab cuam yog dawb kiag li.

Hauv lub davhlau ya nyob twg, nkag mus rau cov lus txib hauv qab no txhawm rau txuas rau lub server (tsis yog cov units, nkag mus rau IP chaw nyob ntawm koj lub server):

Nrog koj zoo siab. Koj txuas nrog koj lub server! Tam sim no koj yuav tsum nruab apache, mysql, php5 (LAMP) thiab, qhov tseeb, OwnCloud nws tus kheej. Txhawm rau ua qhov no, peb tsuas yog ua cov kab lus los ntawm kab. Tsis muaj kab nrog cov lus pom (thaum pib muaj kab sib chaws) - cov no yog cov lus piav qhia rau koj.

sudo apt-tau hloov tshiab

# Tau txais txhua qhov hloov tshiab rau lub server

sudo apt-tau hloov tshiab

# Nruab cov kev hloov tshiab tib yam no

sudo apt-mus nruab teeb-server ^

# Txhim kho LAMP. Koj yuav tsum tau teeb tsa MySQL root password.

sudo mysql_secure_installation

# Nyob rau theem no, koj yuav raug nug "yog / tsis" ob peb zaug rau cov lus nug sib txawv. Koj tuaj yeem teb "Tsis yog" rau thawj zaug thiab "Yog" rau tag nrho lwm tus.

sudo apt-mus nruab php5-gd php-xml-parser php5-intl smbclient curl libcurl3 php5-curl

# Nruab qhov tsim nyog plugins rau OwnCloud

sudo a2enmod rov sau dua sudo a2enmod headers

sudo nano / etc / apache2 / sites-available / default

Ib daim ntawv nyeem yuav qhib. Hauv nws, koj yuav tsum nrhiav cov kab hauv qab no thiab kho AllowOverride Tsis muaj rau AllowOverride Txhua. Tom qab ntawd "Ctrl + X", tom qab ntawd "Y" thiab sau.

Scr 1
Scr 1

Nrog koj zoo siab, koj muaj tag nrho cov software uas koj xav tau kom koj lub server ua haujlwm zoo. Tam sim no koj yuav tsum nruab OwnCloud. Tsuas yog 7 pawg, tsis txhob txhawj:)

tar -xjf owncloud-latest.tar.bz2

mv owncloud / var / www

# Rub tawm OwnCloud version tshiab kawg rau koj lub server, unzip nws thiab txav mus rau hauv daim nplaub tshev uas koj xav tau nkag los ntawm lub vev xaib.

cd / var / www

sudo chown -R www-data: www-data owncloud

# Rau kev ua haujlwm ib txwm muaj ntawm OwnCloud, koj yuav tsum muab nws txoj cai nkag mus rau lub vev xaib tseem ceeb ntawm peb lub server.

mysql -u root -p

Tsim DATABASE owncloud;

PAUB TAG NRHO RAU owncloud. * TO 'owncloud' @ 'localhost' IDENTIFIED BY 'password';

tawm;

# Tsim cov ntaub ntawv rau OwnCloud. Koj tuaj yeem hloov cov lus owncloud thiab password.

sudo kev pabcuam apache2 rov pib dua # Rov pib peb lub server

Mus rau qhov chaw nyob (tsis yog units - koj qhov chaw nyob server):

111.111.111.111/owcloud

Thiab peb ua tiav qhov kev teeb tsa ntawm OwnCloud.

Domain kev twb kev txuas

Screenshot ntawm 2014-05-11 22:30:45
Screenshot ntawm 2014-05-11 22:30:45

Koj tuaj yeem tau txais los ntawm tsuas yog qhov chaw nyob IP, tab sis qhov no yog qhov ua tsis tau zoo thiab dab tuag. Yog li ntawd, nws tsim nyog txuas tus sau. Txhawm rau ua qhov no, mus rau DigitalOcean → DNS vaj huam sib luag thiab nyem qhov Ntxiv Domain khawm nyob ntawd. Nkag mus rau qhov chaw nyob thiab xaiv qhov xav tau los ntawm cov npe ntawm cov tee dej. Qhov ntawd yog nws, hauv ob peb teev, qhov siab tshaj plaws ib hnub, koj yuav nkag mus rau koj cov huab ntawm domain.com/owncloud.

Txaus siab rau nws!