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 数据库的安装方式,其他安装方式请参考官方文档。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值