zoukankan      html  css  js  c++  java
  • 云同步网盘-seafile

    云同步网盘-seafile

    环境

    docker-compose搭建seafile server

    • compose文件

      version: '2.0'
      services:
        db:
          image: mariadb:10.1
          container_name: seafile-mysql
          environment:
            - MYSQL_ROOT_PASSWORD=root  # Requested, set the root's password of MySQL service.
            - MYSQL_LOG_CONSOLE=true
          volumes:
            - /root/seafile/seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
          networks:
            - seafile-net
      
        memcached:
          image: memcached:1.5.6
          container_name: seafile-memcached
          entrypoint: memcached -m 256
          networks:
            - seafile-net
      
        seafile:
          image: seafileltd/seafile-mc:latest
          container_name: seafile
          ports:
            - "50501:80"
      #     - "443:443"  # If https is enabled, cancel the comment.
          volumes:
            - /root/seafile/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.
          environment:
            - DB_HOST=db
            - DB_ROOT_PASSWD=root  # Requested, the value shuold be root's password of MySQL service.
      #      - TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
            - SEAFILE_ADMIN_EMAIL=suveng@163.com # Specifies Seafile admin user, default is 'me@example.com'.
            - SEAFILE_ADMIN_PASSWORD=admin     # Specifies Seafile admin password, default is 'asecret'.
            - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
            - SEAFILE_SERVER_HOSTNAME=192.168.9.233:50501 # Specifies your host name if https is enabled.
          depends_on:
            - db
            - memcached
          networks:
            - seafile-net
      
      networks:
        seafile-net:
      
    • 启动

      #安装docker-compse
      yum install docker-compose -y
      
      #在compose文件所在的目录下
      docker-compose up -d 
      
    • 查看

      docker ps
      

      应该会看到namesseafile seafile-mysql seafile-memcached三个容器已经启动
      如果没有看到,那么可能检查一下配置文件,看看mysqldata的路径和seafile data的路径是否存在,如果不存在,可以先创建.

      提示: 建议找一个比较大的磁盘空的目录存放.毕竟是云盘.

    使用

    • 搭建一个seafile server
      这个已经在上面搭建好了,地址就是你搭建的那台内网服务器的 ip:50501, 如果你没改配置的话
    • 下载客户端使用
      值得称赞的是,这个seafile他拥有跨平台的客户端,而且使用也简单,但是注意我们现在使用的是免费版,如果需要专业版可以去购买.传送门
      • Mac
      • Linux
      • Windows
      • Android
      • iPad/iPhone
    • 在seafile server开通账号
      • 先使用管理员账号登录上去
        默认管理员账号在docker-compose.yml的配置文件上, SEAFILE_ADMIN_EMAIL=suveng@163.com,SEAFILE_ADMIN_PASSWORD=admin
        登录上去即可,当然你也可以在搭建的时候改掉配置.

      • 在系统管理添加账号

        • 可以用Excel导入
        • 可以手动添加
  • 相关阅读:
    纯awk传参和awk脚本传参
    【转】MySQL 备份和恢复(MyISAM 和 Innodb)
    【z】多线程Java Socket编程示例
    Java,Tomcat,Mysql乱码总结
    mysql备份与同步shell脚本
    【转】Velocity用户手册中文版(学习修改版)
    wml新学的标签
    【原】小心log4j的多进程写入
    【z】Webservice 的设计和模式
    【z】linux面试题参考答案
  • 原文地址:https://www.cnblogs.com/suveng/p/11525856.html
Copyright © 2011-2022 走看看