热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

centos7_Centos7.x部署SeaFile私有网盘

1.安装依赖环境yum-yinstallwgegcc-c++.2.关闭Firewalld防火墙和SElin

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安装MySql5.6
    如何在CentO ... [详细]
  • 一、设置时区方法一:使用setup工具setup选择Timezoneconfiguration选择AsiaShanghai空格键勾选上System ... [详细]
  • 1.ATP方式安装在ubuntu系统的apt软件仓库中,默认存在MySQL数据库,所以直接使用apt命令就可以安装。使用命令:aptapt-getin ... [详细]
  • centos7如何利用yum安装mysql 8.0.12
    这篇文章将为大家详细讲解有关centos7如何利用yum安装mysql8.0.12,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有 ... [详细]
  • 基于PgpoolII的PostgreSQL集群安装与配置教程
    本文介绍了基于PgpoolII的PostgreSQL集群的安装与配置教程。Pgpool-II是一个位于PostgreSQL服务器和PostgreSQL数据库客户端之间的中间件,提供了连接池、复制、负载均衡、缓存、看门狗、限制链接等功能,可以用于搭建高可用的PostgreSQL集群。文章详细介绍了通过yum安装Pgpool-II的步骤,并提供了相关的官方参考地址。 ... [详细]
  • Centos7搭建ELK(Elasticsearch、Logstash、Kibana)教程及注意事项
    本文介绍了在Centos7上搭建ELK(Elasticsearch、Logstash、Kibana)的详细步骤,包括下载安装包、安装Elasticsearch、创建用户、修改配置文件等。同时提供了使用华为镜像站下载安装包的方法,并强调了保证版本一致的重要性。 ... [详细]
  • Linux下安装免费杀毒软件ClamAV及使用方法
    本文介绍了在Linux系统下安装免费杀毒软件ClamAV的方法,并提供了使用该软件更新病毒库和进行病毒扫描的指令参数。同时还提供了官方安装文档和下载地址。 ... [详细]
  • 第四讲ApacheLAMP服务器基本配置Apache的编译安装从Apache的官方网站下载源码包:http:httpd.apache.orgdownload.cgi今 ... [详细]
  • 三、查看Linux版本查看系统版本信息的命令:lsb_release-a[root@localhost~]#lsb_release-aLSBVersion::co ... [详细]
  • centos6.8 下nginx1.10 安装 ... [详细]
  • MySQL/MariaDB/PerconaDB提权条件漏洞
    背景  2016年11月01日,国外安全研究员DawidGolunski在MyS ... [详细]
  • 本文是搭建的mariadb-10.0.17版本的下载地址:https:downloads.mariadb.orginterstitialmariadb-10.0.17sourcemariadb-10.0.17.tar.gzfromhtt ... [详细]
  • 搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的详细步骤
    本文详细介绍了搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的步骤,包括环境说明、相关软件下载的地址以及所需的插件下载地址。 ... [详细]
  • 本文介绍了Web学习历程记录中关于Tomcat的基本概念和配置。首先解释了Web静态Web资源和动态Web资源的概念,以及C/S架构和B/S架构的区别。然后介绍了常见的Web服务器,包括Weblogic、WebSphere和Tomcat。接着详细讲解了Tomcat的虚拟主机、web应用和虚拟路径映射的概念和配置过程。最后简要介绍了http协议的作用。本文内容详实,适合初学者了解Tomcat的基础知识。 ... [详细]
  • 本文介绍了在Linux下安装和配置Kafka的方法,包括安装JDK、下载和解压Kafka、配置Kafka的参数,以及配置Kafka的日志目录、服务器IP和日志存放路径等。同时还提供了单机配置部署的方法和zookeeper地址和端口的配置。通过实操成功的案例,帮助读者快速完成Kafka的安装和配置。 ... [详细]
author-avatar
全程解密_785
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有