安装master:
yum install rpm-build gcc gcc-c fuse-devel zlib-devel -y
tar zxvf moosefs-2.0.89-1.tar.gz
cd moosefs-2.0.89
useradd -s /sbin/nologin mfs
./configure --prefix=/usr/local/mfs --with-default-user=mfs --with-default-group=mfs
make
make install
cd /usr/local/mfs/
cp mfsmaster.cfg.dist mfsmaster.cfg
cp mfsexports.cfg.dist mfsexports.cfg
cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
cp /usr/local/mfs/var/mfs/metadata.mfs.empty /usr/local/mfs/var/mfs/metadata.mfs
chown -R mfs:mfs /usr/local/mfs
vi /usr/local/mfs/etc/mfs/mfsmaster.cfg
/usr/local/mfs/sbin/mfsmaster start
netstat -antlp | grep mfs 查看是否正常启动
echo ‘/usr/local/mfs/sbin/mfsmaster start‘>> /etc/rc.local 添加启动脚本
ls /usr/local/mfs/var/mfs/
时间: 2024-10-09 23:26:13