私有云盘的搭建(owncloud、seafile)
序号 | 主机 | 系统 | 作用 | 备注 |
1 | stu:192.168.3.81 | rockylinux8.6最小化安装 | owncloud云盘 | |
2 | stu:192.168.3.82 | rockylinux8.6最小化安装 | seafile云盘 |
一、owncloud
1、关闭selinux及防火墙
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
systemctl disable firewalld
reboot
2、安装软件包
yum install -y httpd php php-mysqlnd mariadb-server mariadb vim net-tools \bash-completion bzip2
systemctl start httpd.service
systemctl start mariadb.service
mysql_secure_installation
3、安装owncloud
下载地址
https://download.owncloud.com/server/stable/owncloud-complete-latest.tar.bz2
wget -P /var/www/html https://download.owncloud.com/server/stable/owncloud-complete-latest.tar.bz2
cd /var/www/html
bzip2 -d owncloud-complete-latest.tar.bz2
tar -xvf owncloud-complete-latest.tar
chown -R apache:apache /var/www/html/owncloud/
mysql -uroot -ppassword
create database owncloud;
GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'%' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
访问:http://192.168.3.81/owncloud/index.php
rpm -qa | grep php
dnf module switch-to php:7.4 -y
rpm -qa | grep php
访问:http://192.168.3.81/owncloud/index.php
dnf install -y php-zip php-intl php-gd
重新访问:http://192.168.3.81/owncloud/index.php
安装完成后登录,下载客户端
创建用户并修改密码
设置客户端
二、seafile云盘搭建
1、 关闭selinux及防火墙
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
systemctl disable firewalld
reboot
2、安装软件包
dnf -y install vim net-tools bash-completion wget
yum install python3 python3-setuptools python3-pip python3-devel mysql-devel gcc -y
yum install nginx mariadb-server mariadb -y
pip3 install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host \mirrors.aliyun.com pip2pi
pip3 install --upgrade pip
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 \django-pylibmc django-simple-captcha python3-ldap mysqlclient
systemctl start mariadb
mysql_secure_installation
3、安装seafile
mkdir /opt/seafile
useradd seafile
chown -R seafile:seafile /opt/seafile
su - seafile
cd /opt/seafile/
wget https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.8_x86-64.tar.gz
tar -xvf seafile-server_8.0.8_x86-64.tar.gz
cd seafile-server-8.0.8/
./setup-seafile-mysql.sh
./seafile.sh start
./seahub.sh startsu
vim /etc/nginx/conf.d/seafile.conflog_format seafileformat '$http_x_forwarded_for $remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $upstream_response_time';server {listen 80;server_name 192.168.3.82;proxy_set_header X-Forwarded-For $remote_addr;location / {proxy_pass http://127.0.0.1:8000;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Host $server_name;proxy_read_timeout 1200s;# used for view/edit office file via Office Online Serverclient_max_body_size 0;access_log /var/log/nginx/seahub.access.log seafileformat;error_log /var/log/nginx/seahub.error.log;}# If you are using [FastCGI](http://en.wikipedia.org/wiki/FastCGI),
# which is not recommended, you should use the following config for location `/`.
#
# location / {
# fastcgi_pass 127.0.0.1:8000;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_script_name;
#
# fastcgi_param SERVER_PROTOCOL $server_protocol;
# fastcgi_param QUERY_STRING $query_string;
# fastcgi_param REQUEST_METHOD $request_method;
# fastcgi_param CONTENT_TYPE $content_type;
# fastcgi_param CONTENT_LENGTH $content_length;
# fastcgi_param SERVER_ADDR $server_addr;
# fastcgi_param SERVER_PORT $server_port;
# fastcgi_param SERVER_NAME $server_name;
# fastcgi_param REMOTE_ADDR $remote_addr;
# fastcgi_read_timeout 36000;
#
# client_max_body_size 0;
#
# access_log /var/log/nginx/seahub.access.log;
# error_log /var/log/nginx/seahub.error.log;
# }location /seafhttp {rewrite ^/seafhttp(.*)$ $1 break;proxy_pass http://127.0.0.1:8082;client_max_body_size 0;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_connect_timeout 36000s;proxy_read_timeout 36000s;proxy_send_timeout 36000s;send_timeout 36000s;access_log /var/log/nginx/seafhttp.access.log seafileformat;error_log /var/log/nginx/seafhttp.error.log;}location /media {root /opt/seafile/seafile-server-latest/seahub;}
}
nginx -t
nginx -s reload
systemctl restart nginx
http://192.168.3.82
更换用户登录,登录需要修改密码
下载客户端
下载 - Seafile
私有云盘的搭建(owncloud、seafile)相关推荐
- 【私有云盘】搭建PHP轻量文件管理器 - TinyFileManager「公网远程访问」
文章目录 前言 1. Tiny File Manager网站搭建 1.1.Tiny file manager下载和安装 1.2.Tiny file manager网页测试 2. Cpolar内网穿透的 ...
- 学校私有云盘在学校信息化建设中的作用-教学资源库平台
学校私有云盘在学校信息化建设中的作用-教学资源库平台 教育信息化的基本特点 教育信息化建设是学校工作的重要组成部分.教育信息化的基本特点是数字化.网络化.智能化和多媒体化:基本属性包含开放性.共享性. ...
- Mobox教育私有云盘助力 学校教学资源库平台建设
序言: 教育信息化的基本特点 教育信息化建设是学校工作的重要组成部分.教育信息化的基本特点是数字化.网络化.智能化和多媒体化:基本属性包含开放性.共享性.交互性与协作性.那么怎样才能将教育信息化更加提 ...
- linux搭建seafile_CentOS7+seafile搭建私有云盘测试过程记录
CentOS7+seafile搭建私有云盘测试过程记录 2017-11-01 08:00:00 48点赞 339收藏 43评论 自从360云盘免费取消后,网上能用的免费并且比较方便的网盘几乎只有百度了 ...
- 搭建私有云:owncloud(用Docker构建owncloud私有云盘)
网上各种云盘都要收费,又或有速度限制,感觉用起来不方便,想抽时间想搭建一个私有云盘.下面讲解下搭建私有云:owncloud. 搭建私有云:owncloud(用Docker构建owncloud私有云盘) ...
- 开源私有云盘python_搭建个人/企业私有云盘-seafile
LINUX Linux操作系统 搭建个人/企业私有云盘-seafile 一.安装依赖组件 安装前的准备工作安装 Seafile 服务器之前,请确认已安装以下软件MariaDB 或者 MySQL 服务器 ...
- 是时候该搭建自己的私有云盘了——nextcloud 12
一.背景 最近多家云盘相继关停,费了很多时间才把上面的东西下载到本地,百度云盘也早已开始限速,技术宅岂能容忍?是时候搭建自己的私有云盘了! 1.搭建自己的私有云有什么好处呢? 首先没有什么容量.下载速 ...
- Docker搭建企业内部私有云盘/开源网盘系统
转载来源:https://manual-cn.seafile.com/deploy/deploy_with_docker.html Docker搭建企业内部私有云盘/网盘系统 快速搭建 # 执行下面, ...
- 搭建私有云盘-NextCloud
一.安装前准备 Nextcloud是一款能够方便的搭建私有云盘的开源项目,安装后支持多插件,能够多平台方便管理 曾经考虑过使用seafile搭建云盘,但是seafile的文件分块存放,安全性高,但是一 ...
- 【搭建私有云盘】无公网IP,在外远程访问本地微力同步
文章目录 1.前言 2. 微力同步网站搭建 2.1 微力同步下载和安装 2.2 微力同步网页测试 2.3 cpolar的安装和注册 3.本地网页发布 3.1 Cpolar云端设置 3.2 Cpolar ...
最新文章
- 轻松获取LAMP,LNMP环境编译参数配置
- 洛谷P4501/loj#2529 [ZJOI2018]胖(ST表+二分)
- gulp自动化构建工具--压缩css--学习笔记
- 字符串排序 墨迹了半天的自闭题目
- AcWing 126. 最大的和
- [css] 说说sroll-snap-type属性的运用场景有哪些?相关联的属性还有哪些?
- jdbctemplate 开启事务_Spring(四):事务管理
- 遵化计算机培训,遵化人力资源培训
- Codeforces Round #339 (Div. 1) C. Necklace 构造题
- Mysql :removeAbandonedTimeout:180
- fb静态区域_西门子 PLC FC和FB用法讲解
- 关于内存泄漏检测问题,和大家一起分享
- 梨花带雨音乐播放器3.91源码开源(网站添加背景音乐)
- java 判断是不是昨天、今天、明天
- 何新生的英语史(九)—看好莱坞学英语,就是这么简单 2
- Cannot find module ‘xxx‘ or its corresponding type declarations.Vetur(2307)
- 分享几个实用的神器APP系列(四)
- Ubuntu应用推荐大全
- c++中的clock()函数
- JS特效-星空太空效果-极简