使用 seafile搭建私有云盘

一、系统环境

系统:CentOS7-1708
IP地址:192.168.159.33

二、安装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 ffmpeg-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/
[[email protected] seafile-server-6.2.3]# ./setup-seafile-mysql.sh ##会要填很多信息,按要求填就可以了

三、设置防火墙、selinux

设置SELinux
[[email protected] ~]#vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
使selinux立即生效
[[email protected] ~]#setenforce 0
添加防火墙允许通行端口
[[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 ##查看放行端口

四、启动seafile

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

原文地址:https://www.cnblogs.com/danteit/p/9740836.html

时间: 2024-07-30 08:22:38

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

Seafile搭建私有云盘

主机系统:Ubuntu 16.04 云盘系统:开源Seafile6.0.7 脚本安装: wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-ubuntu-16-04-amd64-http 先下载好开源Seafile6.0.7安装包,放在/opt/下 bash seafile-server-ubuntu-16-04-amd64-http 6.0.7 管理员账号

拒绝收购邀请,三年专注开发,开源的私有云盘“迷你云”(十人团队在三年时间里靠自筹资金专注开发出来的作品)

来自36 氪开放日上海站. Dropbox 等云储存服务在近两年来迅速窜红,各大巨头也纷纷推出自家的云储存服务(苹果的 iCloud, 微软的 SkyDrive, Google 的 GDrive),国内也有类似的服务,金山网盘.袋鼠盘.坚果云等等,不胜枚举,俨然一片红海.从部署方式上说,上述的云存储服务统称为公有云. 同样是做云存储,近两年来私有云也逐渐为人们熟悉,比如我们此前就报道过 Seafile, Syncbox 等国内的私有云项目.相对于公有云来说,由有私有云通常都是建立在自己的服务器上

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

ownCloud简介 ownCloud(官网)是一款开源的私有云框架,可以通过它实现个人网盘的功能,如果拥有一个性能不错的VPS,那么就可以摆脱奇慢无比的百度云等网盘啦!我花了大约一天的时间总算搭好了ownCloud. 用途 如果搭在VPS上,可以用作个人的网盘使用.ownCloud提供了各个平台的文件同步客户端,因此搭建好ownCloud之后即可使用客户端来同步.上传.下载文件,十分方便. 可以搭在性能较好的智能路由器上,连接硬盘,这样路由器就能作为个人的NAS存储云使用.ownCoud的文档

在linux下搭建私有云

0:最近各大网盘纷纷停用,于是便琢磨着是不是搭建一个私有云,这样麻麻就不用担心网盘被停用了. ownCloud是一个免费开源的软件,用于为分享文件,日历,联系人,书签和个人音频/视频.非常容易安装和管理. 1:搭建环境配置:你的服务应该工作在LAMP上.参考下面链接去安装一键LAMP服务. 点击打开lamp一键安装连接: 安装成功以后,安装必要的php扩展: yum install php-mysql php-json php-xml php-mbstring php-zip php-gd cu

使用Docker快速安装NextCloud个人私有云盘

说明:NexCould是一款不错,也很漂亮的个人私有云网盘,现在使用的人是越来越多了,之前发过一篇常规的搭建教程,参考:一款不错的个人私有云:NextCloud安装教程,鉴于很多人在搭建过程中或多或少都会出点问题,今天博主发个很方便的安装方法,就是用Docker安装NextCloud,看到网上很多这样的教程都是通过编辑docker-compose.yml文件来安装的,还要配置反向代理,期间容易出现很多问题,对新手很不友好,而本教程使用纯命令形式安装,不容易出问题,适合尝鲜的新手. 截图 更新 D

06_树莓派搭建私有云owncloud

1.私有云owncloud简介 首先私有云是什么东西呢?类似于百度云网盘,360云盘等可以把数据上传到服务器的一个平台,这样在家里就可以搭建一个私有云,上传自己喜欢的电影或者音乐,方便与家人.好友分享. 首先,我们需要了解私有云的运行条件,owncloud是基于LAMP环境才能运行的.所以什么是LAMP环境呢?请看下面的解释 L:Linux,开源操作系统,(raspbian系统): A:Apache,网页服务器: M:Mysql(MariaDB),数据库 P:PHP,编程语音. 大概知道了own

高校如何使用校园私有云盘

开学季福利:高校如何使用校园私有云盘 校园云盘的兴起,要从2016年4月的一次关键事件开启--彼时,大量针对个人业务的免费网盘纷纷宣布因为一些有关政策,停止对个人的网盘服务.所以对于不少学校,特别是高校来说,就开始考虑通过自建私有云,实现全体教师/学生用户的文件存储和共享--毕竟是企业级产品,比个人网盘功能上丰富且强大甚多.支持在线播放.文件协作分享,等等..速度方面,校园网内使用企业级网盘甚至可以达到1000M/s的上传/下载速度,安全方面,东西全都存在自己的服务器上嘛.还非常灵活,支持二次开

centos 6.6搭建seafile私有云盘

1创建云盘目录mkdir /yunpancd /yunpan 2把云盘安装包放到目录下wget http://download-cn.seafile.com/seafile-server_4.2.3_x86-64.tar.gz或者用rz命令上传.用rz要先用yum安装lrzsz. 3.解压tar xzvf seafile-server_4.2.3_x86-64.tar.gzmkdir installedmv seafile-server_* installed 4.更新yumyum update

Centos 6.9 搭建owncloud 私有云盘

本文主要介绍在lamp环境下快速安装和部署owncloud 私有云盘 基本流程: 1.owncloud简介 2.yum部署lamp环境 3.下载owncloud 软件包并且安装 4.测试owncloud是否正常使用 流程一:owncloud简介 ownCloud是是一款私有云存储的搭建工具.可以在纯局域网环境使用,也可以搭建在公有云上.分为服务器和客户端两个部分,服务器以前是支持Windows.Mac OS和Linux的,但是现在的版本只支持Linux了. 客户端则支持Windows.Mac O