首先使用YUM安装依赖环境:

[root@sishen ~]#yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server

启动MySQL并设置其开机启动:

[root@sishen ~]# systemctl start mariadb

[root@sishen ~]# systemctl enable mariadb

MySQL安全初始化

[root@sishen ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current

password for the root user.  If you've just installed MariaDB, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.

Enter current password for root (enter for none):

OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB

root user without the proper authorisation.

You already have a root password set, so you can safely answer 'n'.

Change the root password? [Y/n] y       #注意这里我是第二次初始化了,所以跟初次安装时的提示不一样,如果是初次安装,直接回车即可,这一步除了设置mysql的root密码之外,其他选项可以直接回车,也可以依据个人需要进行设置。

New password:

Re-enter new password:

Password updated successfully!

Reloading privilege tables..
  ... Success!

By default, a MariaDB installation has an anonymous user, allowing anyone

to log into MariaDB without having to have a user account created for

them.  This is intended only for testing, and to make the installation

go a bit smoother.  You should remove them before moving into a

production environment.

Remove anonymous users? [Y/n]
  ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]
  ... Success!

By default, MariaDB comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.

Remove test database and access to it? [Y/n]
  - Dropping test database...
  ... Success!
  - Removing privileges on test database...
  ... Success!

Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.

Reload privilege tables now? [Y/n]
  ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB

installation should now be secure.

Thanks for using MariaDB!

下载seafile

[root@sishen ~]# wget https://mc.qcloudimg.com/static/archive/3d8addbe52be88df4f6139ec7e35b453/seafile-server_5.1.4_x86-64.tar.gz

创建安装目录并解压

[root@sishen ~]# mkdir -p /opt/seafile/installed

[root@sishen ~]# mv seafile-server_5.1.4_x86-64.tar.gz /opt/seafile/installed/

[root@sishen installed]# tar -zxf seafile-server_5.1.4_x86-64.tar.gz -C /opt/seafile/

[root@sishen installed]# cd ../seafile-server-5.1.4/

[root@sishen seafile-server-5.1.4]# ls

check_init_admin.py  seaf-fuse.sh  seahub                  setup-seafile.sh

reset-admin.sh       seaf-gc.sh    seahub.sh               upgrade

runtime              seafile       setup-seafile-mysql.py

seaf-fsck.sh         seafile.sh    setup-seafile-mysql.sh

[root@sishen seafile-server-5.1.4]# ./setup-seafile-mysql.sh

Checking python on this machine ...
   Checking python module: setuptools ... Done.
   Checking python module: python-imaging ... Done.
   Checking python module: python-mysqldb ... 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 ] seafile    #这里输入服务名,有意义即可

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.75.130   #输入主机的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  #这里选择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 ]  #这里输入上面mysql安全初始化时设置的root for mysql的密码

verifying password of user root ...  done

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

[ default "root" ] #这里直接回车

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.75.130

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:          root

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

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 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

[root@sishen seafile-server-5.1.4]# ./seafile.sh start

[11/30/17 02:24:31] ../common/session.c(132): using config file /opt/seafile/conf/ccnet.conf

Starting seafile server, please wait ...

Seafile server started

Done.

[root@sishen seafile-server-5.1.4]# ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8

Starting seahub at port 8000 ...

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

It's the first time you start the seafile server. Now let's create the admin account

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

What is the email for the admin account?

[ admin email ] 1255560195@qq.com

What is the password for the admin account?

[ admin password ] #这个密码一会登录的时候要用到,最好记下来。

Enter the password again:

[ admin password again ]

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

Successfully created seafile admin

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

Seahub is started

Done.

测试登录

