一、系统环境

系统: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. Hashtable 键值对集合

    // Hashtable  键值对集合 一个键对应一个值 Hashtable ht=new Hashtable(); ht.Add(,"张三"); ht.Add(,'男'); ht ...

  2. 使用 Azure CLI 创建虚拟机

    使用 az vm create 命令创建虚拟机. 创建虚拟机时,可使用多个选项,例如操作系统映像.磁盘大小调整和管理凭据. 在此示例中,创建了一个名为“myVM”的运行 Ubuntu Server 的 ...

  3. Thrift笔记(六)--单端口 多服务

    多个服务,使用监听一个端口.先上一个demo Test.thrift namespace java com.gxf.thrift enum RequestType { SAY_HELLO, //问好 ...

  4. springboot 整合kafka

    本文介绍如何在springboot项目中集成kafka收发message. 1.先解决依赖 springboot相关的依赖我们就不提了,和kafka相关的只依赖一个spring-kafka集成包 &l ...

  5. 从零开始的全栈工程师——jQuery

    jQueryjq是js一个高效且精简的库( 用的多写得少 ) ,是chrome出版的.jq内部有一个$的方法,他是jq的起始符或标识符,这个方法是用于获取元素. 下载库或者框架的方法官网 produc ...

  6. 【Android】4.0 神一样的仪式感:Android第一个项目HelloWorld——eclipse

    进入Eclipse,在左侧栏右击: 新建 “Android Application Project”项目,如果new之后没有,选择“Project”中“Android”目录下的 “Android Ap ...

  7. URL工具类

    UrlUtils = { /** * 判断url是否存在(存在跨域问题) * @param {String} url */ isTrueUrl: function(_url) { result = f ...

  8. Vue基础知识之vue-resource和axios

    Vue基础知识之vue-resource和axios  原文链接:http://www.cnblogs.com/Juphy/p/7073027.html vue-resource Vue.js是数据驱 ...

  9. 关于 document.compatMode

    今天查资料时无意发现一个以前没有注意到过的属性:document.compatMode 经过一番资料的查询后,了解到以下信息: 我们都知道IE有两种盒子模型,在不声明 !DOCTYPE 时是混杂模式 ...

  10. Mac系统在finder拦显示当前所浏览的文件路径的方法

    我们在使用MAC时,Finder栏默认只显示当前浏览的文件夹名称,而没有显示访问路径,这个问题该怎么解决呢? 编辑node的时候需要路径,亲测有效啦~可以试下! 操作步骤: 打开“终端”(应用程序-& ...