1、上传到linux,使用tar命令解压scala包
[[email protected] software]# tar -xzvf scala-2.11.8.tgz -C /opt/module/
2、查看解压后scala
3、编辑/etc/profile,配置scala环境变量
[[email protected] jdk1.8.0_144]# vim /etc/profile
##SCALA_HOME
export SCALA_HOME=/opt/module/scala-2.11.8
export PATH=$PATH:$SCALA_HOME/bin
4、查看scala环境变量是否配置成功
[[email protected] scala-2.11.8]# source /etc/profile
[[email protected] scala-2.11.8]# scala -version
Scala code runner version 2.11.8 -- Copyright 2002-2016, LAMP/EPFL