-
查找thrift文件位置 /opt/xxxx/thrift/bin/thrift
-
新同事,修改.bashrc文件, 把/opt/xxxx/thrift/bin/thrift加入到环境变量中
-
注意设置完环境变量,需要使用source ~/.bashrc刷新一下使其生效
[xxxx@dev02 ~]$ whereis thrift
thrift: /opt/xxxx/thrift/bin/thrift
[xxxx@dev02 ~]$ echo $PATH
/home/xxxx/.gvm/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/xxxx/.local/bin:/home/xxxx/bin:/opt/xxxx/go1.13/bin:/opt/xxxx/thrift/bin