centos 6.6搭建seafile私有云盘

1
创建云盘目录
mkdir /yunpan
cd /yunpan

2
把云盘安装包放到目录下
wget http://download-cn.seafile.com/seafile-server_4.2.3_x86-64.tar.gz
或者用rz命令上传。用rz要先用yum安装lrzsz。

3.解压
tar xzvf seafile-server_4.2.3_x86-64.tar.gz
mkdir installed
mv seafile-server_* installed

4.更新yum
yum update -y
yum upgrade -y

5.1安装相关的环境包(有的可能yum安装不了,更具提示手动安装in)
yum install -y  python2.7 python-setuptools python-simplejson python-imaging MySQL-python
yum install -y mysql mysql-server

《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
  5.2如果没有安装上mysql-python  和Python-mysqld需要手动安装下面两个包

wget   http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz

wget   http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg

1、#    yum install python-devel mysql-devel zlib-devel openssl-devel

2、http://pypi.python.org/pypi/MySQL-python/#downloads 下载安装包

#    wget   http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz

3、http://pypi.python.org/pypi/setuptools#downloads  下载工具

#    wget   http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg

4、先安装工具

#  sh setuptools-0.6c11-py2.4.egg
    #  python

>>>   import  setuptools

不提示错误表示成功

5、安装  MySQL-python-1.2.3.tar.gz

#    tar -zxvf MySQL-python-1.2.3.tar.gz

#    cd   MySQL-python-1.2.3

#    vi setup_posix.py

找到mysql_config.path 一行,改为mysql_config.path = "/usr/bin/mysql_config"

#   python setup.py build

#   python setup.py install

#    python

>>>   import  MySQLdb

不提示错误表示成功

》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》

6.安装云盘服务端
安装前要先启动mysql

service mysqld star
mysql -u root -p password LINlin123

./setup-seafile-mysql.sh

What is the name of the server? It will be displayed on the client
[ server name ] YuanYang                                    >>>>定义云服务器名字

What is the ip or domain of the server?
[ This server‘s ip or domain ] 172.16.1.220                 >>>>设定云服务器IP或者域名

What is the ip or domain of the server?
[ default "10001" ] 80                                      >>>>默认连接服务器的端口

What is the ip or domain of the server?
[ default "/yunpan/installed/seafile-data" ] /yunpan/data   >>>>设置云盘数据存储目录

Which port do you want to use for the seafile server?
[ default "12001" ] 81                                      >>>>设置云盘服务器的端口为81

Which port do you want to use for the seafile fileserver?
[ default "8082" ] 82                                       >>>>设置云盘文件服务的端口为82

-------------------------------------------------------
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 ]LINlin123                                  >>>>>数据库的root密码

一面的基本可以一路回车,遇到需要改的改下就可以

-----------------------------------------------------------------
If you are behind a firewall, remember to allow input/output of these tcp ports:
-----------------------------------------------------------------

port of ccnet server:         80
port of seafile server:       81
port of seafile fileserver:   82
port of seahub:               8000

When problems occur, Refer to

https://github.com/haiwen/seafile/wiki

for information.
看到如上提示安装完成

7.Seafile服务器启动与配置
执行以下命令修改Linux 文件最大打开数:ulimit -n 30000
启动Seafile服务:./seafile.sh start,
启动Seahub服务:./seahub.sh start

8. ccnet.conf配置
Seafile 网络配置(ccnet.conf)还可以作其它的定义,相关的配置说明如下:

[General]
# Seafile 服务器端可不设置
USER_NAME=example

# 请不要改变这个 ID.
ID=eb812fd276432eff33bcdde7506f896eb4769da0

# Seafile 服务器名称, 客户端可见。
NAME=example

# Seahub(Seafile Web)外部链接. 客户端可见.
# 域名部分(i.e., www.example.com),在文件同步中也会用到.
# 注意: 外部链接意味着"如果你使用 Nginx, 请使用 Nginx 相关地址"
SERVICE_URL=http://www.example.com:8000

[Network]
# Ccnet 通过此端口监听客户端连接. 如被占用请更改.
# Seafile 服务器中有效.
PORT=10001

[Client]
# Ccnet 通过此端口监听本地连接(如 Seahub 网站)请求.
# 此端口如被其他服务占用, Seafile 和 Seahub 将无法正常工作.
# 如果你想在同一主机上运行 Seafile 和 Seahub, 请改为客户端使用的端口.
PORT=13419

时间: 2024-08-10 23:16:08

centos 6.6搭建seafile私有云盘的相关文章

Centos 6.9 搭建owncloud 私有云盘

