簡單的MogileFS-2.44安裝及配置過程記錄一下

1:安裝相關的Perl模塊 mysql

首先要安裝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 sql

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
socket

3:數據庫配置
ide

 

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數據庫引擎。
相關文章
相關標籤/搜索