前面几节总览的说了些MMS是怎么回事,比较枯燥,也不容易懂,不过蛮重要的,工欲善其事必先利其器,弄清楚了原理,在接下来的章节里起到事半功倍的效果。闲话少扯,来看看MMS应用的安装过程。这里我就用RPM包来安装了,tar包也一样的。 概览 前面已经说过了
前面几节总览的说了些MMS是怎么回事,比较枯燥,也不容易懂,不过蛮重要的,工欲善其事必先利其器,弄清楚了原理,在接下来的章节里起到事半功倍的效果。 闲话少扯,来看看MMS应用的安装过程。这里我就用RPM包来安装了,tar包也一样的。# vim /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 # /etc/init.d/mongod start
# curl -OL https://downloads.mongodb.com/on-prem-mms/rpm/mongodb-mms-1.4.3.106-1.x86_64.rpm # rpm -ivh mongodb-mms-1.4.3.106-1.x86_64.rpm
mms.centralUrl=http://10.0.101.128:8080 mms.backupCentralUrl=http://10.0.101.128:8081 mms.fromEmailAddr=monitor@ttlsa.com mms.replyToEmailAddr=monitor@ttlsa.com mms.adminFromEmailAddr=monitor@ttlsa.com mms.adminEmailAddr=monitor@ttlsa.com mms.bounceEmailAddr=monitor@ttlsa.com mms.userSvcClass=com.xgen.svc.mms.svc.user.UserSvcDb mms.emailDaoClass=com.xgen.svc.core.dao.email.JavaEmailDao mms.mail.transport=smtp mms.mail.hostname=smtp.exmail.qq.com mms.mail.port=25 mms.mail.username=monitor@ttlsa.com mms.mail.password=************ mms.mail.tls= mongo.mongoUri=mongodb://127.0.0.1:27017/ mongo.replicaSet= mongo.backupdb.mongoUri= mongo.backupdb.replicaSet= ping.queue.size=100 ping.thread.count=100 increment.queue.size=14000 increment.thread.count=35 increment.gle.freq=70 increment.offer.time=120000 aws.accesskey= aws.secretkey= reCaptcha.enabled=false reCaptcha.public.key= reCaptcha.private.key= twilio.account.sid= twilio.auth.token= twilio.from.num= graphite.hostname= graphite.port=2003 snmp.default.hosts= snmp.listen.port=11611 snmp.default.heartbeat.interval=300
# /etc/init.d/mongodb-mms start Migrate MMS data Running migrations...[ OK ] Start MMS server Instance 0 starting.......[ OK ] Start Backup HTTP Server Instance 0 starting.....[ OK ] Start Backup Alert Process[ OK ]
# netstat -ntplu | grep mms tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 11993/mms-app tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 12754/mms-app tcp 0 0 0.0.0.0:8091 0.0.0.0:* LISTEN 12754/mms-app tcp 0 0 :::8092 :::* LISTEN 13206/mms-app tcp 0 0 ::ffff:127.0.0.1:8650 :::* LISTEN 13206/mms-app udp 0 0 0.0.0.0:11611 0.0.0.0:* 11993/mms-app
# mongo MongoDB shell version: 2.6.3 connecting to: test > show dbs admin (empty) alerts 0.203GB apiv3 0.578GB backupagent 0.078GB backupalerts 0.078GB backupbilling 0.078GB backupconfig (empty) backupjobs 0.078GB backuplogs 2.077GB backupsnapshot 0.078GB cloudconf 0.203GB local 0.078GB mmsdb 0.078GB mmsdbagentlog 1.078GB mmsdbautomation 0.078GB mmsdbautomationlog 0.078GB mmsdbconfig 0.328GB mmsdbdays 0.078GB mmsdbhours 0.078GB mmsdbjobs 0.078GB mmsdbminutes-even 0.078GB mmsdbminutes-odd 0.078GB mmsdbpings 0.578GB mmsdbprovisioning 0.078GB mmsdbqueues 0.078GB mmsdbrrdsampling 0.078GB mongo-distributed-lock 0.078GB
原文地址:MMS 监控服务安装(6), 感谢原作者分享。