[root@lpc soft]# cd /data/mongodb-5.0.0 [root@lpc mongodb-5.0.0]# mkdir data logs [root@lpc mongodb-5.0.0]# ls bin data LICENSE-Community.txt logs MPL-2 README THIRD-PARTY-NOTICES
[root@lpc mongodb-5.0.0]# mongo --port 3717 MongoDB shell version v5.0.0 connecting to: mongodb://127.0.0.1:3717/?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("824697d1-a40a-42af-a6dd-a0a93bb441f7") } MongoDB server version: 5.0.0 ================ Warning: the "mongo" shell has been superseded by "mongosh", which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in an upcoming release. We recommend you begin using "mongosh". For installation instructions, see https://docs.mongodb.com/mongodb-shell/install/ ================ Welcome to the MongoDB shell. For interactive help, type"help". For more comprehensive documentation, see https://docs.mongodb.com/ Questions? Try the MongoDB Developer Community Forums https://community.mongodb.com --- The server generated these startup warnings when booting: 2025-09-25T13:55:27.537+08:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem 2025-09-25T13:55:28.248+08:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted 2025-09-25T13:55:28.248+08:00: You are running this process as the root user, which is not recommended 2025-09-25T13:55:28.248+08:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' 2025-09-25T13:55:28.248+08:00: Failed to read /sys/kernel/mm/transparent_hugepage/defrag 2025-09-25T13:55:28.248+08:00: error: ** WARNING: unrecognized transparent Huge Pages mode of operation in /sys/kernel/mm/transparent_hugepage/defrag: 'defer'' 2025-09-25T13:55:28.248+08:00: Soft rlimits for open file descriptors too low 2025-09-25T13:55:28.248+08:00: currentValue: 1024 2025-09-25T13:55:28.248+08:00: recommendedMinimum: 64000 --- --- Enable MongoDB's free cloud-based monitoring service, which will then receive and display metrics about your deployment (disk utilization, CPU, operation statistics, etc).
The monitoring data will be available on a MongoDB website with a unique URL accessible to you and anyone you share the URL with. MongoDB may use this information to make product improvements and to suggest MongoDB products and deployment options to you.
To enable free monitoring, run the following command: db.enableFreeMonitoring() To permanently disable this reminder, run the following command: db.disableFreeMonitoring() --- > db.version() 5.0.0