MongoDB Installation on Microsoft Azure Cloud Virtual Machine
MongoDB Installation on Microsoft Azure Cloud Virtual Machine
[root@DBVersity ~]# sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc
[root@DBVersity ~]#
[root@DBVersity ~]# sudo sh -c ‘echo -e “[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc” > /etc/yum.repos.d/azure-cli.repo’
[root@DBVersity ~]#
[root@DBVersity ~]# cat /etc/yum.repos.d/azure-cli.repo
[azure-cli]
name=Azure CLI
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
[root@DBVersity ~]#
[root@DBVersity ~]# sudo yum install azure-cli
Loaded plugins: langpacks, product-id, search-disabled-repos
azure-cli | 2.9 kB 00:00:00
azure-cli/primary_db | 45 kB 00:00:01
Resolving Dependencies
–> Running transaction check
—> Package azure-cli.x86_64 0:2.0.66-3.el7 will be installed
–> Processing Dependency: python2-virtualenv for package: azure-cli-2.0.66-3.el7.x86_64
–> Running transaction check
—> Package python-virtualenv.noarch 0:15.1.0-2.el7 will be installed
–> Processing Dependency: python2-devel for package: python-virtualenv-15.1.0-2.el7.noarch
–> Running transaction check
—> Package python-devel.x86_64 0:2.7.5-79.el7_6 will be installed
–> Processing Dependency: python(x86-64) = 2.7.5-79.el7_6 for package: python-devel-2.7.5-79.el7_6.x86_64
–> Running transaction check
—> Package python.x86_64 0:2.7.5-77.el7_6 will be updated
—> Package python.x86_64 0:2.7.5-79.el7_6 will be an update
–> Processing Dependency: python-libs(x86-64) = 2.7.5-79.el7_6 for package: python-2.7.5-79.el7_6.x86_64
–> Running transaction check
—> Package python-libs.x86_64 0:2.7.5-77.el7_6 will be updated
—> Package python-libs.x86_64 0:2.7.5-79.el7_6 will be an update
–> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
azure-cli x86_64 2.0.66-3.el7 azure-cli 30 M
Installing for dependencies:
python-devel x86_64 2.7.5-79.el7_6 rhui-rhel-7-server-rhui-rpms 398 k
python-virtualenv noarch 15.1.0-2.el7 rhui-rhel-7-server-rhui-rpms 1.7 M
Updating for dependencies:
python x86_64 2.7.5-79.el7_6 rhui-rhel-7-server-rhui-rpms 95 k
python-libs x86_64 2.7.5-79.el7_6 rhui-rhel-7-server-rhui-rpms 5.6 M
Transaction Summary
=============================================================================================================================================================
Install 1 Package (+2 Dependent packages)
Upgrade ( 2 Dependent packages)
Total download size: 38 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/5): python-devel-2.7.5-79.el7_6.x86_64.rpm | 398 kB 00:00:03
(2/5): python-2.7.5-79.el7_6.x86_64.rpm | 95 kB 00:00:03
(3/5): python-virtualenv-15.1.0-2.el7.noarch.rpm | 1.7 MB 00:00:03
(4/5): python-libs-2.7.5-79.el7_6.x86_64.rpm | 5.6 MB 00:00:03
(5/5): azure-cli-2.0.66-3.el7.x86_64.rpm | 30 MB 00:00:06
————————————————————————————————————————————————————-
Total 6.1 MB/s | 38 MB 00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Updating : python-libs-2.7.5-79.el7_6.x86_64 1/7
Updating : python-2.7.5-79.el7_6.x86_64 2/7
Installing : python-devel-2.7.5-79.el7_6.x86_64 3/7
Installing : python-virtualenv-15.1.0-2.el7.noarch 4/7
Installing : azure-cli-2.0.66-3.el7.x86_64 [############################# ] 5/7/ Installing : azure-cli-2.0.66-3.el7.x86_64 5/7
Cleanup : python-2.7.5-77.el7_6.x86_64 6/7
Cleanup : python-libs-2.7.5-77.el7_6.x86_64 7/7
Verifying : python-devel-2.7.5-79.el7_6.x86_64 1/7
Verifying : azure-cli-2.0.66-3.el7.x86_64 2/7
Verifying : python-2.7.5-79.el7_6.x86_64 3/7
Verifying : python-libs-2.7.5-79.el7_6.x86_64 4/7
Verifying : python-virtualenv-15.1.0-2.el7.noarch 5/7
Verifying : python-libs-2.7.5-77.el7_6.x86_64 6/7
Verifying : python-2.7.5-77.el7_6.x86_64 7/7
Installed:
azure-cli.x86_64 0:2.0.66-3.el7
Dependency Installed:
python-devel.x86_64 0:2.7.5-79.el7_6 python-virtualenv.noarch 0:15.1.0-2.el7
Dependency Updated:
python.x86_64 0:2.7.5-79.el7_6 python-libs.x86_64 0:2.7.5-79.el7_6
Complete!
[root@DBVersity ~]#
[root@DBVersity ~]# sudo touch /etc/yum.repos.d/mongodb-org-3.6.repo
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# vi /etc/yum.repos.d/mongodb-org-3.6.repo
[root@DBVersity ~]#
[root@DBVersity ~]# cat /etc/yum.repos.d/mongodb-org-3.6.repo
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# sudo yum install -y mongodb-org
Loaded plugins: langpacks, product-id, search-disabled-repos
azure-cli | 2.9 kB 00:00:00
mongodb-org-3.6 | 2.5 kB 00:00:00
rhui-microsoft-azure-rhel7 | 2.1 kB 00:00:00
rhui-rhel-7-server-dotnet-rhui-debug-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-dotnet-rhui-rpms | 2.3 kB 00:00:00
rhui-rhel-7-server-dotnet-rhui-source-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-debug-rpms | 1.8 kB 00:00:00
rhui-rhel-7-server-rhui-extras-debug-rpms | 1.8 kB 00:00:00
rhui-rhel-7-server-rhui-extras-rpms | 2.0 kB 00:00:00
rhui-rhel-7-server-rhui-extras-source-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-optional-debug-rpms | 1.8 kB 00:00:00
rhui-rhel-7-server-rhui-optional-rpms | 1.8 kB 00:00:00
rhui-rhel-7-server-rhui-optional-source-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-rh-common-debug-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-rh-common-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-rh-common-source-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-rpms | 2.0 kB 00:00:00
rhui-rhel-7-server-rhui-source-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-supplementary-debug-rpms | 2.1 kB 00:00:00
rhui-rhel-7-server-rhui-supplementary-rpms | 2.0 kB 00:00:00
rhui-rhel-7-server-rhui-supplementary-source-rpms | 2.1 kB 00:00:00
rhui-rhel-server-rhui-rhscl-7-debug-rpms | 2.0 kB 00:00:00
rhui-rhel-server-rhui-rhscl-7-rpms | 2.0 kB 00:00:00
rhui-rhel-server-rhui-rhscl-7-source-rpms | 2.1 kB 00:00:00
(1/3): rhui-rhel-7-server-dotnet-rhui-rpms/7Server/x86_64/primary | 59 kB 00:00:02
(2/3): rhui-rhel-7-server-dotnet-rhui-rpms/7Server/x86_64/updateinfo | 22 kB 00:00:02
(3/3): mongodb-org-3.6/7Server/primary_db | 63 kB 00:00:02
rhui-rhel-7-server-dotnet-rhui-rpms 255/255
Resolving Dependencies
–> Running transaction check
—> Package mongodb-org.x86_64 0:3.6.13-1.el7 will be installed
–> Processing Dependency: mongodb-org-tools = 3.6.13 for package: mongodb-org-3.6.13-1.el7.x86_64
–> Processing Dependency: mongodb-org-shell = 3.6.13 for package: mongodb-org-3.6.13-1.el7.x86_64
–> Processing Dependency: mongodb-org-server = 3.6.13 for package: mongodb-org-3.6.13-1.el7.x86_64
–> Processing Dependency: mongodb-org-mongos = 3.6.13 for package: mongodb-org-3.6.13-1.el7.x86_64
–> Running transaction check
—> Package mongodb-org-mongos.x86_64 0:3.6.13-1.el7 will be installed
—> Package mongodb-org-server.x86_64 0:3.6.13-1.el7 will be installed
—> Package mongodb-org-shell.x86_64 0:3.6.13-1.el7 will be installed
—> Package mongodb-org-tools.x86_64 0:3.6.13-1.el7 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
mongodb-org x86_64 3.6.13-1.el7 mongodb-org-3.6 5.8 k
Installing for dependencies:
mongodb-org-mongos x86_64 3.6.13-1.el7 mongodb-org-3.6 12 M
mongodb-org-server x86_64 3.6.13-1.el7 mongodb-org-3.6 20 M
mongodb-org-shell x86_64 3.6.13-1.el7 mongodb-org-3.6 12 M
mongodb-org-tools x86_64 3.6.13-1.el7 mongodb-org-3.6 64 M
Transaction Summary
=============================================================================================================================================================
Install 1 Package (+4 Dependent packages)
Total download size: 108 M
Installed size: 286 M
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/mongodb-org-3.6/packages/mongodb-org-3.6.13-1.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 91fa4ad5: NOKEYETA
Public key for mongodb-org-3.6.13-1.el7.x86_64.rpm is not installed
(1/5): mongodb-org-3.6.13-1.el7.x86_64.rpm | 5.8 kB 00:00:01
(2/5): mongodb-org-mongos-3.6.13-1.el7.x86_64.rpm | 12 MB 00:00:03
(3/5): mongodb-org-server-3.6.13-1.el7.x86_64.rpm | 20 MB 00:00:02
(4/5): mongodb-org-shell-3.6.13-1.el7.x86_64.rpm | 12 MB 00:00:01
(5/5): mongodb-org-tools-3.6.13-1.el7.x86_64.rpm | 64 MB 00:00:05
————————————————————————————————————————————————————-
Total 10 MB/s | 108 MB 00:00:10
Retrieving key from https://www.mongodb.org/static/pgp/server-3.6.asc
Importing GPG key 0x91FA4AD5:
Userid : “MongoDB 3.6 Release Signing Key <packaging@mongodb.com>”
Fingerprint: 2930 adae 8caf 5059 ee73 bb4b 5871 2a22 91fa 4ad5
From : https://www.mongodb.org/static/pgp/server-3.6.asc
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mongodb-org-shell-3.6.13-1.el7.x86_64 1/5
Installing : mongodb-org-mongos-3.6.13-1.el7.x86_64 2/5
Installing : mongodb-org-tools-3.6.13-1.el7.x86_64 3/5
Installing : mongodb-org-server-3.6.13-1.el7.x86_64 4/5
Created symlink from /etc/systemd/system/multi-user.target.wants/mongod.service to /usr/lib/systemd/system/mongod.service.
Installing : mongodb-org-3.6.13-1.el7.x86_64 5/5
Verifying : mongodb-org-3.6.13-1.el7.x86_64 1/5
Verifying : mongodb-org-server-3.6.13-1.el7.x86_64 2/5
Verifying : mongodb-org-tools-3.6.13-1.el7.x86_64 3/5
Verifying : mongodb-org-mongos-3.6.13-1.el7.x86_64 4/5
Verifying : mongodb-org-shell-3.6.13-1.el7.x86_64 5/5
Installed:
mongodb-org.x86_64 0:3.6.13-1.el7
Dependency Installed:
mongodb-org-mongos.x86_64 0:3.6.13-1.el7 mongodb-org-server.x86_64 0:3.6.13-1.el7 mongodb-org-shell.x86_64 0:3.6.13-1.el7
mongodb-org-tools.x86_64 0:3.6.13-1.el7
Complete!
[root@DBVersity ~]#
[root@DBVersity ~]# sudo yum install -y policycoreutils-python
Loaded plugins: langpacks, product-id, search-disabled-repos
Package policycoreutils-python-2.5-29.el7_6.1.x86_64 already installed and latest version
Nothing to do
[root@DBVersity ~]# sudo semanage port -a -t mongod_port_t -p tcp 27017
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# sudo service mongod start
Redirecting to /bin/systemctl start mongod.service
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# ps -ef | grep mongo
mongod 42279 1 26 10:17 ? 00:00:03 /usr/bin/mongod -f /etc/mongod.conf
root 42317 39204 0 10:17 pts/0 00:00:00 grep –color=auto mongo
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# mongo
MongoDB shell version v3.6.13
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“2e56e8e2-0dec-4170-af96-40a515e1da85”) }
MongoDB server version: 3.6.13
Welcome to the MongoDB shell.
For interactive help, type “help”.
For more comprehensive documentation, see
Questions? Try the support group
Server has startup warnings:
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten]
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten]
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten]
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten]
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-06-11T10:17:14.171+0000 I CONTROL [initandlisten]
>
>
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
>
> use admin
switched to db admin
>
> db.shutdownServer()
server should be down…
2019-06-11T10:19:34.585+0000 I NETWORK [thread1] trying reconnect to 127.0.0.1:27017 (127.0.0.1) failed
2019-06-11T10:19:34.585+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2019-06-11T10:19:34.585+0000 I NETWORK [thread1] reconnect 127.0.0.1:27017 (127.0.0.1) failed failed
>
>
> exit
bye
2019-06-11T10:19:36.393+0000 I NETWORK [thread1] trying reconnect to 127.0.0.1:27017 (127.0.0.1) failed
2019-06-11T10:19:36.393+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2019-06-11T10:19:36.393+0000 I NETWORK [thread1] reconnect 127.0.0.1:27017 (127.0.0.1) failed failed
2019-06-11T10:19:36.394+0000 I QUERY [thread1] Failed to end session { id: UUID(“a05f8fee-e0c2-4818-98e1-bc498ac14a21”) } due to SocketException: socket exception [CONNECT_ERROR] for couldn’t connect to server 127.0.0.1:27017, connection attempt failed
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# vi /etc/yum.repos.d/mongodb-org-4.0.repo
[root@DBVersity ~]#
[root@DBVersity ~]# cat /etc/yum.repos.d/mongodb-org-4.0.repo
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# mv /etc/yum.repos.d/mongodb-org-3.6.repo /tmp/
[root@DBVersity ~]#
[root@DBVersity ~]# sudo yum install -y mongodb-org
Loaded plugins: langpacks, product-id, search-disabled-repos
mongodb-org-4.0 | 2.5 kB 00:00:00
mongodb-org-4.0/7Server/primary_db | 49 kB 00:00:00
Resolving Dependencies
–> Running transaction check
—> Package mongodb-org.x86_64 0:3.6.13-1.el7 will be updated
—> Package mongodb-org.x86_64 0:4.0.10-1.el7 will be an update
–> Processing Dependency: mongodb-org-tools = 4.0.10 for package: mongodb-org-4.0.10-1.el7.x86_64
–> Processing Dependency: mongodb-org-shell = 4.0.10 for package: mongodb-org-4.0.10-1.el7.x86_64
–> Processing Dependency: mongodb-org-server = 4.0.10 for package: mongodb-org-4.0.10-1.el7.x86_64
–> Processing Dependency: mongodb-org-mongos = 4.0.10 for package: mongodb-org-4.0.10-1.el7.x86_64
–> Running transaction check
—> Package mongodb-org-mongos.x86_64 0:3.6.13-1.el7 will be updated
—> Package mongodb-org-mongos.x86_64 0:4.0.10-1.el7 will be an update
—> Package mongodb-org-server.x86_64 0:3.6.13-1.el7 will be updated
—> Package mongodb-org-server.x86_64 0:4.0.10-1.el7 will be an update
—> Package mongodb-org-shell.x86_64 0:3.6.13-1.el7 will be updated
—> Package mongodb-org-shell.x86_64 0:4.0.10-1.el7 will be an update
—> Package mongodb-org-tools.x86_64 0:3.6.13-1.el7 will be updated
—> Package mongodb-org-tools.x86_64 0:4.0.10-1.el7 will be an update
–> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Updating:
mongodb-org x86_64 4.0.10-1.el7 mongodb-org-4.0 5.8 k
Updating for dependencies:
mongodb-org-mongos x86_64 4.0.10-1.el7 mongodb-org-4.0 12 M
mongodb-org-server x86_64 4.0.10-1.el7 mongodb-org-4.0 21 M
mongodb-org-shell x86_64 4.0.10-1.el7 mongodb-org-4.0 13 M
mongodb-org-tools x86_64 4.0.10-1.el7 mongodb-org-4.0 46 M
Transaction Summary
=============================================================================================================================================================
Upgrade 1 Package (+4 Dependent packages)
Total download size: 93 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7Server/mongodb-org-4.0/packages/mongodb-org-4.0.10-1.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID e52529d4: NOKEYETA
Public key for mongodb-org-4.0.10-1.el7.x86_64.rpm is not installed
(1/5): mongodb-org-4.0.10-1.el7.x86_64.rpm | 5.8 kB 00:00:01
(2/5): mongodb-org-mongos-4.0.10-1.el7.x86_64.rpm | 12 MB 00:00:03
(3/5): mongodb-org-server-4.0.10-1.el7.x86_64.rpm | 21 MB 00:00:02
(4/5): mongodb-org-shell-4.0.10-1.el7.x86_64.rpm | 13 MB 00:00:01
(5/5): mongodb-org-tools-4.0.10-1.el7.x86_64.rpm | 46 MB 00:00:04
————————————————————————————————————————————————————-
Total 11 MB/s | 93 MB 00:00:08
Retrieving key from https://www.mongodb.org/static/pgp/server-4.0.asc
Importing GPG key 0xE52529D4:
Userid : “MongoDB 4.0 Release Signing Key <packaging@mongodb.com>”
Fingerprint: 9da3 1620 334b d75d 9dcb 49f3 6881 8c72 e525 29d4
From : https://www.mongodb.org/static/pgp/server-4.0.asc
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : mongodb-org-shell-4.0.10-1.el7.x86_64 1/10
Updating : mongodb-org-server-4.0.10-1.el7.x86_64 2/10
Updating : mongodb-org-tools-4.0.10-1.el7.x86_64 3/10
Updating : mongodb-org-mongos-4.0.10-1.el7.x86_64 4/10
Updating : mongodb-org-4.0.10-1.el7.x86_64 5/10
Cleanup : mongodb-org-3.6.13-1.el7.x86_64 6/10
Cleanup : mongodb-org-server-3.6.13-1.el7.x86_64 7/10
Cleanup : mongodb-org-shell-3.6.13-1.el7.x86_64 8/10
Cleanup : mongodb-org-mongos-3.6.13-1.el7.x86_64 9/10
Cleanup : mongodb-org-tools-3.6.13-1.el7.x86_64 10/10
Verifying : mongodb-org-4.0.10-1.el7.x86_64 1/10
Verifying : mongodb-org-mongos-4.0.10-1.el7.x86_64 2/10
Verifying : mongodb-org-tools-4.0.10-1.el7.x86_64 3/10
Verifying : mongodb-org-server-4.0.10-1.el7.x86_64 4/10
Verifying : mongodb-org-shell-4.0.10-1.el7.x86_64 5/10
Verifying : mongodb-org-server-3.6.13-1.el7.x86_64 6/10
Verifying : mongodb-org-shell-3.6.13-1.el7.x86_64 7/10
Verifying : mongodb-org-3.6.13-1.el7.x86_64 8/10
Verifying : mongodb-org-mongos-3.6.13-1.el7.x86_64 9/10
Verifying : mongodb-org-tools-3.6.13-1.el7.x86_64 10/10
Updated:
mongodb-org.x86_64 0:4.0.10-1.el7
Dependency Updated:
mongodb-org-mongos.x86_64 0:4.0.10-1.el7 mongodb-org-server.x86_64 0:4.0.10-1.el7 mongodb-org-shell.x86_64 0:4.0.10-1.el7
mongodb-org-tools.x86_64 0:4.0.10-1.el7
Complete!
[root@DBVersity ~]#
[root@DBVersity ~]#
[root@DBVersity ~]# mongo
MongoDB shell version v4.0.10
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“69f1d835-bdd9-47ba-b50a-c06edf4fdad3”) }
MongoDB server version: 4.0.10
Server has startup warnings:
2019-06-11T10:21:43.629+0000 I CONTROL [initandlisten]
2019-06-11T10:21:43.629+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-06-11T10:21:43.629+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2019-06-11T10:21:43.629+0000 I CONTROL [initandlisten]
2019-06-11T10:21:43.630+0000 I CONTROL [initandlisten]
2019-06-11T10:21:43.630+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
2019-06-11T10:21:43.630+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-06-11T10:21:43.630+0000 I CONTROL [initandlisten]
2019-06-11T10:21:43.630+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.
2019-06-11T10:21:43.630+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-06-11T10:21:43.630+0000 I CONTROL [initandlisten]
—
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()
—
>
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
>
[root@DBVersity ~]# ps -ef | grep mongo
mongod 42568 1 4 10:21 ? 00:00:07 /usr/bin/mongod -f /etc/mongod.conf
root 42708 39204 0 10:24 pts/0 00:00:00 grep –color=auto mongo
[root@DBVersity ~]#
Comments are closed, but trackbacks and pingbacks are open.