mongodb性能监控命令:mongosniff
mongodb性能监控命令:mongosniff
mongodb 性能监控命令:mongosniff
[root@localhost local]# /usr/local/mongodb245/bin/mongosniff --source NET lo 27016
监听27016端口时出现了:
/usr/local/mongodb245/bin/: error while loading shared libraries: libpcap.so.0.9: cannot open shared object file: No such file or directory
注解:缺少了 libpcap库,使用yum install libpcap-devel安装后还是不行报同样的错误原来是因为yum安装的libpcap-devel 1.0.0 版本, 要创建一个软连接:ln -s /usr/lib64/libpcap.so.1.0.0 /usr/lib64/libpcap.so.0.9,随后以root身份启动就可以了!