进入mongodb的bin目录 ./mongo 127.0.0.1:29019/wenshu --username wenshu --password adff 说明: 127.0.0.1:29019/wenshu 数据库地址及库名