真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

pt(PerconaToolkit)工具安裝-創(chuàng)新互聯(lián)

pt(Percona Toolkit)工具安裝

創(chuàng)新互聯(lián)-云計(jì)算及IDC服務(wù)提供商,涵蓋公有云、IDC機(jī)房租用、服務(wù)器托管、等保安全、私有云建設(shè)等企業(yè)級(jí)互聯(lián)網(wǎng)基礎(chǔ)服務(wù),咨詢熱線:18980820575

一.pt(Percona Toolkit)工具是由Percona公司開發(fā)的一個(gè)用perl語言編寫的工具集,包含很多功能,例如在線更改數(shù)據(jù)表結(jié)構(gòu),校驗(yàn)主從數(shù)據(jù),檢查數(shù)據(jù)庫狀態(tài),分析慢查詢等這些靠人手做起來比較麻煩的事情,功能強(qiáng)大,操作簡(jiǎn)單

二.安裝依賴包

yum install -y perl perl-IO-Socket-SSL perl-DBD-MySQL perl-Time-HiRes perl-Digest-MD5 perl-ExtUtils-MakeMaker

下載Percona Toolkit工具編譯包

[root@node1 ~]# wget "https://www.percona.com/downloads/percona-toolkit/3.0.3/binary/tarball/percona-toolkit-3.0.3_x86_64.tar.gz"

解壓

[root@node1 ~]# tar xf percona-toolkit-3.0.3_x86_64.tar.gz

進(jìn)入目錄安裝

[root@node1 ~]# cd percona-toolkit-3.0.3

開始編譯安裝

[root@node1 percona-toolkit-3.0.3]# perl Makefile.PL

[root@node1 percona-toolkit-3.0.3]# make

[root@node1 percona-toolkit-3.0.3]# make install

就顯示出一些常用的pt命令

[root@node1 ~]# ll /usr/local/bin/pt-*

-r-xr-xr-x 1 root root   41753 Oct  2 22:02 /usr/local/bin/pt-align

-r-xr-xr-x 1 root root  264365 Oct  2 22:02 /usr/local/bin/pt-archiver

-r-xr-xr-x 1 root root  169286 Oct  2 22:02 /usr/local/bin/pt-config-diff

-r-xr-xr-x 1 root root  166482 Oct  2 22:02 /usr/local/bin/pt-deadlock-logger

-r-xr-xr-x 1 root root  165199 Oct  2 22:02 /usr/local/bin/pt-diskstats

-r-xr-xr-x 1 root root  169478 Oct  2 22:02 /usr/local/bin/pt-duplicate-key-checker

-r-xr-xr-x 1 root root   50163 Oct  2 22:02 /usr/local/bin/pt-fifo-split

-r-xr-xr-x 1 root root  149999 Oct  2 22:02 /usr/local/bin/pt-find

-r-xr-xr-x 1 root root   67310 Oct  2 22:02 /usr/local/bin/pt-fingerprint

-r-xr-xr-x 1 root root  133459 Oct  2 22:02 /usr/local/bin/pt-fk-error-logger

-r-xr-xr-x 1 root root  219308 Oct  2 22:02 /usr/local/bin/pt-heartbeat

-r-xr-xr-x 1 root root  226592 Oct  2 22:02 /usr/local/bin/pt-index-usage

-r-xr-xr-x 1 root root   32411 Oct  2 22:02 /usr/local/bin/pt-ioprofile

-r-xr-xr-x 1 root root  250986 Oct  2 22:02 /usr/local/bin/pt-kill

-r-xr-xr-x 1 root root   21876 Oct  2 22:02 /usr/local/bin/pt-mext

-r-xr-xr-x 1 root root 6402784 Oct  2 22:02 /usr/local/bin/pt-mongodb-query-digest

-r-xr-xr-x 1 root root 6596000 Oct  2 22:02 /usr/local/bin/pt-mongodb-summary

-r-xr-xr-x 1 root root  102146 Oct  2 22:02 /usr/local/bin/pt-mysql-summary

-r-xr-xr-x 1 root root  399567 Oct  2 22:02 /usr/local/bin/pt-online-schema-change

-r-xr-xr-x 1 root root   24660 Oct  2 22:02 /usr/local/bin/pt-pmp

-r-xr-xr-x 1 root root  521606 Oct  2 22:02 /usr/local/bin/pt-query-digest

-r-xr-xr-x 1 root root   75986 Oct  2 22:02 /usr/local/bin/pt-show-grants

-r-xr-xr-x 1 root root   37790 Oct  2 22:02 /usr/local/bin/pt-sift

-r-xr-xr-x 1 root root  145825 Oct  2 22:02 /usr/local/bin/pt-slave-delay

-r-xr-xr-x 1 root root  129838 Oct  2 22:02 /usr/local/bin/pt-slave-find

-r-xr-xr-x 1 root root  182243 Oct  2 22:02 /usr/local/bin/pt-slave-restart

-r-xr-xr-x 1 root root   73082 Oct  2 22:02 /usr/local/bin/pt-stalk

-r-xr-xr-x 1 root root   90795 Oct  2 22:02 /usr/local/bin/pt-summary

-r-xr-xr-x 1 root root  424922 Oct  2 22:02 /usr/local/bin/pt-table-checksum

-r-xr-xr-x 1 root root  399440 Oct  2 22:02 /usr/local/bin/pt-table-sync

-r-xr-xr-x 1 root root  247137 Oct  2 22:02 /usr/local/bin/pt-table-usage

-r-xr-xr-x 1 root root  331255 Oct  2 22:02 /usr/local/bin/pt-upgrade

-r-xr-xr-x 1 root root  177292 Oct  2 22:02 /usr/local/bin/pt-variable-advisor

-r-xr-xr-x 1 root root  102551 Oct  2 22:02 /usr/local/bin/pt-visual-explain

這樣就算安裝完畢了,很簡(jiǎn)單.

搞個(gè)測(cè)試,MySQL服務(wù)狀態(tài)顯示:

[root@node1 ~]# pt-mysql-summary --user=root --password='abc123'

mysql: [Warning] Using a password on the command line interface can be insecure.

# Percona Toolkit MySQL Summary Report #######################

              System time | 2017-10-03 05:03:34 UTC (local TZ: PDT -0700)

# Instances ##################################################

  Port  Data Directory             Nice OOM Socket

  ===== ========================== ==== === ======

        /var/lib/mysql             0    0   /var/lib/mysql/mysql.sock

# MySQL Executable ###########################################

       Path to executable | /usr/sbin/mysqld

              Has symbols | Yes

# Report On Port 3306 ########################################

                     User | root@localhost

                     Time | 2017-10-02 22:03:34 (PDT)

                 Hostname | node1

                  Version | 5.7.19-log MySQL Community Server (GPL)

                 Built On | Linux x86_64

                  Started | 2017-10-02 03:48 (up 0+18:15:33)

                Databases | 8

                  Datadir | /var/lib/mysql/

                Processes | 1 connected, 1 running

              Replication | Is not a slave, has 0 slaves connected

                  Pidfile | /var/run/mysqld/mysqld.pid (exists)

# Processlist ################################################

后面一大串,在此省略,測(cè)試正常運(yùn)行。

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。


網(wǎng)站題目:pt(PerconaToolkit)工具安裝-創(chuàng)新互聯(lián)
轉(zhuǎn)載來于:http://weahome.cn/article/gihos.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部