欢迎来到天天文库
浏览记录
ID:37713744
大小:336.00 KB
页数:17页
时间:2019-05-29
《seafile3.1.6局域网网盘安装》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Seafile服务器安装1设置Seafile开机启动。4备份恢复seafile系统8关闭/重启Seafile和Seahub10Seahub配置10seafile.conf配置13ccnet.conf配置14升级指南15本教程还适用于linuxseafile-server_3.1.7版Seafile服务器安装centos6.5x64最小化安装,之后安装LNMP1.1wget-chttp://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz&&tarzxflnmp1.1-full.tar.gz&&cdlnmp1.1-full&&./centos.sh输入mysql登
2、录密码回车然后选择是否用InnoDB引擎(注seafile软件要选y)下载seafile-server_3.1.6_x86-64.tar.gz到/home赋予root用户本地所有权限mysql-uroot-pEnterpassword:<输入密码>mysql>grantallprivilegeson*.*toroot@localhostidentifiedby'a1537';mysql>flushprivileges;mysql>quitrebootvisea#!/bin/bash#安装seafile环境yuminstallpython2.7python-setuptoolspython-s
3、implejsonpython-imagingMySQL-pythonmysql-server-y#按seafile网站推荐办法安装cd/homemkdir/home/haiwen mvseafile-server_*/home/haiwen cd/home/haiwen #将seafile-server_*移动到haiwen目录下后 tar-xzfseafile-server_* mkdir/home/haiwen/installed mvseafile-server_*/home/haiwen/installedcd/home/haiwen/seafile-server-*./setup
4、-seafile-mysql.sh:wq#保存退出#使脚本文件sea变为可执行文件chmod+xsea#执行脚本文件sea./sea看到如下提示就表示成功在服务器上成功安装了Seafile。Seafile服务器启动与配置1、执行以下命令修改Linux文件最大打开数:ulimit-n30000#启动Seafile服务:cd/home/haiwen/seafile-server-*./seafile.shstart#启动Seahub服务:./seahub.shstart2、第一次启动Seahub服务时会提示让你先创建一个管理员账号。如果忘记管理员账号或密码如何处理?你可以进入 seafile-s
5、erver 目录,运行 reset-admin.sh 脚本。这个脚本可以帮助你重置管理员账号和密码。3、创建完成后,你就可以打开:http://IP或者域名:8000,访问到你的Seafile页面了。4、Seafile默认的是以8000商品进行访问的,如果你不想使用这个端口,例如改成Web默认的80端口,可以先关闭进程:./seahub.shstop和./seafile.shstop。5、然后编辑/home/haiwen/ccnet/ccnet.conf这个文件,在SERVICE_URL后面修改端口即可。再次启动Seafile和Seahub服务,就可以使用自己定义的端口开始访问了。设置Sea
6、file开机启动。RHEL/CentOS下RHEL/CentOS下,/etc/rc.local脚本会随系统开机自动执行,所以我们在这个脚本中设置启动Seafile/Seahub.定位python(python2.6or2.7)whichpython2.6#or"whichpython2.7"在/etc/rc.local脚本中,将python2.6(2.7)路径加入到PATH字段中,并增加Seafile/Seahub启动命令vim/etc/rc.local #假设python2.6(2.7)可执行文件在/usr/local/bin目录下 PATH=$PATH:/usr/local/bin/
7、#请将user改为你的Linux用户名 user=root #请将script_path改为你的Seafile文件安装路径 seafile_dir=/home/haiwen script_path=${seafile_dir}/seafile-server-latest sudo-u${user}${script_path}/seafile.shstart>/tmp/seafile.init.log2>&
此文档下载收益归作者所有