环境变量 方法一: vi ~/.bash_profile 只对当前用户有效 PATH = $PATH:$HOME/bin:路径/bin vi /etc/profile 对所用用户有效 PATH=$PATH:路径/bin export PATH