db.serverBits() in mongoDB

db.serverBits(): This method returns the server bits either 64 or 32.

Note:

If you have installed 32-bit then it will return 32, and if you have installed 64-bit then it will return 64.

Syntax:

db.serverBits()

Example 1: For 64-bit.

MongoDB

db.serverBits()

Output

64


Example 2: For 32-bit.

MongoDB

db.serverBits()

Output

32


No comments:

Post a Comment