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.登录账号密码
Centos7.x部署SeaFile私有网盘的更多相关文章
- seafile私有网盘搭建
各种公有网盘确实很方便,但总有些特殊情况不是? 闲来无聊准备自己搭建一个私有网盘,也让自己的闲置的服务器好好利用一下 搜索一番,找到了专业户seafile 一顿操作,踩了无数大坑,特此总结一下 1.c ...
- Docker部署Nextcloud私有网盘
对于国内某度的网盘限速行为大家有目共睹,不过对于商业化的产品模式这样也无可厚非,毕竟企业也是盈利为目的.如果想享受互联网技术带来的便利,刚好也懂一点技术的话可以尝试搭建属于私有的网盘.个人比较推荐的是 ...
- [原创] debian 9.3 搭建seafile企业私有网盘
[原创] debian 9.3 搭建seafile企业私有网盘 需求是这样的, 个人疲惫于 "成为大伙的文件中转站" ,公司不管大大小小的文件,都要打电话过来“转个xx文件”.“帮 ...
- ubuntu服务器 安装 seafile 个人网盘
目录 ubuntu服务器 安装 seafile 个人网盘 一.实验环境: 二.实验流程介绍 三.网盘搭建 1.安装依赖环境 2.安装seafile 三.配置QQ域名邮箱 四.配置seafile邮件服务 ...
- 搭建LAMP环境部署Nextcloud私人网盘
搭建 LAMP 环境部署 Nextcloud 私人网盘 前言 Nextcloudd 是一个开源的.基于本地的文件共享和协作平台,它允许您保存文件并通过多个设备(如PC.智能手机和平板电脑)访问它们. ...
- Centos7下安装Seafile实现私有网盘
Seafile是一个开源.专业.可靠的云存储平台:解决文件集中存储.共享和跨平台访问等问题,由北京海文互知网络有限公司开发,发布于2012年10月:除了一般网盘所提供的云存储以及共享功能外,Seafi ...
- 基于CentOS 搭建 Seafile 专属网盘
系统要求:CentOS 7.2 64 位操作系统 安装 Seafile 安装依赖环境 使用 yum 安装 Python 及 MySQL: yum install python python-setup ...
- 基于Ubuntu搭建Seafile专属网盘
系统要求: Ubuntu 16.04.1 LTS 64 位操作系统 安装 Seafile 服务器 安装依赖环境 在 Debian/Ubuntu 系统下,可以使用以下命令安装 MySQL: sudo a ...
- 树莓派搭建Seafile个人网盘
步骤一.安装Seafile依赖包 yum install python-setuptools python-ldap python-memcached MySQL-python mariadb mar ...
随机推荐
- python numpy学习
以下代码来源于本博文作者观看大神视频并纯手敲. 目录 numpy的属性 创建array numpy的运算1 随机数生成以及矩阵的运算2 numpy的索引 array合并 array分割 numpy的浅 ...
- P1046 陶陶摘苹果
题目描述 陶陶家的院子里有一棵苹果树,每到秋天树上就会结出1010个苹果.苹果成熟的时候,陶陶就会跑去摘苹果.陶陶有个3030厘米高的板凳,当她不能直接用手摘到苹果的时候,就会踩到板凳上再试试. 现在 ...
- 详解在Linux系统中安装Tomcat
本文以在CentOS 7.6中安装Tomcat8.5为例进行安装,其他系统和版本都是大同小异的. 安装JDK 安装Tomcat之前,需要先安装JDK,可以参看之前的文章详解在Linux系统中安装JDK ...
- Django杂录
Django杂录 因为是概括性的讲解,每一个方面没有具体到点,所以这篇是杂录 HHTP协议 超文本传输协议 四大特性 基于TCP/IP之上作用于应用层 基于socket请求响应 无状态 无连接 数据格 ...
- 如何重置IE浏览器
1.退出所有程序,包括 Internet Explorer.单击“开始”.在“开始搜索”框中键入 inetcpl.cpl 命令,然后按回车键打开“Inetnet 选项”对话框. 2.单击“高级”选项卡 ...
- Linux机器相互登录
1周第4次课(3月22日)课程内容: 1.16 Linux机器相互登录 Linux相互登录可以分2种方式,一种为ssh +IP地址,然后输入对应的root密码,一种为密钥验证方式,其中一台机器放公钥, ...
- linux虚拟机中FTP匿名访问模式介绍与配置
FTP分3种访问模式,分别是:匿名访问模式,本地用户模式及虚拟用户模式 匿名访问是一种最不安全的验证模式,任何人都可以无需密码验证就登陆到FTP服务端主机,这 种模式一般只用来保存不重要的公开文件,尤 ...
- mysql主从架构搭建
1.配置文件,开启二进制日志 vim /etc/my.cnf 在mysql下增加如下内容 server-id= log-bin=mysql-bin relay-log=mysql-relay 2.登录 ...
- PHP数组总汇
数组,顾名思义,本质上就是一系列数据的组合.在这个组合中,每个数据都是独立的,可以对每个单独的数据进行分配和读取.PHP对数据的操作能力非常强大,尤其是PHP为程序开发人员提供了大量方便.易懂的数组操 ...
- Docker 02 - 向 Docker 的 Tomcat 镜像中部署 Web 应用
目录 1 下载 Docker 镜像 2 部署Web项目 2.1 通过Dockerfile自定义项目镜像 2.2 启动自定义镜像, 生成一个容器 2.3 另一种启动方式: 交互式启动 3 (附) 向镜像 ...