centos7 安装seafile专业版[转]
首页 > IT > CentOS   作者:eehello  2019年5月29日 21:02 星期三  浏览:6421  字号:   评论:1 条
时间:2019-5-29 21:02   浏览:6421  评论:1 条 


转载自官方手册: https://manual-cn.seafile.com/deploy_pro/download_and_setup_seafile_professional_server.html


centos7 安装seafile专业版


如未做说明,所有命令默认root账户下输入

1、专业版前置依赖

#wget https://bootstrap.pypa.io/get-pip.py

#python get-pip.py

#yum install java-1.7.0-openjdk poppler-utils python-setuptools python-imaging MySQL-python mariadb-server python-memcached python-ldap python-urllib3


#pip install boto requests


2、上传安装包、解压

#mkdir haiwen

#mv seafile-server_* haiwen

#cd haiwen

***将 seafile-server_* 移动到 haiwen 目录下后***

#tar -xzf seafile-server_*

#mkdir installed

#mv seafile-server_* installed


3、社区版依赖

#yum -y install epel-release

#rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro

#yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel

#pip install pillow moviepy


4、安装

#cd seafile-server-*

#./setup-seafile-mysql.sh  #运行安装脚本并回答预设问题



5、启动

启动 Seafile:

./seafile.sh start # 启动 Seafile 服务

启动 Seahub

./seahub.sh start <port>  # 启动 Seahub 网站 (默认运行在8000端口上)



6、设置自启动

------------------------------------------------------------------

#vim /etc/systemd/system/seafile.service


[Unit]

Description=Seafile

# add mysql.service or postgresql.service depending on your database to the line below

After=mariadb.service


[Service]

Type=oneshot

ExecStart=/home/haiwen/seafile-server-latest/seafile.sh start

ExecStop=/home/haiwen/seafile-server-latest/seafile.sh stop

RemainAfterExit=yes



[Install]

WantedBy=multi-user.target


------------------------------------------------------

#vim /etc/systemd/system/seahub.service


[Unit]

Description=Seafile hub

After=mariadb.service seafile.service


[Service]

# change start to start-fastcgi if you want to run fastcgi

ExecStart=/home/haiwen/seafile-server-latest/seahub.sh start

ExecStop=/home/haiwen/seafile-server-latest/seahub.sh stop

Type=oneshot

RemainAfterExit=yes


[Install]

WantedBy=multi-user.target


-------------------------------------------------------

systemctl enable seafile.service

systemctl enable seahub.service

systemctl daemon-reload


 您阅读这篇文章共花了: 
 本文没有标签!
二维码加载中...
本文作者:eehello      文章标题: centos7 安装seafile专业版[转]
本文地址:https://www.eehello.com/?post=250
版权声明:若无注明,本文皆为“点滴记忆---观雨亭”原创,转载请保留文章出处。
太仓招聘网2020-05-30 10:53
怎么现在不更新了的

返回顶部| 首页| 手气不错| 留言板|后花园

Copyright © 2014-2023 点滴记忆---观雨亭