Centos7.x部署SeaFile私有网盘

1.安装依赖环境
yum -y install wge gcc-c++ ..........

2.关闭Firewalld防火墙和SElinux
systemctl stop firewalld
systemct disable firewalld
cd /etc/selinux/config
把enable更改成disabled

3.安装epel、Nux Dextop

安装epel

rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

安装Nux Dextop

rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

4.安装mysql或mariadb
yum -y install mariadb mariadb-server
systemctl enable mariadb
systemctl start mariadb

5.进行mariadb初始化设置
mysql_secure_installation

根据内容自行更改设置

第一次运行密码为空,回车。

Enter current password for root (enter for none):

需要设置root密码,输入y后回车。

Set root password? [Y/n] y
接着输入两次新密码。

是否删除匿名用户,回车。

Remove anonymous users? [Y/n]

是否禁止root远程登录,回车。

Disallow root login remotely? [Y/n]

是否删除test数据库,回车。

Remove test database and access to it? [Y/n]

是否重新加载权限表,回车。

Reload privilege tables now? [Y/n]

6.登录数据库
mysql -uroot -p #能正常进入数据库说明已经部署成功

7.给数据库设置权限

允许任意ip使用root远程连接

create user ‘root‘@‘%‘ identified by ‘root远程登录的密码‘;

添加权限给该root

grant all privileges on . to ‘root‘@‘%‘ identified by ‘root远程登录的密码‘;

配置立即生效

flush privileges;

8.安装seafile依赖环境
yum install -y python-memcached
python-ldap
python-urllib3
python-imaging
MySQL-python
python-distribute
ffmpeg
ffmpeg-devel

9.下载源码包
wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.5_x86-64.tar.gz

10.解压源码包
tar -zxf seafile-server_6.2.5_x86-64.tar.gz -C 路径

11.进入已经解压的文件进行安装
cd seafile-server-*
./setup-seafile-mysql.sh

12.根据下面内容进行自行设置

显示给客户端的服务名,输入服务名后回车。

What is the name of the server? It will be displayed on the client.

  • 15 letters or digits
    [ server name ] OpsBakPE

输入ip或域名,由于内部使用直接ip,输入ip后回车。

What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server‘s ip or domain ] 192.168.16.203

使用默认,将数据文件放在/root/seafile-data下,回车。

Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/root/seafile-data" ]

使用默认的文件服务端口8082,回车。

Which port do you want to use for the seafile fileserver?
[ default "8082" ]

# 使用新的seahub数据库,输入1后回车。

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

由于刚才装了mariadb,使用默认本地,回车。

What is the host of mysql server?
[ default "localhost" ]

mariadb的默认端口就是3306,回车。

What is the port of mysql server?
[ default "3306" ]

使用默认的seafile作为seafile使用mariadb的用户,回车。

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

输入mariadb的用户seafile的密码,回车。

Enter the password for mysql user "seafile":
[ password for seafile ]

使用默认ccnet-db作为ccnet-server使用的数据库名,回车。

Enter the database name for ccnet-server:
[ default "ccnet-db" ]

使用默认seafile-db作为seafile-server使用的数据库名,回车。

Enter the database name for seafile-server:
[ default "seafile-db" ]

使用默认seahub-db作为seahub使用的数据库名,回车。

Enter the database name for seahub:
[ default "seahub-db" ]
等待片刻........提示安装成功

13.启动服务
./seafile.sh start

14.启动端口
./seafile.sh start 80 #没有设置端口默认是8000端口

15.访问
http://ip:80/ #如果没设置端口号就默认就行

16.登录账号密码

原文地址:https://www.cnblogs.com/lfl17718347843/p/12045250.html

时间: 2024-07-31 18:21:40

Centos7.x部署SeaFile私有网盘的相关文章

Docker部署Nextcloud私有网盘

对于国内某度的网盘限速行为大家有目共睹,不过对于商业化的产品模式这样也无可厚非,毕竟企业也是盈利为目的.如果想享受互联网技术带来的便利,刚好也懂一点技术的话可以尝试搭建属于私有的网盘.个人比较推荐的是开源免费的Nextcloud,Nextcloud是ownCloud原开发团队打造的号称是“下一代”存储,从目前使用情况来说也算是实至名归. 一.服务器的选择尽量选择国内大厂的云主机,对以后的维护更新非常重要,而且现在云主机的价格也不算贵,主要是对磁盘大小和带宽有要求,其他的配置根据实际情况量力而行.

