1、下载
https://github.com/lampepfl/dotty/tags
官网下载
Scala 2.12.17
选择2.12版本
2、解压
上传到172服务器
解压
cd /home/scala/ tar -zxvf scala-2.12.17.tgz
3、修改环境变量
vim /etc/profile
export SCALA_HOME=/home/scala/scala-2.12.17
export PATH=$PATH:$SCALA_HOME/bin
source /etc/profile
4、验证
scala