一. 下載scala並解壓
cd /home/software
wget https://downloads.lightbend.com/scala/2.12.11/scala-2.12.11.tgz
tar -xvf scala-2.12.11.tgz -C /home/
二. 配置環境變量及驗證
vi /etc/profile
export SCALA_HOME=/home/scala-2.12.11
export PATH=${PATH}:${SCALA_HOME}/bin
source /etc/profile