配adb刷机环境过程如下五步:
1.打开终端,输入如下命令
cd ~
touch .bash_profile
open -e .bash_profile
2.此时会打开 一个空白文档,在文档中输入以下命令
export PATH=${PATH}:/Users/你的用户名/Library/Android/sdk/platform-tools
export PATH=${PATH}:/Users/你的用户名/Library/Android/sdk/tools
3.保存,关掉这个文档
4.端输入命令  
source .bash_profile
5.此时终端输入adb,如果未显示command not found,说明此命令有效,adb刷机环境配置成功