Categories: 学无止境

部署 Seafile 服务器

首先去官网自己下载传到服务器服务器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

默偌克

View Comments

Share
Published by
默偌克

Recent Posts

在HTML中放大Unicode图标

在HTML中放大Unicode…

4 days ago

服务器更换系统,博客更换主题

这段时间快过年了,由于工作有所…

5 days ago

通过本地下载解决Docker镜像慢的问题

最近在NAS上装了个Docke…

6 days ago

RockyLinux 10默认集成Web console管理功能

RockyLinux安装都是很…

1 month ago

永久修改Anolis的网卡IP地址

登入root后 1.先输入 i…

2 months ago