Ops Manager Installation

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Install MongoDB Enterprise

* Step 1: Download MongoDB tgz packages


mongodb-linux-x86_64-enterprise-ver.tgz
mongosh-ver.tgz

* Step 2: Extract tgz packages to directory “/opt”


tar -zxvf mongodb-enterprise-ver.tgz
tar -zxvf mongosh-ver.tgz

* Step 3: Move necessary files to one directory “bin”


mv /opt/mongodb-enterprise-ver /opt/mongodb
mv /opt/mongosh-ver/bin/* /opt/mongodb/bin

* Step 4: Create the user mongod that will run the service
useradd mongod

* Step 5: Create the directory stores MongoDB Application DB


mkdir -p /data/appdb
chown -R mongod:mongod /data/appdb

* Step 6: Edit “/etc/mongod.conf”


systemLog:
destination: file
path: "/data/appdb/mongodb.log"
logAppend: true
storage:
dbPath: "/data/appdb"
wiredTiger:
engineConfig:
cacheSizeGB: 1
processManagement:
fork: true
timeZoneInfo: /usr/share/zoneinfo
net:
bindIp: 127.0.0.1
port: 27017
setParameter:
enableLocalhostAuthBypass: false
* Step 7: Create “/etc/systemd/system/mongod.service”
[Unit]
Description=MongoDB
After=syslog.target network.target

[Service]
Type=simple

User=mongod
Group=mongod

ExecStart=/opt/mongodb/bin/mongod --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

* Step 8: Reload daemon


systemctl daemon-reload

* Step 9: Edit “/root/.bash_profile”


PATH=$PATH:/opt/mongodb/bin

Run the script


. /root/.bash_profile

To confirm that mongod is running


systemctl status mongod
Install Ops Manager

* Step 1: Start Ops Manager Application DB mongod


mongod -f /etc/mongod.conf

* Step 2: Download Ops Manager rpm package & install


rpm -ivh mongodb-mms-ver.rpm

Base directory of Ops software: “/opt/mongodb/mms”.


ConString config: “/opt/mongodb/mms/conf/conf-mms.properties”.

* Step 3: Start Ops


service mongodb-mms start

Open Ops on browser: http://<OpsManagerHost>:8080

* Step 4: Sign up/ Login & config OpsManager


Deployment using local sources
* This setup is used to config deployment to have limited
internet access
remote
Agents get MongoDB binaries from a remote source.
hybrid
Agents get MongoDB binaries from Ops Manager, which fetches
binaries from the remote source.
local
Agents get MongoDB binaries from Ops Manager, which has them
on disk.

* Step 1: Download MongoDB binaries


mongodb-linux-x86_64-enterprise-ver.tgz
mongodb-database-tools-ver.tgz

Make sure that copy them to Version Directory


“/opt/mongodb/mms/mongodb-releases”.

Change ownership and permission


chown -R mongodb-mms:mongodb-mms /opt/mongodb/mms/mongodb-
releases
chown -R 640 /opt/mongodb/mms/mongodb-releases/*.tgz

* Step 2: Change Installer Download Source to “local”


Admin -> General -> Ops Manager Config -> Miscellandeous
-> Select “local” in Installer Download Source

* Step 3: Verify our preparation steps meet the requirements


General -> Version Manifest -> Update MongoDB Version
Manifest from Mongodb, Inc.

Open json file via displayed link, copy all and paste them to
the box. Press Update.
* Step 4: Add a Standalone, Replica Set, Sharded Cluster or
existing deployment. Follow the instructions below. After that,
fill in configuration info

Make sure the port and data path, log path is not already used
for other processes.
References

How to install mongodb on RHEL 8 / CentOS 8 - Linux Tutorials -


Learn Linux Configuration
MongoDB Ops Manager – dinfratechsource
Install a Simple Test Ops Manager Installation — MongoDB Ops
Manager
Configure Deployment to Have Limited Internet Access — MongoDB
Ops Manager

You might also like