参考安装文档
https://download.seafile.com/published/seafile-user-manual/syncing_client/install_linux_client.md (CentOs)
https://copr.fedorainfracloud.org/coprs/pkerling/seafile/ (redhat)
https://blog.csdn.net/fly910905/article/details/83144267 (论坛)
官方使用手册(命令行模式)
https://download.seafile.com/published/seafile-user-manual/syncing_client/linux-cli.md


目的:官方文档虽然说支持centos、redhat安装,从实践看redhat没有包,最后找了个帮助文档,装了一个fedora版的,勉强用上,记录一下安装过程,备忘~


OS:
CentOS Linux release 7.5.1804 (Core)
Red Hat Enterprise Linux Server release 7.6 (Maipo)


软件安装:
1、CentOs 部分(当前官方提供的是seafile-7.0.4-1):

# wget -O- https://git.io/seadrive-centos7-repo | sudo tee /etc/yum.repos.d/seadrive.repo
# yum install -y epel-release
# yum install -y seafile --enablerepo=cr

2、Red Hat 部分(seafile-6.2.4-1)
照着官方文档如CentOs 部分进行安装,提示如下,放弃抵抗另选他路~
关于centos及redhat安装seafileh_第1张图片

# wget -O /etc/yum.repos.d/copr-pkerling-seafile.repo https://copr.fedorainfracloud.org/coprs/pkerling/seafile/repo/epel-7/pkerling-seafile-epel-7.repo
# yum install seafile

软件使用:

# mkdir ~/seafile-client 
# seaf-cli init -d ~/seafile-client
# seaf-cli start
# seaf-cli config -k disable_verify_certificate -v true (跳过ssl,否则有报错,或者导入证书~)

redhat由于python版本问题会有个报错(7.1版本开始使用python3~~)
urllib2.URLError:

需要在文件/usr/bin/seaf-cli 中加2行强制忽略ssl校验
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

其他使用参考官方文档即可~