搭建前准备工作

  1. vps或者云服务器,个人搭建使用建议腾讯云,公司搭建使用建议阿里云。

  2. 没有服务器的小伙伴可以下面链接进入看下,腾讯云的配置带宽会比阿里云的好点。

阿里云新人优惠服务器

腾讯云云上特惠

废话不说,开撸,,,


putty或者WinSCP 工具SSH 连接

命令:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
复制代码

安装宝塔后,安装mysql数据库,面板设置可把用户名,密码改成你自己好记得。

除了安装个mysql,其他都忽视不要管


以下严格按教程来,一步到位

1.环境
#安装seahub依赖
yum install python python-setuptools MySQL-python python-urllib3 python-ldap -y
复制代码

#安装office预览插件

sudo yum install libreoffice libreoffice-headless libreoffice-pyuno poppler-utils
复制代码

#安装字体文件

sudo yum install wqy-microhei-fonts wqy-zenhei-fonts wqy-unibit-fonts -y
复制代码

2.创建目录,上传pro包

#创建安装目录 mkdir /opt/seafile #切换安装目录 cd /opt/seafile/
[pro安装包链接](https://cloud.189.cn/t/muaeymZjMNZb)
我用的是winscp工具,把下面安装包放到/opt/seafile/目录下
#解压 tar -zxvf seafile-pro-server_7.0.19_x86-64.tar.gz 7.0.19这个根据你的包版本号自行修改对应

3.执行安装命令

/opt/seafile/seafile-pro-server-7.0.14/setup-seafile-mysql.sh 7.0.19这个根据你的包版本号自行修改对应

4.按照提示进行操作

Checking python on this machine ...
Checking python module: python-mysqldb ... Done. Checking for java ...Done. -----------------------------------------------------------------
This script will guide you to setup your seafile server using MySQL.
Make sure you have read seafile server manual at https://github.com/haiwen/seafile/wiki Press ENTER to continue 此处回车即可
-----------------------------------------------------------------
What is the name of the server? It will be displayed on the client.
3 - 15 letters or digits
[ server name ] 你的站点名称,随意填写
What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ] 你的域名或者本机IP
Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/opt/seafile/seafile-data" ] 默认回车
Which port do you want to use for the seafile fileserver?
[ default "8082" ] 默认回车
-------------------------------------------------------
Please choose a way to initialize seafile databases:
-------------------------------------------------------
[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases
[ 1 or 2 ] 1
What is the host of mysql server?
[ default "localhost" ] 默认回车
What is the port of mysql server?
[ default "3306" ] 默认回车
What is the password of the mysql root user?
[ root password ] 输入root密码
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 ] 设置数据库用户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: seafile
server ip/domain: 192.168.2.81 seafile data dir: /opt/seafile/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 /opt/seafile/ccnet.
Generating seafile configuration ... Done.
done
Generating seahub configuration ... ----------------------------------------
Now creating ccnet database tables ... ----------------------------------------
----------------------------------------
Now creating seafile database tables ... ----------------------------------------
----------------------------------------
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 | stop | restart } -----------------------------------------------------------------
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.
至此安装完成
复制代码

5.启动并配置管理员

  • 创建启动用户(不能已root用户启动,否则搜索不能用)
#创建用户
useradd --system --comment "seafile" seafile --create-home --home-dir /home/seafile
#修改目录权限
chown -R seafile.seafile /opt/seafile
复制代码
  • 启动服务
#切换seafile用户执行启动
sudo -u seafile /opt/seafile/seafile-server-latest/seafile.sh start
# 启动seahub,会提示让你创建管理员用户,安装提示创建
sudo -u seafile /opt/seafile/seafile-server-latest/seahub.sh start
复制代码
-----------------------------------------------------
6.  7.0以上版本,需修改ip文本才可正常访问
/opt/seafile/conf  目录下的:gunicorn.conf# default localhost:8000
bind = "127.0.0.1:8000"
127.0.0.1改成0.0.0.0:8000
复制代码
修改后重启下
/opt/seafile/seafile-server-latest/seafile.sh start 重启服务
/opt/seafile/seafile-server-latest/seahub.sh start 重启网站
复制代码

此教程适用于新手,唯一不足之处,没有反向代理,绑定域名。

ip端暴露,私人用还好

