1、下载Scala2.11
$ cd /root/soft
$ wget https://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.tgz
2、安装Scala2.11
$ tar -xzvf scala-2.11.8.tgz
3、配置环境变量
$ vim /etc/profile
环境变量内容:
export SCALA_HOME=/root/soft/scala-2.11.8
export PATH=$PATH:$SCALA_HOME/bin
4、测试安装是否生效
$ scala -version