MongoDB 版本号查询

MongoDB 版本号查询

2018年11月01日 22:01:20 vkingnew 阅读数 17962更多

个人分类: MongoDB

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://blog.csdn.net/vkingnew/article/details/83627884


 
  1. --通过命令查看:

  2.  
  3. # mongo --version

  4. Percona Server for MongoDB shell version v3.6.7-1.5

  5. git version: f4cbafeaa1be7aa014838178f61de5a44a850cfe

  6. OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017

  7. allocator: tcmalloc

  8. modules: none

  9. build environment:

  10. distarch: x86_64

  11. target_arch: x86_64

  12.  
  13. # /usr/local/mongodb/bin/mongo --version

  14. MongoDB shell version v4.0.2

  15. git version: fc1573ba18aee42f97a3bb13b67af7d837826b47

  16. OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013

  17. allocator: tcmalloc

  18. modules: none

  19. build environment:

  20. distmod: rhel70

  21. distarch: x86_64

  22. target_arch: x86_64

  23.  
  24. --登录到数据库查看:

  25. > db.version()

  26. 3.6.7-1.5

  27.  
  28. > db.version()

  29. 4.0.2

 

posted @ 2019-08-22 09:11  grj001  阅读(164)  评论(0编辑  收藏  举报