添加环境变量:
[root@bogon app]# vim ~/.bash_profile export SCALA_HOME=/home/hj/app/scala-2.11.8export PATH=$SCALA_HOME/bin:$PATH