惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

Rat's Blog - Docker

使用Searx搭建一个私人的搜索引擎平台,可展现Google/Bing等70多种搜索网站的搜索结果 - Rat's Blog 使用Docker快速安装Poste.io邮件服务器 - Rat's Blog 使用Docker快速安装rTorrent和ruTorrent - Rat's Blog Linux VPS使用Docker快速部署一个CentOS系统容器 - Rat's Blog VPS使用GDList挂载Google Drive和OneDrive网盘,支持多个同时挂载 - Rat's Blog 使用Docker快速安装H5ai网盘、内置HTML5视频播放器DPlayer - Rat's Blog Linux VPS使用Docker快速安装Cloudreve多功能网盘 - Rat's Blog 使用Docker快速安装Aria2+AriaNg+h5ai,可离线BT下载和在线播放 - Rat's Blog 使用Docker快速安装FileRun多功能网盘 - Rat's Blog
使用Docker安装Seafile云盘专业版,并配置域名及SSL证书 - Rat's Blog
博主: Rat's · 2018-07-26 · via Rat's Blog - Docker

说明:Seafile是一个开源的文件云存储平台,主要是为团队设计的,功能很多,用户可加密资料库,且密码不会保存在服务器端,管理员也无权访问你的文件。用户之间也可以共享和同步文件,方便了团队协同工作。其版本分为开源免费版和专业版,两者区别挺大的,比如专业版多了搜索、集群、亚马逊S3Ceph、阿里云OSS等功能,而且专业版3用户免费,一两个人用的话建议专业版,这里说下专业版安装教程。如果人多建议使用开源免费版,安装可以查看:Linux VPS一键安装Seafile搭建私有云盘存储

截图

请输入图片描述
请输入图片描述

安装

Github地址:https://github.com/haiwen/seafile-docs-cn

1、安装Docker

#CentOS 6
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker

2、安装Seafile专业版
先访问该地址:https://customer.seafile.com,注册个账号,然后点击左侧的Downloads,这时候你会看到Seafile专业版的Docker登录信息。

然后使用VPS登陆Seafile的私有仓库:

#登录仓库地址docker.seadrive.org,输入给你的用户名和密码即可
docker login docker.seadrive.org

运行Seafile专业版容器:

#记得修改默认域名、管理员用户名和密码,本配置可自动申请Let's encrypt SSL证书,记得提前解析好域名
docker run -d --name seafile \
  -e SEAFILE_SERVER_LETSENCRYPT=true \
  -e SEAFILE_SERVER_HOSTNAME=moerats.com \
  -e SEAFILE_ADMIN_EMAIL=admin@moerats.com \
  -e SEAFILE_ADMIN_PASSWORD=moerats_password \
  -v /root/seafile:/shared \
  -p 80:80 \
  -p 443:443 \
  docker.seadrive.org/seafileltd/seafile-pro:latest

#如果你想使用自己的SSL证书,需要创建/root/seafile/ssl目录, 并将你的证书以及私钥放入这个目录中,如果的网站名称为moerats.com, 那么你的证书名称必须为moerats.com.crt,私钥名称必须为moerats.com.key。

安装完成后,需要进行初始化配置,打开域名会出现502 Bad Gateway,等待几分钟再访问就可以看到SeafileWeb界面了,此后Seafile数据会保存在服务器的/root/seafile目录。

客户端登录

我们除了可以通过域名登录查看外,还可以使用专用的客户端登录,支持Windows客户端、Mac客户端、Linux客户端、Terminal客户端、Android客户端、iPad/iPhone客户端。

客户端下载:https://www.seafile.com/download/,安装后打开客户端,直接填入域名,用户名和密码登录即可。

添加管理员

docker exec -it seafile /opt/seafile/seafile-server-latest/reset-admin.sh

然后根据提示输入用户名以及密码即可。

目录结构

这里说下容器内/shared的目录结构,可直接查看映射在外部的/root/seafile文件夹即可。

/shared/db:mysql服务的数据目录。
/shared/seafile:Seafile服务的配置文件以及数据文件。
/shared/logs:日志目录。
/shared/logs/var-log:我们将容器内的/var/log挂载到本目录,您可以在shared/logs/var-log/nginx/中找到nginx的日志文件。
/shared/logs/seafile:Seafile服务运行产生的日志文件目录,比如您可以在 shared/logs/seafile/seafile.log文件中看到seaf-server的日志。
/shared/ssl:存放证书的目录。

升级Seafile

#该命令可以升级到Seafile的最新版本
docker pull docker.seadrive.org/seafileltd/seafile-pro:latest
docker rm -f seafile
docker run -d --name seafile \
  -e SEAFILE_SERVER_LETSENCRYPT=true \
  -e SEAFILE_SERVER_HOSTNAME=moerats.com \
  -e SEAFILE_ADMIN_EMAIL=admin@moerats.com \
  -e SEAFILE_ADMIN_PASSWORD=moerats_password \
  -v /root/seafile:/shared \
  -p 80:80 \
  -p 443:443 \
  docker.seadrive.org/seafileltd/seafile-pro:latest

问题查看

如果在使用的过程中出现问题,我们可以查看docker logsdocker exec信息来查看错误原因。

docker logs -f seafile
#或者
docker exec -it seafile bash

相关教程


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/685/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。