[root@m1 ~]# vi /etc/profile
export SCALA_HOME=/usr/local/soft/scala-2.11.8export PATH=$PATH:$SCALA_HOME/bin
[root@m1 ~]# source /etc/profile