测试媛的专题我爱编程

MMS安装

2018-06-21  本文已影响4人  清浅第五空间

vi /etc/yum.repos.d/mongodb.repo

#添加如下内容

[MongoDB]

name=MongoDB Repository

baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64

gpgcheck=0

enabled=1

#执行安装

yum install mongodb-org

#启动mongodb

/etc/init.d/mongod start

#启动进入数据库

mongo

#安装mms

cd /soft

wget https://downloads.mongodb.com/on-prem-mms/rpm/mongodb-mms-1.4.1.62-1.x86_64.rpm

切换root

rpm -ivh mongodb-mms-1.4.1.62-1.x86_64.rpm

默认MMS将会被安装在/opt/mongodb/mms

切换dev

cd /opt/mongodb/mms/conf

vi conf-mms.properties

mms.centralUrl=http://172.16.1.24:8080

mms.backupCentralUrl=http://172.16.1.24:8081

mms.fromEmailAddr=411027205@qq.com

mms.replyToEmailAddr=411027205@qq.com

mms.adminFromEmailAddr=181675284@qq.com

mms.adminEmailAddr=181675284@qq.com

mms.bounceEmailAddr=1663152831@qq.com

mongo.mongoUri=mongodb://172.16.1.24:27017/

cd /opt/mongodb/mms/bin

#启动mms

./mongodb-mms start

#安装agent

cd /soft

curl -OL http://172.16.1.24:8080/download/agent/monitoring/mongodb-mms-monitoring-agent-2.1.3.48-1.x86_64.rpm

rpm -U mongodb-mms-monitoring-agent-2.1.3.48-1.x86_64.rpm

#修改配置文件

vi /etc/mongodb-mms/monitoring-agent.config

mmsApiKey=6682f01ad8f7e15855aa08fb8dfafe34

mmsBaseUrl=http://172.16.1.24:8080

#启动agent

service mongodb-mms-monitoring-agent start

访问地址:http://172.16.1.24:8080/

用户名:411027205@qq.com  密码:yourengz@123

上一篇下一篇

猜你喜欢

热点阅读