需要安装jdk
1、https://www.scala-lang.org/download/
2、解压缩 ,配置环境变量
cd /usr/local/share
tar -xzvf scala-2.13.1.tgz
vi /etc/profile
export PATH="$PATH:/usr/local/share/scala/bin"保存后source /etc/profile执行scala