1.上传scala部署包至虚拟机,解压缩
解压scala
tar –zxvf scala-2.11.8.tgz
配置环境变量
vi /etc/profile
export SCALA_HOME=/usr/tools/scala-2.11.8
export PATH=$PATH:$SCALA_HOME/bin
是环境变量生效
source /etc/profile
检查安装成功:
scala –version
Scala code runner version 2.11.8 -- Copyright 2002-2016, LAMP/EPFL