当前位置: 首页 > Linux

Centos7安装seafile企业共享网盘

时间:2023-04-06 11:34:36 Linux

安装环境yum-yinstallepel-releaseyum-yinstallpython-imagingMySQL-pythonpython-memcachedpython-ldappython-urllib3ffmpegffmpeg-develpipinstallpillowmoviepy最后一条命令可能有错:执行以下命令同时安装,可能有:pip版本问题执行:pipinstall--upgradepipyuminstallpython3-pippip3installpillowmoviepy下载seafileservier包http://seafile-downloads.oss-...注意:安装Seafile在运行服务器之前,请确认已经安装了以下软件:Seafile7.0.xversion#onUbuntu16.04apt-getupdateapt-getinstallpython2.7python-setuptoolspython-mysqldbpython-urllib3python-ldap-y#在CentOS7yum安装pythonpython-setuptoolsMySQL-pythonpython-urllib3python-ldap-ySeafile7.1.xversion#在Debian10/Ubuntu18.04apt-getupdateapt-getinstallpython3python3-setuptoolspython3-pippython3-ldap-ypip3安装--timeout=3600Pillowpylibmccaptchajinja2sqlalchemypsd-tools\django-pylibmcdjango-simple-captcha#在CentOS8yum安装python3python3-setuptoolspython3-pippython3-ldap-ypip3install--timeout=3600Pillowpylibmccaptchajinja2sqlalchemypsd-tools\django-pylibmcdjango-simple-captcha配置seafilesetup-seafile-mysql.sh执行脚本之前,必须确保你的localhost下安装了mysql(我安装的是宝塔Linux,是非常容易使用)注册的电子邮件地址是管理员帐户。安装后启动和关闭:./setup-seafile-mysql.shstop/start[root@xxxx-dzz-20seafile-server-7.0.4]#./setup-seafile-mysql.shCheckingpythononthismachine。..检查python模块:python-mysqldb...完成。----------------------------------------------------------------此脚本将指导您使用MySQL设置您的Seafile服务器。请确保您已阅读https://github.com/haiwen/seafile/wikiPress上的Seafile服务器手册ENTER继续----------------------------------------------------------------服务器的名称是什么?客户端3-15位字母或数字[服务器名]seafile服务器的ip或域名是多少?例如:www.mycompany.com,192.168.1.101[本服务器的ip或域名]192.168.20.14你要p到哪里utyourseafiledata?Pleaseuseavolumewithenoughfreespace[default"/home/seafile/seafile-data"]你想为seafilefileserver使用哪个端口?[default"8082"]-------------------------------请选择一种初始化Seafile数据库的方法:----------------------------------------------------[1]新建ccnet/seafile/seahub数据库[2]使用现有的ccnet/seafile/seahub数据库[1或2]1mysql服务器的主机是什么?[默认"localhost"]mysql服务器的端口是什么?[default"3306"]mysqlroot用户的密码是什么?[rootpassword]验证用户root的密码...doneEntermysqluserofseafile的名称。如果不存在,将被创建。[default"seafile"]输入mysql用户"seafile"的密码:[seafile的密码]输入ccnet-server的数据库名称:[default"ccnet-db"]输入数据库名称对于seafile-server:[default"seafile-db"]Enterseahub的数据库名称:[default"seahub-db"]----------------------------------这是您的配置---------------------------------服务器名称:seafile服务器ip/域:192.168.20.14seafile数据目录:/home/seafile/seafile-datafileserverport:8082database:createnewccnetdatabase:ccnet-dbseafiledatabase:seafile-dbseahubdatabase:seahub-dbdatabaseuser:seafile----------------------------------按ENTER继续,或Ctrl-C中止--------------------------------Generatingccnetconfiguration...doneSuccesslycreateconfigurationdir/home/seafile/ccnet.Generatingseafileconfiguration...Done.doneGeneratingseahubconfiguration...---------------------------------------现在创建ccnet数据库表......-------------------------------------------------------------------------现在正在创建seafile数据库ase表...------------------------------------------------------------------------------现在正在创建seahub数据库表......----------------------------------------创建seafile-server-latest符号链接...完成----------------------------------------------------------------您的Seafile服务器配置已成功完成。---------------------------------------------------------------运行seafile服务器:./seafile.sh{start|停止|重启}运行seahub服务器:./seahub.sh{start|停止|restart}seafilefileserver的端口:8082seahub的端口:80008000端口默认监听地址127.0.0.1,也就是说不能直接通过8000端口访问Seafile服务,根据官方文档搭建nginx或者修改如下配置/$home/seafile/conf/gunicorn.conf安装后启动和关闭的文件:./seafile.shstop/start[root@xxxx-dzz-20seafile-server-7.0.4]#vim../conf/gunicorn.conf[root@xxxx-dzz-20seafile-server-7.0.4]#./seafile.shstart[04/03/2015:08:18]../common/session.c(132):使用config文件/home/seafile/conf/ccnet.confStartingseafileserver,pleasewait...**Message:seafile-controller.c(718):Noseafevents.SeafileserverstartedDone.[root@xxxx-dzz-20seafile-server-7.0.4]#./seahub.shstartLC_ALL没有在ENV中设置,设置为en_US.UTF-8Startingseahubatport8000...--------------------------------------这是第一次启动seafile服务器。现在让我们创建管理员帐户----------------------------------------电子邮件是什么admin帐号?[adminemail]ltx@xxxx.comadmin帐号的密码是多少?[adminpassword]再次输入密码:[adminpasswordagain]--------------------------------------成功创建seafileadmin--------------------------------------Seahub启动完成。[root@xxxx-dzz-20seafile-server-7.0.4]#netstat-tnlp|grep80ActiveInternet连接(仅服务器)ProtoRecv-QSend-QLocalAddressForeignAddressStatePID/程序名称tcp000.0.0.0:800.0.0.0:*LISTEN4630/nginx:mastertcp000.0.0.0:80820.0.0.0:*LISTEN17392/seaf-servertcp000.0.0.0:80000.0.0.0:*LISTEN21953/python2.7测试安装客户端https://www.seafile.com/downl...