新站正式上线!开源是一种精神,分享是一种美德!

龙芯平台“深度云存储”正式发布-云端存储

Linux系统 W•X 157℃

原文链接:龙芯平台“深度云存储”正式发布——安全可靠 云端存储

1. 服务端部署过程

说明:本文档提供两种部署方式,分别为自动部署和手动部署,部署过程请用root用户进行操作。
一、自动部署
1、运行setup.sh脚本
2、初始化服务
#cd /deepin-cloud-server
#seafile-admin setup
—————————————————————–
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
—————————————————————–
check python modules …
checking sqlite3
checking chardet
checking six
checking pytz
checking rest_framework
checking compressor
checking statici18n
checking jsonfield
checking dateutil
checking constance
checking openpyxl
checking python imaging library(PIL)

It seems there already exists ccnet config files in /deepin-cloud-server/ccnet, Do you want to use them?
[yes or no] yes
Where do you want to put your seafile data? (Please use a volume with enough free space)
[default /deepin-cloud-server/seafile-data ]

It seems there already exists seafile data in /deepin-cloud-server/seafile-data, Do you want to use them?
[yes or no] yes
This is your configuration
——————————————
ccnet config: use existing config in /deepin-cloud-server/ccnet
seafile: use existing config in /deepin-cloud-server/seafile-data
——————————————
Press ENTER if the config is right, or anything else to re-config

Now initializing seahub database, please wait…

Operations to perform:
Synchronize unmigrated apps: help, compressor, staticfiles, webpack_loader, messages, wopi, thumbnail, statici18n, captcha, password_session, constance, gunicorn
Apply all migrations: wiki, termsandconditions, trusted_ip, api2, share, registration, post_office, group, contacts, tags, contenttypes, profile, sessions, auth, invitations, notifications, base, revision_tag, admin_log, two_factor, database, institutions, avatar, role_permissions, options
Synchronizing apps without migrations:
Creating tables…
Running deferred SQL…
Installing custom SQL…
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.

You have installed Django’s auth system, and don’t have any superusers defined.
Would you like to create one now? (yes/no): no
done
—————————————————————–
—————————————————————–
Your seafile server configuration has been finished successfully.
—————————————————————–
—————————————————————–
To start/stop seafile server:
$ cd /data/haiwen
$ seafile-admin { start | stop }
If you have any problem, refer to
Seafile server manual: https://github.com/haiwen/seafile/wiki
Seafile discussion group: https://groups.google.com/forum/?fromgroups#!forum/seafile
Seafile website: http://www.seafile.com
for more information.

3、启动服务并创建管理员帐号

1)启动服务
#seafile-admin start
Starting seafile-server…
Starting seahub…
Seahub running on port 8000
Done
2)创建管理员帐号
#cd /deepin-cloud-server/seafile-server/seahub/tools
# python seahub-admin.py
Enter ccnet directory:(leave blank for /root/.ccnet) /deepin-cloud-server/ccnet/
Would you like to create admin user?[y/n]y
E-mail address:deepin-cloud-admin@deepin.com
Password:
Password (again):
Admin user created successfully.

4、重启服务
#cd /deepin-cloud-server
#seafile-admin stop
#seafile-admin start
Starting seafile-server…
Starting seahub…
Seahub running on port 8000
Done

5、通过浏览器访问后台服务
http://http://127.0.0.1:8000
二、手动方式部署
1、环境准备
说明:如下安装过程需要连接互联网,如果不具备条件,可以通过packages目录下的离线包进行安装

1)安装依赖包
#apt-get install libevent-dev libcurl4-openssl-dev libglib2.0-dev uuid-dev intltool libsqlite3-dev libmysqlclient-dev libarchive-dev libtool libjansson-dev valac libfuse-dev
2)安装python环境及Django
#apt-get install python-pip python-imaging
#pip install pytz Django==1.8 django-statici18n djangorestframework django_compressor django_compressor django-post_office gunicorn flup chardet python-dateutil six openpyxl captcha django-webpack-loader django-picklefield
#pip install https://github.com/haiwen/django-constance/archive/bde7f7c.zip
#pip install qrcode django-simple-captcha django-formtools
#pip install djangorestframework==3.6
#pip install requests

