安裝環境:
centos7.4 mysql5.7(第三步配置數據庫用到,教程自己搜,還不會的@我)
seafile官方參考: https://cloud.seafile.com/published/seafile-manual-cn/deploy/using_mysql.md
1.下載seafile並解壓
wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_7.0.4_x86-64.tar.gz
2.安裝環境
yum -y install epel-release
yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel
pip install pillow moviepy
上一條命令可能錯誤:執行下面命令
yum install python3-pip
pip3 install pillow moviepy
3.安裝seafile(按需求自己設置)
./setup-seafile-mysql.sh
4. 7.0.x 版本之後,8000端口默認監聽在127.0.0.1地址上,這意味着您無法直接通過8000端口訪問Seafile服務,按官方文檔建nginx或者修改下面配置
/home/seafile/conf/gunicorn.conf文件
5.啓動並訪問http://192.168.1.100:8000,記得開啓端口訪問權限
-
啓動 Seafile:
./seafile.sh start # 啓動 Seafile 服務
-
啓動 Seahub
./seahub.sh start # 啓動 Seahub 網站 (默認運行在8000端口上)