当前位置:网站首页>[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (I)

[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (I)

2022-06-23 16:02:00 Database master

This section introduces Tmonitor web portal And the installation and deployment of background processes ,web portal And background should be installed on different machines . Be careful : All operations are in root Execute under authority .

Installation needs 3 A package ( The latest installation package shall prevail ):

  1. web_portal_2.2.18_05130ad9.tar.gz Mainly Tmonitor Manage Pages

  2. tmonitor_install_2.2.18_05130ad9.tar.gz Mainly Tmonitor Background processes

We are going to put Tmonitor And tcaplus center Installed on the same machine , Put the top one first 3 Packages uploaded to /data Catalog , decompression

1. Tmonitor Web Portal install

  1. cd /data/web_portal/, because tcaplus OMS Occupied 80 port , So modify conf file , Listen 8080 port . modify server.php, set_httpd_port(8080)

  2. Check the database datadir Whether the disk is enough . If it's not enough, change to /data Under the plate

  3. root The user login mysql

  4. mysql> create database tmonitor_center_db; -- Particular attention , tmonitor The foreground database and background database are separated , The foreground database uses this name , Backstage with other names

  5. mysql -uroot -pxxxx -Dtmonitor_center_db < *.sql hold /data/web_portal All under directory sql File import

  6. mysql> create user tmonitor;

  7. grant ALL on tmonitor_center_db.* to 'tmonitor'@'%' identified by 'xxxx'

  8. grant ALL on tmonitor_center_db.* to 'tmonitor'@'localhost' identified by 'xxxx'

  9. grant ALL on tmonitor_center_db.* to 'tmonitor'@'127.0.0.1' identified by 'xxxx'

  10. grant ALL on tmonitor_center_db.* to 'tmonitor'@'100.78.65.157' identified by 'xxxx'

  11. grant ALL on tmonitor_center_db.* to 'tmonitor'@'100_78_65_157' identified by 'xxxx- echo $HOSTNAME

  12. flush privileges

  13. Switch to root user , perform ./install_web_protal.sh 100.78.65.157 3306 tmonitor_center_db tmonitor xxxx PASSWORD 2.2.7 ( The penultimate argument is LoginType, You can fill in OA perhaps PASSWORD), This script will create /data/monitor Catalog , The foreground page will start from this directory

  14. then netstat –lpn Check 8080 Whether the port is started , without , Try it again , php server.php start -p 8080 start-up , Stop command : php server.php stop

  15. Log in to the page , Registered users tmonitor, If you can't log in , telnet ip Port look select * from tm_users_permission; See if you have administrator privileges (role=1)

  16. Click on ” management ” Button , Take what is being deployed tmonitor System added , After the background process gets up, it can provide services

  17. Here, the front desk installation is completed , Next, install the background process

2. Tmonitor Web Portal add to Tmonitor System

  1. https://git.code.oa.com/gcloud_storage_group/tmonitor The code and installation package are here , You may need to apply for git jurisdiction

  2. Upload web_portal_2.2.18_05130ad9.tar.gz Package to /data Under the table of contents , decompression , cd /data/tmonitor_install

  3. vim tmonitor_conf.xml Modify the following

  4. The interface used in the following figure is used for alarm sending . If it is IDC machine , Use tof Send SMS and wechat , Use uwork Make a phone call

  5. If it is IDC machine , Need to be in tof and uwork” service ip” Add... To the list sasvr Of ip, To send the alarm normally (tof apply : http://tof.oa.com/application/views/, Or contact jasonlzhang, uwork Apply to contact yorkershi).

  6. The machine should be able to connect directly tnm2, Need to install agent Tools , The specific steps are described later in the document .

  7. Above picture dcsvr Of business_id Default to 1, If there are more than one dcsvr Just increase... In turn . dc_tconnd Port for 7980, Keep the default without changing


For more information, please pay attention to TcaplusDB WeChat official account , In the wind and rain , We've been waiting for you !

TcaplusDB It's a distributed product of Tencent NoSQL database , The code for storage and scheduling is completely self-developed . With cache + Landing fusion architecture 、PB Levels of storage 、 Millisecond delay 、 Lossless horizontal expansion and complex data structure . At the same time, it has rich ecological environment 、 Easy migration 、 Extremely low operation and maintenance costs and five nine high availability features . Customer coverage game 、 Internet 、 government affairs 、 Finance 、 Manufacturing and the Internet of things .

原网站

版权声明
本文为[Database master]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231528373399.html