点滴记忆---观雨亭
centos7 安装seafile专业版[转]
2019-5-29 eehello


转载自官方手册: 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


评论:
太仓招聘网
2020-05-30 10:53 回复
怎么现在不更新了的
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容