基于CentOS 7.2个人网盘的实现的更多相关文章

  1. 基于CentOS 搭建 Seafile 专属网盘

    系统要求:CentOS 7.2 64 位操作系统 安装 Seafile 安装依赖环境 使用 yum 安装 Python 及 MySQL: yum install python python-setup ...

  2. 基于 CentOS 搭建Seafile个人网盘

    一.安装 Seafile 安装依赖环境使用 yum 安装 Python 及 MySQL: yum install python python-setuptools python-imaging pyt ...

  3. 基于Ubuntu搭建Seafile专属网盘

    系统要求: Ubuntu 16.04.1 LTS 64 位操作系统 安装 Seafile 服务器 安装依赖环境 在 Debian/Ubuntu 系统下,可以使用以下命令安装 MySQL: sudo a ...

  4. CentOS里下载百度网盘 / 360 网盘资源的方法

    wget -c --referer=引用地址 -O 文件名 "真实下载地址" 例如,我下载资源原在的页面为http://pan.baidu.com/s/1cfJXZ ,实际下载地址 ...

  5. Centos搭建Seafile个人网盘

    1.安装依赖环境 yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-pyth ...

  6. vfd-cloud——一个适合练习上手的云存储网盘springboot项目(开发中)

    vfd-cloud           ​ 一个基于SpringBoot的云存储网盘项目,适合练手学习SpringBoot,用到的技术栈列到了下面.支持用户的注册登陆及修改密码,利用邮箱进行验证.支持 ...

  7. 『实践』VirtualBox 5.1.18+Centos 6.8+hadoop 2.7.3搭建hadoop完全分布式集群及基于HDFS的网盘实现

    『实践』VirtualBox 5.1.18+Centos 6.8+hadoop 2.7.3搭建hadoop完全分布式集群及基于HDFS的网盘实现 1.基本设定和软件版本 主机名 ip 对应角色 mas ...

  8. [原创] 【2014.12.02更新网盘链接】基于EasySysprep4.1的 Windows 7 x86/x64 『视频』封装

    [原创] [2014.12.02更新网盘链接]基于EasySysprep4.1的 Windows 7 x86/x64 『视频』封装 joinlidong 发表于 2014-11-29 14:25:50 ...

  9. CentOS 7 使用OwnCloud建立私有云储存网盘

    使用OwnCloud建立属于自己私有的云存储网盘 OwnCloud概述: OwnCloud 一款文件主机服务软件,就是我们平时使用的云存储,不过这是在自己主机的服务器上建立属于自己的私有云,OwnCl ...

随机推荐

  1. redis02---对于key的操作命令

    Redis对于key的操作命令 del key1 key2 ... Keyn 作用: 删除1个或多个键 返回值: 不存在的key忽略掉,返回真正删除的key的数量 rename key newkey ...

  2. react native 之页面跳转

    第一章  跳转的实现 1.component  中添加这行代码 <View style={styles.loginmain}> <Text style={styles.loginte ...

  3. WPF 之Converter

    WPF  之Converter Leo 在我们做项目的时候,经常会遇见这样的事情: 在数据中我们定义的是true,false 而在现实的时候则可能要求男,女 我们还得能定义成了0,1,2,3,4,5, ...

  4. 一题多解 —— linux 日志文件(log)reload 重新载入

    1. tail -F 等同于–follow=name –retry,根据文件名进行追踪,并保持重试,即该文件被删除或改名后,如果再次创建相同的文件名,会继续追踪 也即可以间接实现从日志文件末尾,不断载 ...

  5. iOS沙盒(sandbox)机制及获取沙盒路径

    一. 每个iOS应用SDK都被限制在“沙盒”中,“沙盒”相当于一个加了仅主人可见权限的文件夹,苹果对沙盒有以下几条限制. (1)应用程序可以在自己的沙盒里运作,但是不能访问任何其他应用程序的沙盒. ( ...

  6. Educational Codeforces Round 24 CF 818 A-G 补题

    6月快要结束了 期末也过去大半了 马上就是大三狗了 取消了小学期后20周的学期真心长, 看着各种北方的学校都放假嗨皮了,我们这个在北回归线的学校,还在忍受酷暑. 过年的时候下定决心要拿块ACM的牌子, ...

  7. 微信小程序-B站:wxml和wxss文件

    WXML WXML(WeiXin Markup Language)是微信的一套标签语言,结合基础组件.事件系统,可以构建出页面的结构. (小安娜:好像很厉害的样子,那基础组件.事件系统是什么?感觉更厉 ...

  8. 在 Ubuntu 系统中有三种设置环境变量 PATH 的方法。(ZT) repost

    来源地址: http://blog.csdn.net/jernymy/article/details/6547671 第一种适用于为单一用户设置PATH.第二种是为全局设置 PATH.第三种方法适合于 ...

  9. eclipse中更改配置使得switch语句不出错

    分别点击: windows---preference--->java---->compiler--->error/waring---->potential programmin ...

  10. 【209】SQL学习&C#连接数据库

    参考:传智播客.Net培训.net视频教程 >> [04]第四季 SQL(1-16)参考:传智播客.Net培训.net视频教程 >> [05]第五季 ADO.NET(1-30) ...