部署 Seafile 服务器

Auth:默偌克       Date:2017/10/14       Cat:学无止境       Word:共1037字       Views:1

2017/10/14   👁️ 浏览:1   💬 2条评论

首先去官网自己下载传到服务器服务器home文件夹下;执行解压命令:tar -zcvf seafile-server-*.tar.gz

1、安装环境

yum install mariadb-server yum -y install epel-release rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro yum install python-setuptools python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel pip install pillow moviepy

 

2,安装程序

cd seafile-server-* ./setup-seafile-mysql.sh

3、启动 Seafile、Seahub ./seafile.sh start ./seahub.sh start

 

4、设置开机启动Seafile

1,赋予脚本可执行权限(/opt/script/autostart.sh是你的脚本路径) chmod +x /home/yundisk/seafile-pro-server-6.1.9/seafile.sh chmod +x /home/yundisk/seafile-pro-server-6.1.9/seahub.sh

 

2,打开/etc/rc.d/rc.local文件,在末尾增加如下内容

 

# 假设 python 2.6(2.7) 可执行文件在 /usr/local/bin 目录下 PATH=$PATH:/usr/bin/python2.7

# 请将 user 改为你的Linux用户名 user=root

# 请将 script_path 改为你的 Seafile 文件安装路径 seafile_dir=/home/yundisk script_path=/home/yundisk/seafile-server-latest

sudo -u ${user} ${script_path}/seafile.sh start > /tmp/seafile.init.log 2>&1 sudo -u ${user} ${script_path}/seahub.sh start > /tmp/seahub.init.log 2>&1

 

3,在centos7中,/etc/rc.d/rc.local的权限被降低了,所以需要执行如下命令赋予其可执行权限 chmod +x /etc/rc.d/rc.local

作者: 简介:

链接:https://www.7ss.cn/174.html

声明:本站禁止任何形式的文章转载。

赞助:若你觉得本文对你有启发,非常欢迎你成为我的 Sponsor ,感恩遇见

《部署 Seafile 服务器》留言数:2

  1. 营销软件下载

    博客不少,这里独好!

    丁酉年(鸡)八月廿五 2017-10-14

    2楼 回复

发表留言