✅ 방법1) mongod --version
. "modules" 필드
. "enterprise" : Enterprise Edition
. 비어있거나 아예 없으면 : Community Edition
bash# mongod --version
db version v8.0.9
Build Info: {
"version": "8.0.9",
"gitVersion": "f882ef816d531ecfbb593843e4c554fda90ca416",
"openSSLVersion": "OpenSSL 3.0.13 30 Jan 2024",
"modules": [],
"allocator": "tcmalloc-google",
"environment": {
"distmod": "ubuntu2404",
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
mongosh# myReplicaSet [direct: primary] test> db.runCommand({ buildInfo: 1 })
{
version: '8.0.9',
gitVersion: 'f882ef816d531ecfbb593843e4c554fda90ca416',
modules: [],
allocator: 'tcmalloc-google',
javascriptEngine: 'mozjs',
sysInfo: 'deprecated',
versionArray: [ 8, 0, 9, 0 ],
openssl: {
running: 'OpenSSL 3.0.13 30 Jan 2024',
compiled: 'OpenSSL 3.0.13 30 Jan 2024'
},
buildEnvironment: {
distmod: 'ubuntu2404',
distarch: 'x86_64',
cc: '/opt/mongodbtoolchain/v4/bin/gcc: gcc (GCC) 11.3.0',
ccflags: '-Werror -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -g2 -Wall -Wsign-compare -Wno-unknown-pragmas -Win
valid-pch -gdwarf-5 -fno-omit-frame-pointer -fno-strict-aliasing -O2 -march=sandybridge -mtune=generic -mprefer-vector-width=128 -Wno-unused-local-type
defs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-psabi -fstack-p
rotector-strong -gdwarf64 -Wa,--nocompress-debug-sections -fno-builtin-memcmp -Wimplicit-fallthrough=5',
cxx: '/opt/mongodbtoolchain/v4/bin/g++: g++ (GCC) 11.3.0',
cxxflags: '-Woverloaded-virtual -Wpessimizing-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++20',
linkflags: '-Wl,--fatal-warnings -B/opt/mongodbtoolchain/v4/bin -gdwarf-5 -pthread -Wl,-z,now -fuse-ld=lld -fstack-protector-strong -gdwarf64 -Wl,-
-build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -Wl,--compress-debug-sections=none -Wl,-z,origin -Wl,--enable-new-d
tags',
target_arch: 'x86_64',
target_os: 'linux',
cppdefines: 'SAFEINT_USE_INTRINSICS 0 PCRE2_STATIC ABSL_ALLOCATOR_NOTHROW NDEBUG _XOPEN_SOURCE 700 _GNU_SOURCE _FORTIFY_SOURCE 2 ABSL_FORCE_ALIGNED
_ACCESS BOOST_ENABLE_ASSERT_DEBUG_HANDLER BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF BOOST_LOG_NO_SHORTHAND_NAMES BOOST_LOG_USE_NATIVE_SYSLOG BOOST_LOG_WITHO
UT_THREAD_ATTR BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS BOOST_SYSTEM_NO_DEPRECATED BOOST_THREAD_USES_DATETIME BOOST_THREAD_VERSION 5'
},
bits: 64,
debug: false,
maxBsonObjectSize: 16777216,
storageEngines: [ 'devnull', 'wiredTiger' ],
ok: 1,
'$clusterTime': {
clusterTime: Timestamp({ t: 1747183833, i: 1 }),
signature: {
hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),
keyId: Long('0')
}
},
operationTime: Timestamp({ t: 1747183833, i: 1 })
}