首先去官网自己下载传到服务器服务器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
文章 Google 广告 2
3,在centos7中,/etc/rc.d/rc.local的权限被降低了,所以需要执行如下命令赋予其可执行权限 chmod +x /etc/rc.d/rc.local

仔细拜读,充实自己,感激。
博客不少,这里独好!
丁酉年(鸡)八月廿五 2017-10-14