在华为公有云服务器上搭建seafile个人网盘

最近买了一台华为ECS云服务器,系统为centos7 64位,1核心1G内存,40G硬盘,1M带宽,配置了云监控,报警和基本DDos防御. 虽然配置不高,拿来学习是可以的.但是我想充分利用上云服务器,所以想搭载一个个人网盘,保存个人资料. 开源而且免费的网盘,有seafile,服务器端有linux的. 网址为https://www.seafile.com/home/,我采用的是客户端和服务器端,不喜欢用挂载盘. 在官网里面有详细的搭载手册,指导一步一步进行搭载.网址为https://manual

搭建 Seafile 专属网盘

准备域名 任务时间:15min ~ 20min 域名注册 如果您还没有域名,可以在腾讯云上选购,过程可以参考下面的视频. 视频 - 在腾讯云上购买域名 域名解析 域名购买完成后, 需要将域名解析到实验云主机上,实验云主机的 IP 为: <您的 CVM IP 地址> 在腾讯云购买的域名,可以到控制台添加解析记录,过程可参考下面的视频: 视频 - 如何在腾讯云上解析域名 域名设置解析后需要过一段时间才会生效,通过 ping 命令检查域名是否生效 [?],如: ping www.yourdomain

树莓派搭建Seafile个人网盘

步骤一.安装Seafile依赖包 yum install python-setuptools python-ldap python-memcached MySQL-python mariadb mariadb-server 步骤二.安装pip和python库 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py pip install requests 步骤三.配置mariadb数据库 启动 maria

只需七步搞定--基于CentOS7搭建seafile个人网盘

第一步,安装依赖环境,mariadbyum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server -y 第二步,重启mariadb服务systemctl start mariadb.servicesystemctl enable mariadb.service 第三步,配置mariadb,设置数据库密码/usr/bin/mys

私有网盘nextcloud 12的问题处理及优化

问题1:如果你在管理界面看到如下提示 No memory cache has been configured. To enhance your performance please configure a memcache if available. 答:需要我们安装缓存了,如果你之前是按照我的部署方法部署的,只需要修改一个php文件即可,支持的缓存分为以下几种,我们默认安装的是第一种 APCu, APCu 4.0.6 and up required. A local cache for sys

hadoop分布式安装部署具体视频教程(网盘附配好环境的CentOS虚拟机文件/hadoop配置文件)

參考资源下载:http://pan.baidu.com/s/1ntwUij3视频安装教程:hadoop安装.flvVirtualBox虚拟机:hadoop.part1-part5.rarhadoop文件:hadoop-2.2.0.tar.gzhadoop配置文件:hadoop_conf.tar.gzhadoop学习教程:炼数成金-hadoop 虚拟机下载安装:VirtualBox-4.3.12-93733-Win.exehttp://dlc.sun.com.edgesuite.net/virtu

私有网盘nextcloud 12的使用介绍

参照我上篇博文搭建成功之后,我们直接登录体验一下. http://wzlinux.blog.51cto.com/8021085/1945314 登录成功之后进入首页如下: 我们可以在这里上传文件,也可以直接拖拽文件上传. 我看可以点击文件的分享按钮把文件分享给其他人. 把链接发给其他人,用浏览器打开即可看到分享的文件,可以直接下载.

Docker+Nextcloud快速部署个人网盘

各位大佬好,,,萌新顾北清又回来更新了,今天要快速部署一个人网盘. 有多快呢,,,5分钟吧,因为我们使用Docker部署. Docker基础可以看看我之前的博文.(点这里点这里) 那么,,,开始吧. 实验环境:小伙伴的阿里云服务器,安装的是Centos7的系统,要安装的网盘叫Nextcloud 下面开始安装 第一步 老规矩,先安装Docker环境. 命令如下: [[email protected] ~]# yum install -y docker Loaded plugins: fastest