MMS 更改运行用户和端口(24)

  • A+
所属分类:mms

更改运行用户

mongodb-mms服务默认以mongodb-mms用户运行,代理服务以mongodb-mms-agent用户运行。如果要改变运行用户,这么来做:

  1. 编辑<install_dir>/conf/mms.conf文件:
    MMS_USER=new_user
  2. 更改<install_dir>目录权限:
    chown -R new_user.new_group <install_dir>
  3. 重启MMS服务:
    <install_dir>/bin/mongodb-mms restart

更改服务端口

MMS使用到端口参见《MMS 使用到的端口(13)》。如果要改变端口,这么来做:

  1. 编辑<install_dir>/conf/conf-mms.properties:
    mms.centralUrl=http://mms.ttlsa.com:<new_port>
  2. 编辑<install_dir>/conf/mms.conf
    BASE_PORT=<new_port>
  3. 重启MMS服务:
    <install_dir>/bin/mongodb-mms restart
weinxin
微信公众号
扫一扫关注运维生存时间公众号,获取最新技术文章~

评论已关闭!

目前评论:1   其中:访客  0   博主  0   引用   1

    来自外部的引用: 1

    • 资源分享:mongodb官方监控MMS | 月松博客月松博客