Seafile 开源企业云盘部署

目录

部署

下载安装包

安装pip

安装其他依赖

安装

启动

重新部署


 

官网:https://www.seafile.com/home/

文档:https://manual-cn.seafile.com/

源码:https://github.com/haiwen/seafile-docs-cn

 

部署

下载安装包

https://www.seafile.com/download/

linux服务器端6.3.4 64bit

 

安装pip

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python get-pip.py

 

安装其他依赖

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

 

安装

拷贝包seafile-server_6.3.4_x86-64.tar.gz到目录后

tar -xzf seafile-server_*

cd seafile-server-*

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

该脚本会依次询问你一些问题,从而一步步引导你配置 Seafile 的各项参数:

参数

作用

说明

seafile server name

seafile 服务器的名字,目前该配置已经不再使用

3 ~ 15 个字符,可以用英文字母,数字,下划线

seafile server ip or domain

seafile 服务器的 IP 地址或者域名

客户端将通过这个 IP 或者地址来访问你的 Seafile 服务

seafile data dir

seafile 数据存放的目录,用上面的例子,默认将是 /data/haiwen/seafile-data

seafile 数据将随着使用而逐渐增加,请把它放在一个有足够大空闲空间的分区上

seafile fileserver port

seafile fileserver 使用的 TCP 端口

该端口用于文件同步,请使用默认的 8082,不能更改。

在这里, 你会被要求选择一种创建 Seafile 数据库的方式:

------------------------------------------------------- Please choose a way to initialize seafile databases: ------------------------------------------------------- [1] Create new ccnet/seafile/seahub databases [2] Use existing ccnet/seafile/seahub databases

  • 如果选择1, 你需要提供根密码. 脚本程序会创建数据库和用户。
  • 如果选择2, ccnet/seafile/seahub 数据库应该已经被你(或者其他人)提前创建。

 

选择1,依次配置

What is the host of mysql server?

[ default "localhost" ] 10.1.69.91

 

From which hosts could the mysql account be used?

[ default "%" ]

 

What is the port of mysql server?

[ default "3306" ]

 

What is the password of the mysql root user?

[ root password ]

 

verifying password of user root ... done

 

Enter the name for mysql user of seafile. It would be created if not exists.

[ default "seafile" ]

 

Enter the password for mysql user "seafile":

[ password for seafile ]

 

Enter the database name for ccnet-server:

[ default "ccnet-db" ]

 

Enter the database name for seafile-server:

[ default "seafile-db" ]

 

Enter the database name for seahub:

[ default "seahub-db" ]

 

配置确认

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

This is your configuration

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

 

server name: xxxx

server ip/domain: 192.168.91.150

 

seafile data dir: /root/seafile-data

fileserver port: 8082

 

database: create new

ccnet database: ccnet-db

seafile database: seafile-db

seahub database: seahub-db

database user: seafile

 

 

 

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

Press ENTER to continue, or Ctrl-C to abort

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

 

此时点回车继续

 

Generating ccnet configuration ...

 

done

Successly create configuration dir /root/ccnet.

Generating seafile configuration ...

 

Done.

done

Generating seahub configuration ...

 

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

Now creating seahub database tables ...

 

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

 

creating seafile-server-latest symbolic link ... done

 

 

 

 

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

Your seafile server configuration has been finished successfully.

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

 

run seafile server: ./seafile.sh { start | stop | restart }

run seahub server: ./seahub.sh { start <port> | stop | restart <port> }

 

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

If you are behind a firewall, remember to allow input/output of these tcp ports:

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

 

port of seafile fileserver: 8082

port of seahub: 8000

 

When problems occur, Refer to

 

https://github.com/haiwen/seafile/wiki

 

for information.

 

此时安装已成功

 

启动

 

在 seafile-server-1.8.2 目录下,运行如下命令

  • 启动 Seafile:

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

  • 启动 Seahub

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

小贴士: 你第一次启动 seahub 时,seahub.sh 脚本会提示你创建一个 seafile 管理员帐号。

服务启动后, 打开浏览器并输入以下地址

http://192.168.1.111:8000/

你会被重定向到登陆页面. 输入管理员用户名和密码即可。

恭喜! 现在你已经成功的安装了 Seafile 服务器.

 

重新部署

重新部署需要删除外部创建的目录

rm -rf ccnet/ conf/ logs/ pids/ seafile-data/ seafile-server-latest seahub-data/

删掉mysql新增seafile用户及如下三个数据库

ccnet database: ccnet-db

seafile database: seafile-db

seahub database: seahub-db

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/416885.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

前端学习(2387):组件库使用说明

main.js import Vue from vue import App from ./App.vue import router from ./router import ./styles/index.less // 加载组件库 import ElementUI from element-ui // 加载样式 import element-ui/lib/theme-chalk/index.css Vue.config.productionTip false // 注册组件…

深度理解 Virtual DOM

