linux 搭建seafile

linux 搭建seafile

环境 centos7

官方文档

http://manual-cn.seafile.com/deploy/using_mysql.html

搭建seafile 服务端

1下载 mysql Yum Repository

https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm

2 安装MySQL 数据库

yum -y install mysql-server mysql-client   mysql-libs

3 配置seafile 所需的包文件和环境

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 规划seafile 安装目录, 用户 组

备注: companyName 为公司名称

    cd /data
    mkdir  /data/{companyName}
     
    
    groupadd seafile
    useradd -g seafile  seafile

5 下载seafile压缩包。

cd /data/{companyName}
 
wget  http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.3_x86-64.tar.gz

6 规划数据库用户

① 登陆数据库
        mysql -uroot 
② 修改数据库用户root 密码
        mysqladmin  -uroot password 'password'
        
③ 授权
        grant all privileges on *.* to 'seafile'@'%' identified by 'seafile'

7 安装seafile

进入解压目录 指定mysql 数据库安装
 执行脚本: ./setup-seafile-mysql.sh

8 启动seafile

①  执行脚本 ./seafile.sh
②  执行脚本  ./seahub.sh

9 访问

http://ip:8000

备注

本文档采用了mysql 数据库的安装方式,其他安装方式请参考官方文档。

你可能感兴趣的:(linux 搭建seafile)