Install Seafile Secure Cloud Storage on CentOS 7

Python Packages

Seafile storage setup requires some puthon modules that must be installed on your server, otherwise your installation setup will be unsuccessful and your will be asked to install all missing dependencies.

You can install the required python modules by using the following command.

yum install httpd mariadb-server mariadb
systemctl start httpd.service
systemctl start mariadb.service
systemctl enable httpd.service
systemctl enable mariadb.service

mysql_secure_installation;

Set root password ?[Y/N] New passward: your new password
Re-enter passwd......
Y, Y, Y, Y.

 

# yum install MySQL-python python-imaging python-simplejson python-setuptools

Download Seafile Server Package

Seafile server package can be downloaded from their official link of Seafile Download Page where you can see its cross platform packages. We will be choosing the generic linux 64-bit package as shown.

Seafile Server Download

You can download this package in temp directory using wget command by providing the complete download path as below.

# wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_4.4.1_x86-64.tar.gz

When the downloading of package complete, create a new directory in the web document root directory of your server and extract the seafile server package in it.

# mkdir /var/www/storage/
# tar -zxvf seafile-server_4.4.1_x86-64.tar.gz -C /var/www/storage/

Seafile Installation Setup

To start the installation setup, move to the folder where we extracted the installation package and execute the following script.

[root@centos-seafile seafile-server]# ./setup-seafile-mysql.sh

The script will check out the required dependencies, then you will be as asked Press the Enter key to continue.

Seafile Server Installation

Once you hit the enter key, you will be asked to configure some of its required parameters where you to have to mention your server's name, its FQDN/IP and choose the default port for seafile fileserver.

sseafile server configuration

Then you will be asked to configure your seafile databases, if you have not already created your databases then don't worry and choose the options to create the new databases during the seafile installation setup as shown below.

-------------------------------------------------------
Please choose a way to initialize seafile databases:
-------------------------------------------------------

[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases

[ 1 or 2 ] 1

What is the host of mysql server?
[ default "localhost" ]

What is the port of mysql server?
[ default "3306" ]

What is the password of the mysql root user?
[ root password ]

verifying password of user root ... done

Enter the name for mysql user of seafile. It would be created if not exists.
[ default "root" ] seafile

Enter the password for mysql user "seafile":
[ password for seafile ]

Enter the database name for ccnet-server:
[ default "ccnet-db" ]

Enter the database name for seafile-server:
[ default "seafile-db" ]

Enter the database name for seahub:
[ default "seahub-db" ]

Seafile server Configuration

After hitting the Enter key, the installation process will continue to configure and setup its configuration and database files as below.

Generating ccnet configuration ...

done
Successfully create configuration dir /var/www/storage/ccnet.
Generating seafile configuration ...

Done.
done
Generating seahub configuration ...

----------------------------------------
Now creating seahub database tables ...

----------------------------------------

creating seafile-server-latest symbolic link ... done

Upon successful completion of seafile installation you will be greeted with following usefull information and instructions to continue with other configurations.

Seafile Configurations

Starting Seafile Server

To start the seafile, execute the below seafile script as shown.

[root@centos-seafile seafile-server]# ./seafile.sh start

Starting Seafile Server

Then you will be asked to configured your admin email account, you will be greeted with below successful message.

----------------------------------------
It's the first time you start the seafile server. Now let's create the admin account
----------------------------------------

What is the email for the admin account?
[ admin email ] kashifs@linoxide.com

What is the password for the admin account?
[ admin password ]

Enter the password again:
[ admin password again ]

----------------------------------------
Successfully created seafile admin
----------------------------------------

Seahub is started

Done.

Login to Seahub

Now open any one the web browser to access the seahub dashboard to manage and shared your libraries and folders etc.

Open the URL with your FQDN or Server's IP address with your configured default port and login with admin email address that you created during the seahub server startup.

http://your_servers_ip:8000

Login to Seahub

服务器配置:http://manual-cn.seafile.com/config/index.html

启动,自己编写一个seafile-start.sh,放在~下,sudo运行:

#!/bin/bash

# 假设 python 2.6(2.7) 可执行文件在 /usr/bin 目录下
# PATH=$PATH:/usr/bin/

# 请将 user 改为你的Linux用户名
# user=miaoloud

# 请将 script_path 改为你的 Seafile 文件安装路径
seafile_dir=/var/www/storage
script_path=${seafile_dir}/seafile-server-latest

${script_path}/seafile.sh start
${script_path}/seahub.sh start 8000


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值