mogilefs安装配置指南

检查某个模块是否在认路径下: perl -e 'use SOAP::Lite;' mogdbsetup --dbhost=localhost --dbname=mogilefs  --dbuser=mogile --dbpass=mogile_db_password --dbrootpass=cd360buy --dbhost=localhost --dbname=mogilefs  --dbuser=mogile --dbpass=mogile_db_password --dbrootpass=cdyanfa 当出现: perl: warning: Please check that your locale settings: LANGUAGE = (unset),LC_ALL = (unset),LANG = "ZH-CN"     are supported and installed on your system. 运行: LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 server-id=2 master-host=10.0.0.96 master-user=slave_user master-password=slave_pass master-connect-retry=60 replicate-do-db=mogilefs CHANGE  MASTER TO MASTER_LOG_FILE='MysqLd-bin.000002',MASTER_LOG_POS=106; 写入文件mogtool --trackers=10.28.1.96:7001 --domain=image inject /opt/Wildlife.wmv  "upload/up.txt" 读出文件:./mogtool --trackers=10.28.1.96:7001 --domain=image extract upload/up.txt - 查询文件 ./mogtool --trackers=10.28.1.96:7001 --domain=image list  mogadm --trackers=10.28.1.96:7001 host add <storage_node_name> --ip=127.0.0.1 --port=7500 --status=alive    mogadm --trackers=10.28.1.97:7001 host add  mog_storage_97 --ip=10.28.1.97 --port=7500 --status=alive 列出版本:mogadm --trackers=10.28.1.96:7001 settings list service mogilefsd restart service mogstored restart mogstored  --config /etc/mogilefs/mogstored.conf --daemonize mkdir -p /var/mogile_data/dev9601 ./mogadm device add mog_storage_96 9601 ln -s /tmp/disk2 dev9602 ./mogadm device add mog_storage_96 9602 mkdir -p  /var/mogile_data/dev9702 mogadm --trackers=127.0.0.1:7001 device add mog_storage_97 9703 ln -s /tmp/disk2 dev9702 ./mogadm device add mog_storage_97 9702 mogadm device mark add mog_storage_96 9601 dead mogadm --trackers=127.0.0.1:7001 domain add image mogadm --trackers=127.0.0.1:7001 class add image large_image --mindevcount=2 mogadm --trackers=127.0.0.1:7001 class add image thumbnail --mindevcount=2 mogtool --trackers=127.0.0.1:7001 --domain=image --class=thumbnail  inject /var/www/html/test.PHP  "upload" mkdir -p /var/mogile_data/dev96602 mogadm device  add mog_storage_966 96602 ln -s /mnt/disk2 dev96602 mogadm --trackers=10.28.1.97:7001 device add mog_storage_96 9605 mogadm add mog_storage_66 --ip=10.28.1.96 --port=7500 --status=alive 列出集群中的设备: mogadm --trackers=127.0.0.1:7001 device list mogadm --trackers=127.0.0.1:7001 host list 文件检查 mogadm --trackers=10.28.1.96:7001 fsck status chown mogile:mogile /var/mogile_data/dev9602 mogadm --trackers=127.0.0.1:7001 check iptables -A INPUT -p tcp --dport 7500 -j ACCEPT iptables -A INPUT -p tcp --dport 7501 -j ACCEPT iptables -A INPUT -p tcp --dport 7001 -j ACCEPT PUT /dev9702/test HTTP/1.0 Content-length: 4 \n 出现错误: crash log: Can't locate mogstored/ChildProcess/IOStat.pm in  @INC (@INC contains: lib /usr/local/lib64/perl5 /usr/local/share/perl5  /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl 是因为模块mogileFS::Server 安装不成功   出现错误 [ 2] dev4   REQUEST FAILURE FETCHING: http://192.168.1.12:7500//dev4/usage 设备读取不成功,可能是模块mogileFS::Server 安装不成功    /usr/lib64/perl5 /usr/share/perl5 . lib/mogdeps) at ./mogstored line 290.

相关文章

1. 如何去重 #!/usr/bin/perl use strict; my %hash; while(...
最近写了一个perl脚本,实现的功能是将表格中其中两列的数据...
表的数据字典格式如下:如果手动写MySQL建表语句,确认麻烦,...
巡检类工作经常会出具日报,最近在原有日报的基础上又新增了...
在实际生产环境中,常常需要从后台日志中截取报文,报文的形...
最近写的一个perl程序,通过关键词匹配统计其出现的频率,让...