目录&#xff1a; 1 前言 2 技术发展史 3 Virtual DOM 算法 4 Virtual DOM 实现 5 Virtual DOM 树的差异&#xff08;Diff算法&#xff09; 6 结语 7 参考链接 1 前言 我会尽量把 Virtual DOM 应用场景、实现思路、算法讲述清楚&#xff0c;希望大家阅读后&#xff0c;能让你 深…

前端学习(2388):封装请求模块

request.js // axios import axios from axios// 创建实例 通过实例发送请求 const request axios.create({// 请求的基本路径baseURL: http://ttapi.research.itcast.cn/ }) // 导出 export default request//请求拦截器//响应烂机器/* import request from request.js requ…

JdbcTemplate操作

获取单值 int count jdbcTemplate.queryForObject("select count(*) from tb1",Integer.class); 执行插入操作获取自增长ID public Emp create(final Emp emp){final String sql "insert into Emp (age,name)values(?,?)";KeyHolder keyHolder new …

oracle_数据库对象

转载于:https://www.cnblogs.com/jycjy/p/6728649.html

SpringBoot Redis分布式锁

maven依赖 <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency><groupId>org.projectlombok</groupId><artifactId>…

require与include的区别

引用文件的方法有两种&#xff1a;require 及 include。两种方式提供不同的使用弹性。require 的使用方法如 require("MyRequireFile.php"); 。这个函数通常放在 PHP 程序的最前面&#xff0c;PHP 程序在执行前&#xff0c;就会先读入 require 所指定引入的文件&…

java实现map和object互转

maven依赖 <dependency><groupId>commons-beanutils</groupId><artifactId>commons-beanutils</artifactId><version>1.9.3</version> </dependency> 工具类 /*** 对象工具类* 王洪岐 20190726*/ public class ObjectUtil …

分享自己作为一个程序员的找工作经历

我叫杨磊&#xff0c;从2016年5月开始学了关于软件开发的道路上&#xff0c;我是报一颗火热的心。在学习中&#xff0c;不说是最好的&#xff0c;但我觉得自己一定是很积极的去学习。 从学了之后的&#xff0c;放假时间&#xff0c;我大多时间都是用在码代码&#xff0c;不断的…

mybatisplus坑 insert标签insert into select无参数问题

实际项目中发现 <insert id"xxx"> insert into xxxx select xxxx </insert> 会报错 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: …

前端学习(2392):关于路径中的@

import Vue from vue import VueRouter from vue-router // 表示src路径的别名 好处就是它不受当前文件路径影响 import Login from /views/login/index Vue.use(VueRouter)// 路由配置表 const routes [{path: /login,name: login,component: Login }] const router new Vue…

Java调用ElasticSearch 7.2.1 保存、统计、多字段分组聚合

目录 maven引用 配置 配置类 保存数据方法 参照官方的引用方式会报错 分组统计 查询后再统计 多字段分组聚合 maven引用 注意版本与es版本一致 <dependency><groupId>org.elasticsearch.client</groupId><artifactId>elasticsearch-rest-high-…

cocos2d-x 2.2 创建项目

楼主用的是2.2版本号 曾经的版本号是要在vs中加入模版 建立项目 但新版本号更新后使用python建立项目 最好是python2.7以上 找到create_project.py文件所在路径 tools/project-creator/.. 打开cmd.exe 输入 cd /d D:cocosdx/....... 后面为create_project.py所在的路径…

Postgresql时间处理

目录 时间/日期操作符 日期/时间函数 EXTRACT函数 综合示例 时间/日期操作符 操作符例子结果date 2011-09-28 integer 7date 2011-10-05date 2011-09-18 interval 1 hourtimestamp 2011-09-18 01:00date 2011-09-18 time 02:00timestamp 2011-09-18 02:00interval 1 day…

jmap报错unknown CollectedHeap type : class sun.jvm.hotspot.gc_interface.CollectedHeap

jmap报错 [roothost-10-0-197-189 service]# jmap -heap 12139 Attaching to process ID 12139, please wait... Debugger attached successfully. Server compiler detected. JVM version is 25.191-b12using thread-local object allocation. Parallel GC with 8 thread(s)H…

topcoder SRM712 Div1 LR

题目&#xff1a; Problem Statement We have a cyclic array A of length n. For each valid i, element i-1 the left neighbor of element i. Additionally, element n-1 is the left neighbor of element 0. You are given two vector<long long>s s and t, each…

Spring Boot Quartz应用

目录 简单用法 配置cronSchedule的写法 简单用法 直接EnableScheduling后&#xff0c;方法上加上Scheduled(cron "0 */1 * * * * ")就行了。 此种方式需要写死时间、写死实现&#xff0c;生产环境不方便配置控制。 EnableScheduling SpringBootApplication publi…

2491 玉蟾宫

2491 玉蟾宫 时间限制: 1 s 空间限制: 64000 KB 题目等级 : 大师 Master 题目描述 Description有一天&#xff0c;小猫rainbow和freda来到了湘西张家界的天门山玉蟾宫&#xff0c;玉蟾宫宫主蓝兔盛情地款待了它们&#xff0c;并赐予它们一片土地。 这片土地被分成N*M个格子&am…