1、解压tar -zxvf mongodb-linux-x86_64-4.0.5 2、创建目录 mkdir -p /test/m1 mkdir -p /test/m1/conf mkdir -p /test/m1/data mkdir -p /test/m1/pid mkdir -p /test/m1/logs