centos 7 部署seafile
作者:互联网
部署seafile
关闭封火墙以及selinux
安装数据库
yum install -y mariadb mariadb-server
设置开机自启动
systemctl enable mariadb
运行数据库服务
systenctl start mariadb
查看数据是否正确安装
systemctl status mariadb
设置MySQL默认账号和密码
mysqladmin -u root password '123456' 设置密码
安装python环境以及安装包
yum install tree -y #这个是结构目录
yum -y install gcc gcc-c++
yum install python3-devel -y #
yum install mariadb-devel -y
yum install python3 python3-setuptools python3-pip python3-ldap -y #官网要求
pip3 install Pillow pylibmc captcha jinja2 sqlalchemy #
pip3 install django-pylibmc django-simple-captcha #
2pip3 install django-pylibmc django-simple-captcha #
pip3 install psd-tools #这个比较难,所以单独拎出来,不能有红色报错
pip3 install ConfigParser
pip3 install future
pip3 install mysqlclient
安装seafile
yum install MySQL-python
mkdir chenfan 创建安装文件夹
cd chenfan
wget https://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_8.0.3_x86-64.tar.gz (下载seafile安装包)
tar -zvxf seafile-server_8.0.3_x86-64.tar.gz 解压
cd /chenfan/seafile-server-8.0.3/
./setup-seafile-mysql.sh 运行安装
启动服务
./seafile.sh start
./seahub.sh start (第一次启动时,会提供注册一个管理员账号)
我这里启动之后有个报错
./seahub.sh start-fastcgi 查看错误日志
有个组件没有安装
pip3 install captcha
安装失败
要先安装其他依赖
yum install python-devel zlib-devel libjpeg-turbo-devel
pip3 install captcha
在启动./seahub.sh start
浏览器输入10.228.83.5:8090
进入网页发现“Internal Server Error”的问题
说明没有完整安装依赖
yum install python3 python3-setuptools python3-pip -y
yum -y install sqlite
yum install python3-devel mysql-devel gcc gcc-c++ -y
pip3 install captcha
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha python3-ldap
pip3 install future mysqlclient sqlalchemy==1.4.3
再次尝试进入web端
设置一下上传,下载文件大小
vim /root/chenfan/conf/seafile.conf
[fileserver]
max_upload_size=0
max_download_dir_size=4096(之前改200太小了)注意数字后面不要加单位
完工
标签:pip3,centos,部署,captcha,yum,install,seafile,python3 来源: https://www.cnblogs.com/xfjs/p/16458316.html