一、系统环境

系统:CentOS7-1708
IP地址:192.168.159.33

二、安装seafile

[root@seafile ~]# yum -y install epel-release
[root@seafile ~]# rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
[root@seafile ~]# yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel
[root@seafile ~]# yum -y install python-pip
[root@seafile ~]# pip install --upgrade pip
[root@seafile ~]# pip install pillow moviepy
[root@seafile ~]# yum install -y mariadb-server ##安装数据库
[root@seafile ~]# systemctl enable mariadb ##设置数据库开机启动
[root@seafile ~]# systemctl start mariadb ##启动数据库
[root@seafile ~]# mysql_secure_installation ##为数据库设置密码
[root@seafile ~]# wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.3_i386.tar.gz ##下载seafile软件包
[root@seafile ~]# tar -zxf seafile-server_6.2.3_x86-64.tar.gz ##解压软件包
[root@seafile ~]# mkdir -p seafile/installed/ ##创建安装包存放位置
[root@seafile ~]# mv seafile-server_6.2.3_x86-64.tar.gz seafile/installed/
[root@seafile ~]# mv seafile-server-6.2.3/ seafile/
[root@seafile ~]# cd seafile/
[root@seafile seafile]# cd seafile-server-6.2.3/
[root@seafile seafile-server-6.2.3]# ./setup-seafile-mysql.sh ##会要填很多信息,按要求填就可以了

三、设置防火墙、selinux

设置SELinux
[root@seafile ~]#vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
使selinux立即生效
[root@seafile ~]#setenforce 0
添加防火墙允许通行端口
[root@seafile ~]#firewall-cmd --zone=public --add-port=8000/tcp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=8082/tcp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=3306/tcp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=10001/tcp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=12001/tcp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=8000/udp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=8082/udp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=3306/udp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=10001/udp --permanent
[root@seafile ~]#firewall-cmd --zone=public --add-port=12001/udp --permanent
[root@seafile ~]#firewall-cmd --reload ##加载防火墙规则使其立即生效
[root@seafile ~]#firewall-cmd --zone=public --list-ports ##查看放行端口

四、启动seafile

启动seafile
[root@seafile seafile-server-6.2.3]# ./seafile.sh start # 启动 Seafile 服务
[root@seafile seafile-server-6.2.3]# ./seahub.sh start # 启动 Seahub 网站 (默认运行在8000端口上),可指定端口
设置开机启动(ExecStart ExecStop替换为相应安装位置)
[root@seafile ~]#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
[root@seafile ~]#systemctl enable seafile
[root@seafile ~]#systemctl start seafile
[root@seafile ~]#systemctl status seafile

使用 seafile搭建私有云盘的更多相关文章

  1. 腾讯云linux+kodexplorer可道云搭建私有云盘

    kodexplorer可道云介绍KodExplorer可道云,原名芒果云,是基于Web技术的私有云和在线文件管理系统.致力于为用户提供安全可控.可靠易用.高扩展性的私有云解决方案.用户只需通过简单环境 ...

  2. Docker创建seafile搭建私有云

    docker-compose.yml version: '2.0' services: db: image: mariadb:10.1 container_name: seafile-mysql en ...

  3. nextcloud搭建私有云盘

    一.基础环境准备 1.安装一台centos7的linux服务器. # 系统初始化 # 如果时区不对,请修改时区 #mv /etc/localtime /etc/localtime_bak #ln -s ...

  4. 自行搭建私有云ownCloud,启用SSL,其他配置

    ownCloud简介 ownCloud(官网)是一款开源的私有云框架,可以通过它实现个人网盘的功能,如果拥有一个性能不错的VPS,那么就可以摆脱奇慢无比的百度云等网盘啦!我花了大约一天的时间总算搭好了 ...

  5. 自行搭建私有云kodexplorer

    kodexplorer是一款开源的私有云框架,可以通过它实现个人网盘的功能,如果拥有一个性能不错的VPS,那么就可以摆脱奇慢无比的百度云等网盘啦!最近百度网盘还发出申明,说要限制使用空间.用别人的东西 ...

  6. 政务私有云盘系统建设的工具 – Mobox私有云盘

    序言 这几年,智慧政务已经成为了政府行业IT建设发展的重要进程.传统办公方式信息传递速度慢.共享程度低.查询利用难,早已成为政府机关获取和利用信息的严重制约因素.建立文档分享共用机制,加强数据整合,避 ...

  7. 服务器+nextcloud搭建自己的私有云盘

    简介 Nextcloud是一款开源免费的私有云存储网盘项目,可以让你快速便捷地搭建一套属于自己或团队的云同步网盘,从而实现跨平台跨设备文件同步.共享.版本控制.团队协作等功能.它的客户端覆盖了Wind ...

  8. [Openwrt 扩展下篇] Openwrt搭建私有云Owncloud 9

    网上很多资料讲用Linux打造owncloud构建私有云 ,花了些时间研究了下,我将之前的需求打造成了Openwrt下的Owncloud 9.其实网上还有Seafile.大家对比来看下知乎的评论,其实 ...

  9. window搭建私有云,只要几分钟

    本文介绍如何在window搭建私有云网盘. 工具/原料:一台window系统电脑或者window服务器(vps),Xampp 安装包,可道云kodexplorer安装包 第一步,xampp安装 1.官 ...

随机推荐

  1. RocketMQ3.2.6安装部署及调用

    RocketMQ3.2.6安装部署及调用 1.RocketMQ部署架构 所有IP都是127.0.0.1,其中NameServer一个,Broker一个,Producer一个,Consumer一个 2. ...

  2. 动态添加LInk的分析

    动态创建HyperLink超链接: 1.如果添加HyperLink的代码只写在Button中,则只会显示最后一次添加的内容.所以必须在Pageload中添加. 2.首次载入: PageLoad    ...

  3. 清理widows的网络连接

    在听兄弟连李明老师的课程时,Samba配置时,window连接有时要清理,可以用以下命令 1.打开win的命令行. 2.输入net use,就会打印出当前缓存的连接上列表. 3.根据列表,一个个删除连 ...

  4. Sharepoint 2013企业内容管理学习笔记(一) 半自动化内容管理

    大家好,今天我来与大家分享一个关于sharepoint2013文档管理方面的一个知识,我相信也许早就有人了解并熟知这项技术了,呵呵,众所周知,sharepoint 有一个很亮的功能,什么?没错,就是文 ...

  5. 【Leetcode】【Easy】Valid Parentheses

    Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the inpu ...

  6. ubuntu怎么关防火墙

    1.关闭ubuntu的防火墙 ufw disable2.卸载了iptables apt-get remove iptables 1.用iptables -F这个命令来关闭防火墙,但是使用这个命令前,千 ...

  7. vue v-on:事件

    1.js代码 var box=new Vue({ el:'.box', data:{ msg:'hello' }, methods:{ /*方法放置区,函数*/ show:function(){ // ...

  8. mysql便于管理的几个shell脚本

    [mysql@clark scripts]$ lsmysql_db_shutdown.sh  mysql_db_startup.sh  mysql_env.ini  mysqlplus.sh[mysq ...

  9. submit text3 常用快捷键

    Ctrl+D : 选择单词,重复可增加选择下一个相同的单词 Ctrl+F : 查找内容 Ctrl+G : 跳转到指定行 Ctrl+H : 替换 Ctrl+J : 合并行(已选择需要合并的多行时) Ct ...

  10. 阿里云上到底能运行SAP哪些产品?

    本文主要内容大部分来源于SAP已经发布的note:  2552731 - SAP Applications on Alibaba Cloud: Supported Products and IaaS ...