2、安装软件包
安装该目录中的如下软件包:
ccnet-server-6.3.2_6.3.2-1_mips64el.deb
deepin-cloud-server-6.3.2_1.0-1_mips64el.deb
libevhtp_1.1.6-1_mips64el.deb
libsearpc-3.1_3.1-1_mips64el.deb
mariadb-connector-c-3.0.4_3.0.4-1_mips64el.deb

可用如下命令批量安装:
#dpkg -i *.deb

3、创建工作目录
#mkdir -p /deepin-cloud-server/seafile-server
#cp -r ./seahub /deepin-cloud-server/seafile-server

4、服务端部署
1)配置环境
#export PYTHONPATH=/deepin-cloud-server/seafile-server/seahub/thirdpart
#cp ./models.py /usr/local/lib/python2.7/dist-packages/constance/
#cp ./setenv.sh /deepin-cloud-server/seafile-server/seahub/
#cd /deepin-cloud-server/seafile-server/seahub/
#sh ./setenv.sh
#ldconfig

2)部署服务
#cd /deepin-cloud-server
#seafile-admin setup
—————————————————————–
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
—————————————————————–
check python modules …
checking sqlite3
checking chardet
checking six
checking pytz
checking rest_framework
checking compressor
checking statici18n
checking jsonfield
checking dateutil
checking constance
checking openpyxl
checking python imaging library(PIL)

It seems there already exists ccnet config files in /deepin-cloud-server/ccnet, Do you want to use them?
[yes or no] yes
Where do you want to put your seafile data? (Please use a volume with enough free space)
[default /deepin-cloud-server/seafile-data ]

It seems there already exists seafile data in /deepin-cloud-server/seafile-data, Do you want to use them?
[yes or no] yes
This is your configuration
——————————————
ccnet config: use existing config in /deepin-cloud-server/ccnet
seafile: use existing config in /deepin-cloud-server/seafile-data
——————————————
Press ENTER if the config is right, or anything else to re-config

Now initializing seahub database, please wait…

Operations to perform:
Synchronize unmigrated apps: help, compressor, staticfiles, webpack_loader, messages, wopi, thumbnail, statici18n, captcha, password_session, constance, gunicorn
Apply all migrations: wiki, termsandconditions, trusted_ip, api2, share, registration, post_office, group, contacts, tags, contenttypes, profile, sessions, auth, invitations, notifications, base, revision_tag, admin_log, two_factor, database, institutions, avatar, role_permissions, options
Synchronizing apps without migrations:
Creating tables…
Running deferred SQL…
Installing custom SQL…
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.

You have installed Django’s auth system, and don’t have any superusers defined.
Would you like to create one now? (yes/no): no
done
—————————————————————–
—————————————————————–
Your seafile server configuration has been finished successfully.
—————————————————————–
—————————————————————–
To start/stop seafile server:
$ cd /data/haiwen
$ seafile-admin { start | stop }
If you have any problem, refer to
Seafile server manual: https://github.com/haiwen/seafile/wiki
Seafile discussion group: https://groups.google.com/forum/?fromgroups#!forum/seafile
Seafile website: http://www.seafile.com
for more information.

5、启动服务并创建管理员帐号

1)启动服务
#seafile-admin start
Starting seafile-server…
Starting seahub…
Seahub running on port 8000
Done
2)创建管理员帐号
#cd /deepin-cloud-server/seafile-server/seahub/tools
# python seahub-admin.py
Enter ccnet directory:(leave blank for /root/.ccnet) /deepin-cloud-server/ccnet/
Would you like to create admin user?[y/n]y
E-mail address:deepin-cloud-admin@deepin.com
Password:
Password (again):
Admin user created successfully.

6、重启服务
#cd /deepin-cloud-server
#seafile-admin stop
#seafile-admin start
Starting seafile-server…
Starting seahub…
Seahub running on port 8000
Done

7、通过浏览器访问后台服务
http://http://127.0.0.1:8000
====================================

 

转载请注明:LINUX! » 龙芯平台“深度云存储”正式发布-云端存储

喜欢 (0)