当前位置:网站首页>【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
2022-06-13 11:00:00 【InfoQ】
【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
- web_portal_2.2.18_05130ad9.tar.gz 主要是Tmonitor管理页面
- tmonitor_install_2.2.18_05130ad9.tar.gz 主要是Tmonitor后台进程
1. Tmonitor Web Portal安装
- cd /data/web_portal/, 由于tcaplus OMS 已经占用80端口, 所以修改conf 文件, Listen 8080 端口. 修改server.php, set_httpd_port(8080)
- 检查数据库datadir 所在磁盘是否够用. 如果不够用就改到/data 盘下
- root 用户登陆mysql
- mysql> create database tmonitor_center_db; -- 特别注意, tmonitor前台的数据库和后台数据库是分开的, 前台数据库用这个名字, 后台用其他的名字
- mysql -uroot -pxxxx -Dtmonitor_center_db < *.sql 把/data/web_portal 目录下的所有sql 文件导入
- mysql> create user tmonitor;
- grant ALL on tmonitor_center_db.* to 'tmonitor'@'%' identified by 'xxxx'
- grant ALL on tmonitor_center_db.* to 'tmonitor'@'localhost' identified by 'xxxx'
- grant ALL on tmonitor_center_db.* to 'tmonitor'@'127.0.0.1' identified by 'xxxx'
- grant ALL on tmonitor_center_db.* to 'tmonitor'@'100.78.65.157' identified by 'xxxx'
- grant ALL on tmonitor_center_db.* to 'tmonitor'@'100_78_65_157' identified by 'xxxx- echo $HOSTNAME
- flush privileges
- 切换到root 用户, 执行 ./install_web_protal.sh 100.78.65.157 3306 tmonitor_center_db tmonitor xxxx PASSWORD 2.2.7 (倒数第二个参数是LoginType, 可以填OA 或者PASSWORD), 这个脚本会创建/data/monitor 目录, 前台页面会从这个目录下启动
- 然后netstat –lpn 检查8080 端口是否启动, 如果没有, 重装试试 , php server.php start -p 8080 启动, 停止的命令: php server.php stop
- 登陆到页面, 注册用户tmonitor, 如果无法登陆, telnet ip 端口看看 select * from tm_users_permission; 看看是不是管理员权限(role=1)

- 点击”管理” 按钮, 把正在部署的tmonitor系统添加进来, 等后台进程起来后就可以提供服务了

- 到这里前台安装完毕, 下面安装后台进程
2. Tmonitor Web Portal添加Tmonitor系统
- https://git.code.oa.com/gcloud_storage_group/tmonitor代码及安装包在此, 可能需要申请git权限
- 上传web_portal_2.2.18_05130ad9.tar.gz 包到/data 目录下, 解压, cd /data/tmonitor_install
- vim tmonitor_conf.xml 修改以下内容

- 告警发送使用下图所用的接口. 如果是IDC 机器, 使用tof 发送短信和微信, 使用uwork 打打电话

- 如果是IDC 机器, 需要在tof 和uwork”服务ip” 列表中添加sasvr 的ip, 才能正常发送告警(tof 申请:http://tof.oa.com/application/views/, 或联系jasonlzhang, uwork 申请联系 yorkershi).
- 机器要能直接连tnm2, 需要安装agent 工具, 具体步骤在文档后面描述.

- 上图中dcsvr 的business_id 默认改成1, 如果有多个dcsvr 就依次增加. dc_tconnd 的端口用7980, 保持默认不需更改


边栏推荐
- 《气候韧性和可持续性》| 新研究表明超级飓风未来几年会对南亚产生更大破坏
- Inclusion exclusion principle (number divisible)
- Similarities and differences between decoration mode and agency mode
- 作为一个测试人员,这些基础知识必不可少
- Folder data synchronization tool sync folders Pro
- ue5 小知识点 random point in Bounding Boxf From Stream
- 我们用了一个周末,将 370 万行代码迁移到了 TypeScript
- Ue5 small knowledge points geometry script modeling
- 数据库学习笔记(第十五章)
- Environ. Sci. Technol. (if=9.028) | impact of urban greening on atmospheric environment
猜你喜欢
Codeforces Round #798 (Div. 2)ABCD
数据库学习笔记(第十六章)
关于 SAP Spartacus CmsService.getComponentData 可能的优化思路
数据库系统概念(第十七章)
vivo大规模 Kubernetes 集群自动化运维实践
Ue5 random point in bounding boxf from stream
State compression DP example (traveling salesman problem and rectangle filling problem)
Folder data synchronization tool sync folders Pro
音视频技术开发周刊 | 249
Go 要加个箭头语法,这下更像 PHP 了!
随机推荐
Alibaba's employees decreased by 4000 in the first quarter; Programmers wrote scripts to hang up vaccine numbers and were arrested for making a profit of 400000 yuan; Sohu encounters epic email fraud,
【sql语句基础】——查(select)(单表查询顺序补充)
Anonymity in Web3 and NFT
MFC自定义button实现颜色控制
of_ find_ compatible_ Node find all nodes
Nim游戏阶梯 Nim游戏和SG函数应用(集合游戏)
硬件工程师薪资虚高,你认可吗?
About instruction set bits and instruction architecture bits
Questions and answers of the labor worker general basic (labor worker) work license in 2022
【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍
State compression DP example (traveling salesman problem and rectangle filling problem)
Ue5 random point in bounding boxf from stream
Go zero microservice Practice Series (III. API definition and table structure design)
Database learning notes (Chapter 16)
ST表学习
Web3 系统构建:去中心化的原则、模型和方法(上)
Prim求最小生成树(朴素版稠密图)
2022 tailings recurrent training question bank and simulated examination
Interval modification multiplication and addition (a good example of understanding lazy tags)
Understand an article: Spark operation mode