本文主要介绍在lamp环境下快速安装和部署owncloud 私有云盘 基本流程: 1.owncloud简介 2.yum部署lamp环境 3.下载owncloud 软件包并且安装 4.测试owncloud是否正常使用 流程一:owncloud简介 ownCloud是是一款私有云存储的搭建工具.可以在纯局域网环境使用,也可以搭建在公有云上.分为服务器和客户端两个部分,服务器以前是支持Windows.Mac OS和Linux的,但是现在的版本只支持Linux了. 客户端则支持Windows.Mac O

centos6.8+nginx+python2.7.13配置seafile私有云盘

本文为搭建过程中随笔随记,仅供参考. 本人也是初识linux系统的新手,很多搭建过程中,也是学习的过程,边搭建边搜索相关的资料. 部署Seafile服务器(使用MySQL) 安装配置MySQL,具体过程不再描述. 研究Seafile服务器手册,地址: 1 https://manual-cn.seafile.com 阅读研究相应的文档,依据步骤一步步搭建. 前几步基本上没有问题,启动时出现问题 启动Seafile服务器和Seahub网站 启动 Seafile: 1 ./seafile.sh sta

CentOS 7 上搭建 ownCloud 私有云

所需软件 & 环境 操作系统:CentOS 7.3.1711 最小安装 (已关闭 SELinux 和防火墙) 应用软件: Nginx  .MariaDB  .PHP  .ownCloud 10.0.3 一.安装软件包 yum -y install nginx mariadb-server redis lbzip2 php71w-common php71w-fpm php71w-gd php71w-mysql php71w-mbstring php71w-intl php71w-mcrypt ph

拒绝收购邀请,三年专注开发,开源的私有云盘“迷你云”(十人团队在三年时间里靠自筹资金专注开发出来的作品)

来自36 氪开放日上海站. Dropbox 等云储存服务在近两年来迅速窜红,各大巨头也纷纷推出自家的云储存服务(苹果的 iCloud, 微软的 SkyDrive, Google 的 GDrive),国内也有类似的服务,金山网盘.袋鼠盘.坚果云等等,不胜枚举,俨然一片红海.从部署方式上说,上述的云存储服务统称为公有云. 同样是做云存储,近两年来私有云也逐渐为人们熟悉,比如我们此前就报道过 Seafile, Syncbox 等国内的私有云项目.相对于公有云来说,由有私有云通常都是建立在自己的服务器上

使用Docker快速安装NextCloud个人私有云盘

说明:NexCould是一款不错,也很漂亮的个人私有云网盘,现在使用的人是越来越多了,之前发过一篇常规的搭建教程,参考:一款不错的个人私有云:NextCloud安装教程,鉴于很多人在搭建过程中或多或少都会出点问题,今天博主发个很方便的安装方法,就是用Docker安装NextCloud,看到网上很多这样的教程都是通过编辑docker-compose.yml文件来安装的,还要配置反向代理,期间容易出现很多问题,对新手很不友好,而本教程使用纯命令形式安装,不容易出问题,适合尝鲜的新手. 截图 更新 D

高校如何使用校园私有云盘

开学季福利:高校如何使用校园私有云盘 校园云盘的兴起,要从2016年4月的一次关键事件开启--彼时,大量针对个人业务的免费网盘纷纷宣布因为一些有关政策,停止对个人的网盘服务.所以对于不少学校,特别是高校来说,就开始考虑通过自建私有云,实现全体教师/学生用户的文件存储和共享--毕竟是企业级产品,比个人网盘功能上丰富且强大甚多.支持在线播放.文件协作分享,等等..速度方面,校园网内使用企业级网盘甚至可以达到1000M/s的上传/下载速度,安全方面,东西全都存在自己的服务器上嘛.还非常灵活,支持二次开

如何不花一分钱组建自已的私有云盘!

首先架设自已的ftp有什么用?假如在自已电脑上架设一台服务器,在其它任何一台电脑上可访问.上传.下载自已电脑上的文件,相当于自已的私有云盘利,今天教大家利用用Serv-U不发一分钱搭建自已私有云盘 启动Serv-U adminisrator之后,出现如图界面,先看看"本地服务器"这个项目,如图,有个选项是"自动开始(系统服务)",选中后,Serv-U就把自己注册成系统服务,开机自动运行,而且在用户没有登录的情况下就开始运行了. 这里说说Serv-U的运行方式,看看安

Seafile搭建私有云盘

主机系统:Ubuntu 16.04 云盘系统:开源Seafile6.0.7 脚本安装: wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-ubuntu-16-04-amd64-http 先下载好开源Seafile6.0.7安装包,放在/opt/下 bash seafile-server-ubuntu-16-04-amd64-http 6.0.7 管理员账号

使用 seafile搭建私有云盘

一.系统环境 系统:CentOS7-1708IP地址:192.168.159.33 二.安装seafile [[email protected] ~]# yum -y install epel-release[[email protected] ~]# rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro[[email protected] ~]# yum -y install python-imaging MySQL-pyt