更改运行用户
mongodb-mms服务默认以mongodb-mms用户运行,代理服务以mongodb-mms-agent用户运行。如果要改变运行用户,这么来做:
- 编辑<install_dir>/conf/mms.conf文件:
MMS_USER=new_user - 更改<install_dir>目录权限:
chown -R new_user.new_group <install_dir> - 重启MMS服务:
<install_dir>/bin/mongodb-mms restart
更改服务端口
MMS使用到端口参见《MMS 使用到的端口(13)》。如果要改变端口,这么来做:文章源自运维生存时间-https://www.ttlsa.com/mms/mms-change-running-user-and-port/
- 编辑<install_dir>/conf/conf-mms.properties:
mms.centralUrl=http://mms.ttlsa.com:<new_port> - 编辑<install_dir>/conf/mms.conf
BASE_PORT=<new_port> - 重启MMS服务:
<install_dir>/bin/mongodb-mms restart

我的微信
微信公众号
扫一扫关注运维生存时间公众号,获取最新技术文章~
来自外部的引用