Server1:master 172.25.77.1

Server2:chunkserver 172.25.77.2

Server3:chunkserver 172.25.77.4

物理机:172.25.77.250 :测试

 

 

 

[[email protected] rhel6]# yum install moosefs-master-3.0.100-1.rhsysv.x86_64.rpm

 

[[email protected] rhel6]# yum install moosefs-cgi-3.0.100-1.rhsysv.x86_64.rpm -y

[[email protected] rhel6]# yum install moosefs-cgiserv-3.0.100-1.rhsysv.x86_64.rpm -y

 

 

 

[[email protected] rhel6]# /etc/init.d/moosefs-master start

Starting mfsmaster:                                        [  OK  ]

[[email protected] rhel6]# /etc/init.d/moosefs-cgiserv start

Starting mfscgiserv:                                       [  OK  ]

[[email protected] rhel6]# netstat -antlp

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   

tcp        0      0 0.0.0.0:9419                0.0.0.0:*                   LISTEN      1146/mfsmaster      

tcp        0      0 0.0.0.0:9420                0.0.0.0:*                   LISTEN      1146/mfsmaster      

tcp        0      0 0.0.0.0:9421                0.0.0.0:*                   LISTEN      1146/mfsmaster      

tcp        0      0 0.0.0.0:9425                0.0.0.0:*                   LISTEN      1153/python         

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      908/sshd            

tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      985/master          

tcp        0      0 172.25.77.1:22              172.25.77.250:37617         ESTABLISHED 1067/sshd           

tcp        0      0 :::22                       :::*                        LISTEN      908/sshd            

tcp        0      0 ::1:25                      :::*                        LISTEN      985/master          

[[email protected] rhel6]# 

mfsmaster

[[email protected] mfs]# vim /etc/hosts

Mfs分布式文件系统

 Mfs分布式文件系统

 

server:2

[[email protected] ~]# yum install moosefs-chunkserver-3.0.97-1.rhsysv.x86_64.rpm -y

[[email protected] ~]# cd /etc/mfs/

[[email protected] mfs]# ls

mfschunkserver.cfg  mfschunkserver.cfg.sample  mfshdd.cfg  mfshdd.cfg.sample

[[email protected] mfs]# vim mfshdd.cfg     给文件最后添加一个目录,然后创建;

Mfs分布式文件系统

在mnt下创建chunk目录

Mfs分布式文件系统

启动服务

[[email protected] mfs]# /etc/init.d/moosefs-chunkserver start

Starting mfschunkserver:                                   [  OK  ]

(需要做解析)

Server3操作如server2,在/mnt下创建chunk2即可;(配置文件也写chunk2)

此时刷新mfs界面:

 

物理机:

[[email protected] 3.0.97]# yum install -y moosefs-client-3.0.97-1.rhsystemd.x86_64.rpm

 

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2021-12-20
  • 2021-06-26
  • 2021-07-29
  • 2022-12-23
  • 2021-08-01
  • 2021-10-17
猜你喜欢
  • 2021-04-13
  • 2021-10-22
  • 2022-12-23
相关资源
相似解决方案