当前位置:网站首页>【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
2022-06-27 10:13: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, 保持默认不需更改

边栏推荐
- In the three-tier architecture, at which layer is the database design implemented, not at the data storage layer?
- Curiosity mechanism in reinforcement learning
- User authentication technology
- R language plot visualization: plot to visualize the two-dimensional histogram contour map, add numerical labels on the contour lines, customize the label font color, and set the mouse hover display e
- DNS standby server information, DNS server address (how many DNS preferred and standby are filled in)
- 分布式文件存储系统的优点和缺点
- flutter 微信分享
- 学习笔记之——数据集的生成
- . Net
- Bluetooth health management device based on stm32
猜你喜欢

前馈-反馈控制系统设计(过程控制课程设计matlab/simulink)

Error im002 when Oracle connects to MySQL
测试同学怎么参与codereview

【OpenCV 例程200篇】212. 绘制倾斜的矩形

学习笔记之——数据集的生成

C# Any()和AII()方法

通俗易懂理解樸素貝葉斯分類的拉普拉斯平滑

产品力对标海豹/Model 3,长安深蓝SL03预售17.98万起

TCP/IP 详解(第 2 版) 笔记 / 3 链路层 / 3.4 桥接器与交换机 / 3.4.1 生成树协议(Spanning Tree Protocol (STP))

多线程实现 重写run(),怎么注入使用mapper文件操作数据库
随机推荐
In the three-tier architecture, at which layer is the database design implemented, not at the data storage layer?
细说物体检测中的Anchors
Explain the imaging principle of various optical instruments in detail
TCP/IP 详解(第 2 版) 笔记 / 3 链路层 / 3.4 桥接器与交换机 / 3.4.1 生成树协议(Spanning Tree Protocol (STP))
Multi thread implementation rewrites run (), how to inject and use mapper file to operate database
es 根据索引名称和索引字段更新值
迪米特法则
js的数组拼接「建议收藏」
leetcode:968. Monitor the binary tree [tree DP, maintain the three states of each node's subtree, it is very difficult to think of the right as a learning, analogous to the house raiding 3]
torch. utils. data. Randomsampler and torch utils. data. Differences between sequentialsampler
Brother sucks 590000 fans with his unique "quantum speed reading" skill: look at the street view for 0.1 seconds, and "snap" can be accurately found on the world map
How do I get the STW (pause) time of a GC (garbage collector)?
Audiotrack and audiolinker
leetcode:522. Longest special sequence II [greed + subsequence judgment]
C语言学习-Day_05
谷歌浏览器 chropath插件
Bluetooth health management device based on stm32
torch.utils.data.RandomSampler和torch.utils.data.SequentialSampler的区别
C apprentissage des langues - jour 12.
以后发现漏洞,禁止告诉中国!





