设为首页 收藏本站
查看: 291|回复: 0

[经验分享] centos 6.6搭建seafile私有云盘

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-8-25 09:06:31 | 显示全部楼层 |阅读模式
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/ ... python-1.2.3.tar.gz

wget   http://pypi.python.org/packages/ ... ls-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/ ... python-1.2.3.tar.gz

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

     #    wget   http://pypi.python.org/packages/ ... ls-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



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-103813-1-1.html 上篇帖子: vim编辑器使用 下篇帖子: cetos 6.6搭建sftp服务
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表