# 安装 python 3.9.5 版本 sudo su - cd /tmp/ wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz tar -xvf Python-3.9.5.tgz yum groupinstall -y 'Development Tools' yum install zlib-devel yum install openssl openssl-devel cd Python-3.9.5 ./configure make -j 24 && make install /usr/local/bin/python3.9 -m pip install --upgrade pip python3 -m venv ~/tutorial-env cd ~/tutorial-env source bin/activate # 安装 mtools 包 pip install mtools # 分析 mongodb 日志,解析查询信息 mloginfo /data/mongo-mongos/logs/mongodb.log --queries