seafile私有云盘安装配置-折腾笔记

环境


服务器:CentOS-7-x86_64-Minimal-1511

seafile版本:6.0.4

一、一键安装脚本

https://github.com/haiwen/seafile-server-installer-cn

二、奇怪的自定义

虽有官方提供的一键安装脚本,但是在安装过程中也遇到了很多奇葩的问题,遂记录于此。

1、设置主机名

执行一键脚本时,遇到hostname error问题,故需要设置hostname

1.1查看当前主机名

hostnamectl status

1.2设置主机名

hostnamectl set-hostname "host.local"

2、打开防火墙

执行一键脚本时,又遇到防火墙问题,故需要设置。

2.1启用防火墙

systemctl enable firewalld.service

2.2 启动防火墙

systemctl start firewalld.service

2.3 查看防火墙状态

systemctl status firewalld.service

3、将主机名添加到host

执行一键脚本时,又遇到主机名unreachable问题,故需要设置。

3.1编译hosts

vim /etc/hosts

修改如下:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 host.local
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

3.2测试

ping host.local

参考文档


https://github.com/haiwen/seafile-server-installer-cn

https://manual-cn.seafile.com/