结论
若需要安装或升级到 MongoDB 5.0 新版本,肯定要提前确保自己的服务器 CPU 能否支持 AVX 指令集 架构,检查下令如下:
cat /proc/cpuinfo |grep avx
复制代码
一般家用服务器和新出的服务器都支持 avx 指令集,但是老版本的和一些服务器的 cpu 不支持该指令集,建议使用4.4版本的mongoDB
2、MongoDB登录
mongo -u root -p 1233
show dbs
复制代码
3、MongoDB排序时内存巨细限制和创建索引
[Error] Executor error during find command :: caused by :: Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit.