检查某个模块是否在默认路径下: 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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。