seafile服务器使用脚本搭建

1.安装步骤

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

     https://manual.seafile.com/deploy/using_mysql/

2.故障处理

 2.1 报错:Error:Seahub failed to start.

 排查: ./seahub.sh start-fastcgi可见 ModuleNotFoundError: No module named 'captcha'

解决方法:pip3 install captcha

执行 ./seahub.sh start-fastcgi 可见 ModuleNotFoundError: No module named 'MySQLdb'

        django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
        Did you install mysqlclient?

解决方法: pip3 install PyMySQL

    在seahub/thirdpart/django/db/backends/mysql/base.py 增加

 import pymysql
    pymysql.install_as_MySQLdb() 如图

执行 ./seahub.sh start-fastcgi 可见 Unknown command: 'runfcgi'

解决方法:./seahub.sh start成功

3.登录

 http://xxx.xxx.xxx.xxx

默认管理员: [email protected]

默认密码:ohNgox8e

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章