Use Seafile to build a private cloud disk

Source: Internet
Author: User
Tags seafile

First, the system environment

System: centos7-1708
IP Address: 192.168.159.33

Second, installation Seafile

[Email protected] ~]# yum-y install Epel-release
[Email protected] ~]# rpm--import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
[Email protected] ~]# yum-y install python-imaging mysql-python python-memcached python-ldap python-urllib3 ffmpeg ffmpe G-devel
[Email protected] ~]# yum-y install Python-pip
[[Email protected] ~]# pip install--upgrade pip
[[Email protected] ~]# pip Install pillow moviepy
[email protected] ~]# yum install-y mariadb-server # #安装数据库
[Email protected] ~]# systemctl enable MARIADB # #设置数据库开机启动
[Email protected] ~]# systemctl start mariadb # #启动数据库
[Email protected] ~]# Mysql_secure_installation # #为数据库设置密码
[Email protected] ~]# wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.3_i386.tar.gz # #下载seafile软件包
[Email protected] ~]# TAR-ZXF seafile-server_6.2.3_x86-64.tar.gz # #解压软件包
[Email protected] ~]# mkdir-p seafile/installed/# #创建安装包存放位置
[Email protected] ~]# MV seafile-server_6.2.3_x86-64.tar.gz seafile/installed/
[Email protected] ~]# MV seafile-server-6.2.3/seafile/
[Email protected] ~]# CD seafile/
[Email protected] seafile]# CD seafile-server-6.2.3/
[e-mail protected] seafile-server-6.2.3]#./setup-seafile-mysql.sh # #会要填很多信息, just fill it out as required.

Third, set up firewall, SELinux

Set SELinux
[[Email protected] ~] #vi/etc/selinux/config
Change Selinux=enforcing to Selinux=disabled
Make SELinux effective immediately
[[Email protected] ~] #setenforce 0
Add a firewall to allow traffic ports
[[Email protected] ~] #firewall-cmd--zone=public--add-port=8000/tcp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=8082/tcp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=3306/tcp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=10001/tcp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=12001/tcp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=8000/udp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=8082/udp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=3306/udp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=10001/udp--permanent
[[Email protected] ~] #firewall-cmd--zone=public--add-port=12001/udp--permanent
[[Email protected] ~] #firewall-cmd--reload # #加载防火墙规则使其立即生效
[[Email protected] ~] #firewall-cmd--zone=public--list-ports # #查看放行端口

Iv. Start Seafile

Start Seafile
[[email protected] seafile-server-6.2.3]#./seafile.sh Start # Start Seafile service
[[email protected] seafile-server-6.2.3]#./seahub.sh Start # launches Seahub Web site (run on port 8000 by default) to specify port
Set the boot start (Execstart Execstop replaced with the appropriate installation location)
[[Email protected] ~] #vi/usr/lib/systemd/system/seafile.service
[Unit]
Description=seafile Service
After=network.target
After=mariadb.service
[Service]
Type=oneshot
Remainafterexit=yes
execstart=/seafile/seafile/seafile.sh start
execstart=/seafile/seafile/seahub.sh start
#ExecStop =/seafile/seafile/seafile.sh Stop
#ExecStop =/seafile/seafile/seahub.sh Stop
[Install]
Wantedby=multi-user.target
[[Email protected] ~] #systemctl Enable Seafile
[[Email protected] ~] #systemctl start Seafile
[[Email protected] ~] #systemctl status Seafile

Use Seafile to build a private cloud disk

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.