简单的MogileFS-2.44安装及配置过程记录一下

1:安装相关的Perl模块

首先要安装perl
# yum install perl
以下Perl模块均可使用以下命令进行安装,如安装Sys::Syscall模块。
# cpan –I Sys::Syscall
Sys::Syscall
Danga::socket
BSD::Resource
common::sense
IO::AIO
Perlbal
ExtUtils::MakeMaker
Test::Simple
DBI
Net::Netmask
IO::WrapTie
MogileFS::Client
DBD::mysql
MogileFS::Utils
Gearman::Client
Gearman::server

2:安装mogilef server

# wget http://search.cpan.org/CPAN/authors/id/D/DO/DORMANDO/MogileFS-Server-2.44.tar.gz
# tar zxvf MogileFS-Server-2.44.tar.gz
# cd MogileFS-Server-2.44
# perl Makefile.PL
# make && make install

3:数据库配置

 

mysql> create database mogilefs;

 

mysql> grant all on mogilefs.* to mogil @ '192.168.0.%' identified '000000'

 

mysql> flush privileges;
4:创建mysql连接
# /usr/lib/mogdbsetup --dbhost=192.168.0.144 --dbname=mogilefs --dbuser=mogile --dbpassword=000000
如果报出这样的错误:
[root@bogon MogileFS-Server-2.44]# ./mogdbsetup --dbhost=192.168.0.223 --dbname=mogilefs --dbuser=mogile --dbpassword=000000

This will attempt to setup or upgrade your MogileFS database.
It won't destroy existing data.
Run with --help for more information.  Run with --yes to shut up these prompts.
 
你需要安装innodb数据库引擎。

 

 

你可能感兴趣的:(简单的MogileFS-2.44安装及配置过程记录一下)