CentOS7下一键小白搭建seafile pro云盘的更多相关文章

  1. linux下使用URLOS搭建nextcloud私有云盘系统

    Nextcloud是一个免费专业的私有云存储网盘开源项目,可以让你简单快速地在个人/公司电脑.服务器甚至是树莓派等设备上架设一套属于自己或团队专属的云同步网盘,从而实现跨平台跨设备文件同步.共享.版本 ...

  2. centos7下git服务器端搭建

    git的安装: yum 源仓库里的 Git 版本更新不及时,最新版本的 Git 是 1.8.3.1,但是官方最新版本已经到了 2.9.2.想要安装最新版本的的 Git,只能下载源码进行安装. 1. 查 ...

  3. centos7下git服务器端搭建(转)

    git的安装: yum 源仓库里的 Git 版本更新不及时,最新版本的 Git 是 1.8.3.1,但是官方最新版本已经到了 2.9.2.想要安装最新版本的的 Git,只能下载源码进行安装. 1. 查 ...

  4. 【MIT6.828】centos7下使用Qemu搭建xv6运行环境

    title:[MIT6.828]centos7下使用Qemu搭建xv6运行环境 date: "2020-05-05" [MIT6.828]centos7下搭建xv6运行环境 1. ...

  5. 使用OwnCloud搭建自己的云盘

    使用OwnCloud搭建自己的云盘 1.用途 ownCloud是一款开源的私有云框架,可以通过它实现个人网盘的功能,ownCloud提供了各个平台的文件同步客户端,因此搭建好ownCloud之后即可使 ...

  6. Linux centos7 下 svn 服务器搭建

    摘自:https://www.cnblogs.com/mymelon/p/5483215.html 鉴于在搭建时,参考网上很多资料,网上资料在有用的同时,也坑了很多人 本文的目的,也就是想让后继之人在 ...

  7. 使用NextCloud搭建私有网络云盘并支持Office文档在线预览编辑以及文件同步

    转载自:https://www.bilibili.com/read/cv16835328?spm_id_from=333.999.0.0 0x00 前言简述 描述:由于个人家里的NAS以及公司团队对私 ...

  8. Seafile内部云盘

    软件列表 软件 版本 备注 centos 6.4 x86_64 64位系统 mysql mysql5.5.49 本机使用 python 2.7 seafile 依赖python pip 8.1.2 安 ...

  9. 百度云网速慢?普通VIP也限速?用户激励措施太套路?Pandownload被举报?这些统统没关系,我们自己搭建一个私人云盘服务器

    前言 前几天醒来后,照例耍手机看新闻.在疫情如此严重的档口,一则小小的新闻引起了我内心小小的波动:Pandownload作者被举报了....心里第一件事就是可惜了我盘上的那N多个T的小电影了,&quo ...

随机推荐

  1. P2783 有机化学之神偶尔也会作弊 题解

    题面 前言 这道题以前还是道(水)黑题,现在怎么降紫了???? 前置芝士 tarjain 缩点 倍增求LCA或树剖求LCA 脑子... 题意 给你一个无向图,要求你把所有的环缩成一个点.在新得到的图上 ...

  2. devops工具链概述

    1. devops工具链概述  1)devops工具篇 2) 持续集成 3) 持续交付 4) 持续部署 2. devops工具链概述

  3. 前端传递的json格式与SpringMVC接收实体类的对应关系

    这篇文章主要是帮助刚刚入行的猿猿尽快适应Restful风格的搬砖生活 @RequestBody注解 基本介绍:@RequestBody主要用来接收前端传递给后端的json字符串中的数据的(请求体中的数 ...

  4. Fullscreen API与DOM监听API

    前言 以下几个API,在web开发中可以简化我们一部分交互操作. Fullscreen API 有时候我们想要全屏预览的效果,比如类似于图片预览.幻灯片播放等.全屏API是一个很好的选择. 基本用法 ...

  5. java基础小程序—万年历

    package day02.xiangmu.wannianli; import java.util.Scanner; public class CalendarTest { public static ...

  6. 串口wifi

    串口wifi 串口WiFi ZLAN7146是一款wifi转串口的wifi串口服务器.该串口服务器可以方便地使得串口设备连接到WIFI无线网络,实现串口设备的无线化网络升级.RS232接口支持全双工. ...

  7. git-submodule子模块的添加、使用和删除

    目录 添加 使用 更新 删除 hugo添加主题的时候 命令如下: git submodule add https://github.com/samrobbins85/hugo-developer-po ...

  8. Flink on Yarn三部曲之一:准备工作

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java.Docker.Kubernetes.DevOPS ...

  9. 某次burp抓包出错的解决办法

    前些日子同事发微信问我一个问题 没听懂他说的没回显是啥意思,于是叫他把站发给我. 浏览器不挂burp代理能正常打开,挂上burp代理以后浏览器显示连接超时 首先测试burp能抓其他的包应不是这个原因 ...

  10. linux mkfifo命令基本用法

    首先了解linux命令执行顺序 通常情况下,终端只能执行一条命令,然后按下回车,那么执行多条命令呢 顺序执行多条命令,可以用分号; cmd1;cmd2;cmd3 条件执行多条命令,使用&&am ...