centos8安装seafile

centos8安装seafile

centos8 安装seafile 小记

1.安装centos

首先安装centos8,基本的配置操作。

升级centos内核 操作略

//升级系统 yum -y update /安装 wget yum -y install wget

设置为阿里yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
yum clean all    //清除原有yum缓存
yum makecache    //生成新的缓存

安装必要软件

yum install lrzsz systat tree vim nmap unzip dos2unix nc lsof
dnf group install "Development Tools"

2.准备工作

yum install python3 python3-setuptools python3-pip python3-ldap -y
//根据需要更新pip源,略 ~/.pip/pip.conf

####升级pip版本(不升级安装依赖包可能会报错,提示文件缺失)
pip3 install --upgrade pip

###安装python包
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha

下载一键安装seafile脚本

wget https://cdn.jsdelivr.net/gh/haiwen/seafile-server-installer-cn@master/seafile-server-7.1-centos-amd64-http

pro下载地址:https://download.seafile.com/d/6e5297246c/?p=%2Fpro&mode=list 放置seafile-pro-server_7.._x86-64_CentOS.tar.gz到/opt 路径

3.开始安装

bash seafile-server-7.1-centos-amd64-http 7.1.8
选择pro
等待安装完成

4.注意事项

4.1 目前7.1在虚拟机下,搜索服务基本会内存溢出

安装完后请注意先关闭seafile服务

systemctl stop seafile
systemctl stop seahub

及时修改seafevents.conf关闭搜索服务。

4.2 7.1以上office预览需要安装Libreoffice 新版。

详见 https://cloud.seafile.com/published/seafile-manual-cn/deploy_pro/office_documents_preview.md#user-content-7.1%20%E4%BB%A5%E5%8F%8A%E4%B9%8B%E5%90%8E%E7%89%88%E6%9C%AC

5.内网穿透

服务器建立在局域网内,使用免费的Sakura FRP进行内网穿透。 网址:https://www.natfrp.com 注册账号根据说明建立服务。