• 【TcaplusDB知识库】Tmonitor后台一键安装介绍(一)


    一键安装脚本修改

    Tmonitor一键安装脚本默认是为TcaplusDB业务编写的,对于其他业务,安装步骤同"Tmonitor单机安装指引",安装前要对以下脚本进行修改:

    1.修改init_some_tables.sql。

    \2. 修改脚本的gen_dcsvr_conf()函数。

    两个Tmonitor互相监控的配置实例:

    第二个监控Tmonitor2安装配置

    A.修改sql语句、配置文件和执行安装脚本

    1. scp tmonitor_install_2.2.5sp3_130243.tar.gz /data

    2. tar xf tmonitor_install_2.2.5sp3_130243.tar.gz

    3. Vim init_some_tables.sql

    4. mysql -h10.59.41.57 -uroot -ptcaplus#2003

    5. create database tmonitor2_db;use tmonitor2_db;

    6. source create_tables.sql

    7. source init_some_tables.sql

    8. Vim tmonitor_install.pl

    9. 修改tmonitor_conf.xml配置文件,为执行脚本安装做准备

    10. 最后执行以下命令安装tmonitor2,有可能出现错误,解决方法如下

    $ ./tmonitor_install.pl install

    Can't locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./tmonitor_install.pl line 10.

    BEGIN failed--compilation aborted at ./tmonitor_install.pl line 10.

    Transaction Check Error:file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarchfile /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarchError Summary-------------

    把rpmforge的关闭(enabled=0,位于/etc/yum.repos.d/rpmforge.repo),

    再次安装,成功!搞定!

    yum install -y perl-XML*


    更多信息请关注TcaplusDB微信公众号,风里雨里,我们一直在等你!

    TcaplusDB是腾讯出品的分布式NoSQL数据库,存储和调度的代码完全自研。具备缓存+落地融合架构、PB级存储、毫秒级时延、无损水平扩展和复杂数据结构等特性。同时具备丰富的生态、便捷的迁移、极低的运维成本和五个九高可用等特点。客户覆盖游戏、互联网、政务、金融、制造和物联网等领域。

  • 相关阅读:
    面试 - react-redux开发者工具的使用
    今年天猫双11,打响电商AI时代第一枪
    基于Linux的邮件模拟系统设计与实现
    7.联合索引(最左前缀原则)
    C++算法:寻找两个正序数组的中位数
    Oracle中ALTER TABLE的五种用法(三)
    Java的Lambda表达式学习笔记
    Springboot毕设项目办公用品在线销售系统25f35(java+VUE+Mybatis+Maven+Mysql)
    Spring之@Transactional源码解析
    子网掩码计算工具:IPSubnetter
  • 原文地址:https://blog.csdn.net/Tcapshuju/article/details/125421775