1[root@lpc mongodb-5.0.0]# mongo --port 3717
2MongoDB shell version v5.0.0
3connecting to: mongodb://127.0.0.1:3717/?compressors=disabled&gssapiServiceName=mongodb
4Implicit session: session { "id" : UUID("824697d1-a40a-42af-a6dd-a0a93bb441f7") }
5MongoDB server version: 5.0.0
6================
7Warning: the "mongo" shell has been superseded by "mongosh",
8which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in
9an upcoming release.
10We recommend you begin using "mongosh".
11For installation instructions, see
12https://docs.mongodb.com/mongodb-shell/install/
13================
14Welcome to the MongoDB shell.
15For interactive help, type "help".
16For more comprehensive documentation, see
17 https://docs.mongodb.com/
18Questions? Try the MongoDB Developer Community Forums
19 https://community.mongodb.com
20---
21The server generated these startup warnings when booting:
22 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
23 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
24 2025-09-25T13:55:28.248+08:00: You are running this process as the root user, which is not recommended
25 2025-09-25T13:55:28.248+08:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
26 2025-09-25T13:55:28.248+08:00: Failed to read /sys/kernel/mm/transparent_hugepage/defrag
27 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''
28 2025-09-25T13:55:28.248+08:00: Soft rlimits for open file descriptors too low
29 2025-09-25T13:55:28.248+08:00: currentValue: 1024
30 2025-09-25T13:55:28.248+08:00: recommendedMinimum: 64000
31---
32---
33 Enable MongoDB's free cloud-based monitoring service, which will then receive and display
34 metrics about your deployment (disk utilization, CPU, operation statistics, etc).
35
36 The monitoring data will be available on a MongoDB website with a unique URL accessible to you
37 and anyone you share the URL with. MongoDB may use this information to make product
38 improvements and to suggest MongoDB products and deployment options to you.
39
40 To enable free monitoring, run the following command: db.enableFreeMonitoring()
41 To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
42---
43> db.version()
445.0.0