一、系统环境

系统: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. ajax返回数据之前的loading等待

    首先,我们通过ajax请求,向后台传递参数,然后后台经过一系列的运算之后向前台返还数据,我希望在等待数据成功返还之前可以展示一个loading.gif图 不废话,在页面上执行点击事件(<a sc ...

  2. 利用JS提交表单的几种方法和验证(必看篇)

    第一种方式:表单提交,在form标签中增加onsubmit事件来判断表单提交是否成功 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 <scr ...

  3. java基础--提示对话框的使用

    java基础--提示对话框的使用 2019-03-17-00:35:50-----云林原创 一.显示信息对话框:使用“JOptionPane.showMessageDialog”显示:   图标 对话 ...

  4. String常用操作

    常量池: 字符串一旦被初始化就不会被改变 String s="123"; s="abc"; System.out.print(s); 这段代码看上去s的值是被改 ...

  5. node的版本控制之nvm的安装与使用

    NVM的安装 windows下的安装: windows下的离线安装: nvm 的windows下载地址:https://github.com/coreybutler/nvm-windows/relea ...

  6. window.frames在不同浏览器中的用法

    document.frames 等同于 window.frames,用来取得当前页面内 window 对象的集合. 不支持Firefox,其他浏览器(chrome.opera.IE.360)均支持. ...

  7. Android 第三方类库简单使用之EventBus

    Android 第三方类库之EventBus 1 PS 工欲善其事必先利其器. Eventbus也是一款在开发中常用的利器 这篇也对EventBus的简单介绍和使用,与之前个xutils介绍的级别一样 ...

  8. 树莓派3(Raspberry pi 3)刷OpenWrt

    原文在 https://my.oschina.net/wangandi/blog/687389 1.下载镜像,这个lede好像是openwrt的一个分支,openwrt本身还没有支持pi3,https ...

  9. Java性能调优实践

    1 导论 JVM主要有两类调优标志:布尔标志和附带参数标志 布尔标志:-XX:+FlagName表示开启,­-XX:-FlagName表示关闭. 附带参数标志:-XX:FlagName=somethi ...

  10. 每天一个linux命令-uname,输出操作系统信息(内核版本、硬件架构32位/64位等)

      uname命令:主要用于输出一组操作系统的信息. 这个命令比较简单也比较有意思.为什么这么说呢?输入--help后看看效果,一目了然,简单吧: 首先输出完整信息: 我们再依次来输出一下: 最后,我 ...