分布式GlusterFs的编译安装,centos 6.5

1、从http://www.gluster.org/download/下载Gluster 3.6 (Stable)下载 glusterfs-3.6.5.tar.gz 

2、将glusterfs-3.6.5.tar.gz  下载到 /home/saas/xiaohua/glusterfs

3、解压 cd /home/saas/xiaohua/glusterfs      然后  tar -zxvf   glusterfs-3.6.5.tar.gz 

4、增加权限:chmod a+wrx -R  glusterfs-3.6.5

5、查看一下是否具有权限了:ls -l

drwxrwxrwx. 15 saslauth desktop_admin_r    4096 8月  21 18:46 glusterfs-3.6.5

说明是具有可执行权限了

6、进入gluster的目录:cd glusterfs-3.6.5

7、生成编译所需要的文件:./configure --prefix=/home/saas/xiaohua/glusterfs

结果会看到当前所依赖的lib哪些有,哪些没有

GlusterFS configure summary
===========================
FUSE client          : yes
Infiniband verbs     : no
epoll IO multiplex   : yes
argp-standalone      : no
fusermount           : yes
readline             : no
georeplication       : yes
Linux-AIO            : no
Enable Debug         : no
systemtap            : no
Block Device xlator  : no
glupy                : no
Use syslog           : yes
XML output           : yes
QEMU Block formats   : yes
Encryption xlator    : yes
Erasure Code xlator  : yes

[root@localhost glusterfs-3.6.5]# 

另外中间可能会提示依赖的lib没有,这里列出几项

(1)、configure: error: Flex or lex required to build glusterfs

  yum -y install flex

(2), configure: error: GNU Bison required to build glusterfs.

yum -y install bison

(3)还可能会提示:libxml2-devel 没有

yum install libxml2-devel -y

(4)提示没有openssl

yum install  -y openssl

(5)提示没有open-crypto  

yum install -y openssl-devel

具体看少什么lib,少什么就安装什么

8、编译和安装:make   然后make install

9、验证是否安装成功:cd /home/saas/xiaohua/glusterfs   然后  ./sbin/glusterfs --version
glusterfs 3.6.5 built on Sep 21 2015 14:48:58
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.
如果有以上信息,说明安装成功了:

通过service glusterd start启动

Starting glusterd:                                         [确定]

恭喜安装成功哦

在使用glusterfs的时候要注意,局域网内的主机名不能相同,并且主机名可以解析

 

你可能感兴趣的:(分布式GlusterFs的编译安装,centos 6.5)