实验环境
seafile_server 192.168.10.12
seafile_winclient 192.168.10.15
cat /etc/redhat-release && uname -a
CentOS Linux release 7.8.2003 (Core)
Linux centos7-1 3.10.0-1127.el7.x86_64
systemctl stop firewalld && systemctl disable firewalld
echo SELINUX=disabled > /etc/sysconfig/selinux
cp -pv /etc/sysctl.conf /etc/sysctl.conf.bak
echo net.ipv4.tcp_syncookies = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_reuse = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_recycle = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_fin_timeout = 10 >> /etc/sysctl.conf
echo net.ipv4.ip_forward = 1 >> /etc/sysctl.conf
sysctl -p
实验软件
seafile-9.0.4 seafile_windows客户端
seafile服务端配置
yum install -y docker-ce
cat docker.service | grep dockerd
ExecStart=/usr/bin/dockerd --exec-opt native.cgroupdriver=systemd
systemctl daemon-reload && systemctl restat docker && systemctl enable docker chronyd --now
docker info | grep systemd
Cgroup Driver: systemd 修改默认驱动为systemd
docker pull seafileltd/seafile
docker run -itd --name seafile \
--restart=always -v /etc/localtime:/etc/localtime \
-p 88:80 -p 8000:8000 -p 8082:8082 \
-e SEAFILE_SERVER_HOSTNAME=seafileip \
-v /usr/local/docker/seafile/:/shared seafileltd/seafile
cp -pv /usr/local/docker/seafile/seafile/conf/seafile.conf /usr/local/docker/seafile/seafile/conf/seafile.conf.bak
head -n4 /usr/local/docker/seafile/seafile/conf/seafile.conf
[fileserver]
port = 8082
max_upload_size=1048576 配置上传文件限制 手动配置
max_download_dir_size=1048576 配置下载文件限制 手动配置
docker logs -f seafile
run seafile server: ./seafile.sh { start | stop | restart }
run seahub server: ./seahub.sh { start <port> | stop | restart <port> }
-----------------------------------------------------------------
If you are behind a firewall, remember to allow input/output of these tcp ports:
-----------------------------------------------------------------
port of seafile fileserver: 8082
port of seahub: 8000
重置seafile服务端管理员密码
docker exec -it seafile /bin/bash -c "bash /opt/seafile/seafile-pro-server-6.3.13/reset-admin.sh"
E-mail address: admin@example.com
Password:
Password (again):
Superuser created successfully.
netstat -tuplna | grep LISTEN
tcp 0 0 0.0.0.0:88 0.0.0.0:* LISTEN 3376/docker-proxy
tcp 0 0 0.0.0.0:8082 0.0.0.0:* LISTEN 22313/docker-proxy
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 22329/docker-proxy
http://serverip:88/accounts/login/?next=/
用户名 admin@example.com 密码 admin123
配置seafile用户
seafile服务端配置群组
seafile服务端配置共享资料库
seafile windows客户端配置