请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

percona-toolkit-3.0.13-1.el7.x86_64 安装完成,pt: 未找到命令

这都显示安装成功了,为何pt命令还是找不到?难道是需要配置环境变量?
我看了下 /etc/bin 下有相关pt的文件,是不是环境变量需要配置啥的

[root@iZuf6iq8e7ya9v3ix71k0pZ tools]# rpm -ivh percona-toolkit-3.0.13-1.el7.x86_64.rpm
警告:percona-toolkit-3.0.13-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 8507efa5: NOKEY
准备中...                          ################################# [100%]
	软件包 percona-toolkit-3.0.13-1.el7.x86_64 已经安装
[root@iZuf6iq8e7ya9v3ix71k0pZ tools]# pt
-bash: pt: 未找到命令
-rwxr-xr-x 1 root root      41748 1月   9 2019 pt-align
-rwxr-xr-x 1 root root     270649 1月   9 2019 pt-archiver
-rwxr-xr-x 1 root root       3891 11月  6 2016 ptaskset
-rwxr-xr-x 1 root root     170784 1月   9 2019 pt-config-diff
-rwxr-xr-x 1 root root     167980 1月   9 2019 pt-deadlock-logger
-rwxr-xr-x 1 root root     166328 1月   9 2019 pt-diskstats
-rwxr-xr-x 1 root root     171101 1月   9 2019 pt-duplicate-key-checker
-rwxr-xr-x 1 root root      50158 1月   9 2019 pt-fifo-split
-rwxr-xr-x 1 root root     151811 1月   9 2019 pt-find
-rwxr-xr-x 1 root root      67305 1月   9 2019 pt-fingerprint
-rwxr-xr-x 1 root root     134957 1月   9 2019 pt-fk-error-logger
-rwxr-xr-x 1 root root     223461 1月   9 2019 pt-heartbeat
-rwxr-xr-x 1 root root     228215 1月   9 2019 pt-index-usage
-rwxr-xr-x 1 root root      32406 1月   9 2019 pt-ioprofile
-rwxr-xr-x 1 root root     256066 1月   9 2019 pt-kill
-rwxr-xr-x 1 root root      21914 1月   9 2019 pt-mext
-rwxr-xr-x 1 root root    6691168 1月   9 2019 pt-mongodb-query-digest
-rwxr-xr-x 1 root root    7168736 1月   9 2019 pt-mongodb-summary
-rwxr-xr-x 1 root root     108133 1月   9 2019 pt-mysql-summary
-rwxr-xr-x 1 root root     423780 1月   9 2019 pt-online-schema-change
-rwxr-xr-x 1 root root      24655 1月   9 2019 pt-pmp
-rwxr-xr-x 1 root root     527581 1月   9 2019 pt-query-digest
-rwxr-xr-x 1 root root    4373536 1月   9 2019 pt-secure-collect
-rwxr-xr-x 1 root root      78243 1月   9 2019 pt-show-grants
-rwxr-xr-x 1 root root      37785 1月   9 2019 pt-sift
-rwxr-xr-x 1 root root     146954 1月   9 2019 pt-slave-delay
-rwxr-xr-x 1 root root     131377 1月   9 2019 pt-slave-find
-rwxr-xr-x 1 root root     184918 1月   9 2019 pt-slave-restart
-rwxr-xr-x 1 root root      74759 1月   9 2019 pt-stalk
-rwxr-xr-x 1 root root      90817 1月   9 2019 pt-summary
-rwxr-xr-x 1 root root     459156 1月   9 2019 pt-table-checksum
-rwxr-xr-x 1 root root     405093 1月   9 2019 pt-table-sync
-rwxr-xr-x 1 root root     247744 1月   9 2019 pt-table-usage
-rwxr-xr-x 1 root root     332909 1月   9 2019 pt-upgrade
-rwxr-xr-x 1 root root     178417 1月   9 2019 pt-variable-advisor

正在回答

插入代码

2回答

默认情况下pt 应该是安装在/usr/bin目录下的,并不用设置环境变量。不知道是不是你系统的原因安装在了/etc/bin/下。如何没有安装在标准目录下则需要手动设置一下export PATH=/etc/bin:$PATH这样就可以了。

0 回复 有任何疑惑可以回复我~
  • 提问者 smniuhe #1
    谢谢解答,明白了,可能是以前一些配置的问题
    回复 有任何疑惑可以回复我~ 2019-07-16 09:15:50
提问者 smniuhe 2019-07-15 21:27:05

pt-* 相关命令是可以使用的,pt 可能是 alias

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号