frame

Sveiki apsilankę!

Jei forume lankaisi pirmą kartą, kviečiame registruotis ir prisijungti prie diskusijų.

PrisijungtiRegistruotis

Seafile failų saugyklos diegimas CentOS aplinkoje

IV_VygandasSIV_VygandasS Serverių ekspertas (-ė)
edited 2019 gruodžio 13 Į Kitos aplikacijos
Šioje pamokoje pateikiame instrukcijas Seafile failų saugyklos serverio diegimui CentOS aplinkoje.

Seafile - atviro kodo failų sinchronizavimo įrankis leidžiantis susikurti nuosavą duomenų saugyklą.

Demo: https://seacloud.cc/demo

1. Įdiegiame reikalingus paketus:
yum -y install sqlite python-simplejson python-setuptools python-imaging mysql-server

2. Sukuriame Seafile kotalogą:
mkdir /opt/seafile
cd /opt/seafile

3. Atsiunčiame Seafile archyvą:
wget https://seafile.googlecode.com/files/seafile-server_2.1.3_x86-64.tar.gz

4. Išskleidžiame atsiųstą archyvą:
tar -xzf seafile-server_2.1.3_x86-64.tar.gz

5. Sukuriame sistemoje "seafile" vartotoją ir priskiriame šiam vartotojui prieš tai sukurto katalogo teises:
useradd -d /opt/seafile/ seafile
chown -R seafile. /opt/seafile/

6. Prisijungiame prie naujai sukurto "seafile" vartotojo:
su - seafile

7. Paleidžiame Seafile įdiegimo skriptą "setup-seafile.sh":
/opt/seafile/seafile-server-2.1.3/setup-seafile.sh

Sekame įdiegimo skripte nurodytomis instrukcijomis bei įvedame prašomus duomenis:

This script will guide you to config and setup your seafile server.

Make sure you have read seafile server manual at

https://github.com/haiwen/seafile/wiki

Press [ENTER] to continue


Checking packages needed by seafile ...

Checking python on this machine ...
Find python: python2.6

Checking python module: setuptools ... Done.
Checking python module: python-simplejson ... Done.
Checking python module: python-imaging ... Done.
Checking python module: python-sqlite3 ... Done.

Checking for sqlite3 ...Done.

Checking Done.


Seafile_server_name is not a valid name.
What do you want to use as the name of this seafile server?
Your seafile users would see this name in their seafile client.
You can use a-z, A-Z, 0-9, _ and -, and the length should be 3 ~ 15
[server name]: <seafile_serverio_pavadinimas>


What is the ip or domain of this server?
For example, www.mycompany.com, or, 192.168.1.101

[This server's ip or domain]: <mūsų_serverio_IP_arba_hostname>

What tcp port do you want to use for ccnet server?
10001 is the recommended port.
[default: 10001 ] <pageidaujamas_prievadas_arba_[ENTER]>

Where do you want to put your seafile data?
Note: Please use a volume with enough free space.
[default: /opt/seafile/seafile-data ] <pageidaujamo_katalogo_kelias_arba_[ENTER]>

What tcp port do you want to use for seafile server?
12001 is the recommended port.
[default: 12001 ] <pageidaujamas_prievadas_arba_[ENTER]>

What tcp port do you want to use for seafile httpserver?
8082 is the recommended port.
[default: 8082 ] <pageidaujamas_prievadas_arba_[ENTER]>


This is your config information:

server name: Seafile
server ip/domain: <mūsų_serverio_IP_arba_hostname>
server port: 10001
seafile data dir: /opt/seafile/seafile-data
seafile port: 12001
httpserver port: 8082

If you are OK with these configuration, press [ENTER] to continue.

Seahub is the web interface for seafile server.
Now let's setup seahub configuration. Press [ENTER] to continue


Please specify the email address and password for seahub admininstrator.
You would use them to login as admin on your seahub website.

Please specify the email address for seahub admininstrator:
[seahub admin email]: <administratoriaus_el._pašto_adresas>

Please specify the passwd you want to use for seahub admininstrator:
[seahub admin password]: <administratoriaus_slaptažodis>
Please ensure the passwd again:
[seahub admin password again]: <administratoriaus_slaptažodis>


This is your seahub admin username/password

admin user name: <administratoriaus_el._pašto_adresas>
admin password: **************


If you are OK with these configuration, press [ENTER] to continue.

Now create seahub database ...

Loading ccnet config from /opt/seafile/ccnet
Loading seafile config from /opt/seafile/seafile-data
/opt/seafile/seafile-server-2.1.3/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/utils/hashcompat.py:9: DeprecationWarning: django.utils.hashcompat is deprecated; use hashlib instead
DeprecationWarning)
Creating tables ...
Creating table django_content_type
Creating table django_session
Creating table registration_registrationprofile
Creating table api2_token
Creating table avatar_avatar
Creating table avatar_groupavatar
Creating table base_uuidobjidmap
Creating table base_filediscuss
Creating table base_filecontributors
Creating table base_innerpubmsg
Creating table base_innerpubmsgreply
Creating table base_userstarredfiles
Creating table base_dirfileslastmodifiedinfo
Creating table base_filelastmodifiedinfo
Creating table contacts_contact
Creating table wiki_personalwiki
Creating table wiki_groupwiki
Creating table group_groupmessage
Creating table group_messagereply
Creating table group_messageattachment
Creating table group_publicgroup
Creating table message_usermessage
Creating table message_usermsglastcheck
Creating table message_usermsgattachment
Creating table notifications_notification
Creating table notifications_usernotification
Creating table profile_profile
Creating table share_anonymousshare
Creating table share_fileshare
Creating table share_privatefiledirshare
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Done.

Your seafile server configuration has been finished successfully.

run seafile server: ./seafile.sh { start | stop | restart }
run seahub server: ./seahub.sh { start <port> | stop | restart <port> }

If you are behind a firewall, remember to allow input/output of these tcp ports:

port of ccnet server:
port of seafile server:
port of seafile httpserver:
port of seahub: 8000

When problems occur, Refer to

https://github.com/haiwen/seafile/wiki

for information.

8. Atlilkus įdiegimą paleidižiame "seafile.sh" ir "seahub.sh" skriptus su šiomis komandomis:
/opt/seafile/seafile-server-2.1.3/seafile.sh start
/opt/seafile/seafile-server-2.1.3/seahub.sh start

Rezultatas:

Įdiegus ir paleidus Seafile serverio tarnybas, Seafile valdymo pultą galima rasti apsilankius šiuo adresu:

___
Seafile dokumentaciją rasite apsilankę šiuo adresu.
Pažymėtos temos:
Norėdami palikti komentarą, turite prisijungti arba registruokis.
Dedikuoti.lt
Šiame forume rasite informaciją kaip atlikti serverio administravimą, konfigūravimą, įvairių tarnybų bei papildomų aplikacijų diegimą. Taip pat pateiksime rekomendacijų, skirtų serverių saugumui, monitoringui ir optimizavimui. Kviečiame prisijungti prie dedikuotų serverių administratorių bendruomenės, dalyvauti diskusijose ir praplėsti savo žinias serverių administravimo srityje!
© 2007 - 2024 Dedikuoti.lt forumas, visos teisės saugumos.