解压并移动到/software目录:
tar -zxvf scala-2.12.4.tgz
mv scala-2.12.4 /software/scala
在/etc/profile
文件添加:
export SCALA_HOME=/software/scala
export PATH=$SCALA_HOME/bin:$PATH
保存并更新/etc/profile:source /etc/profile
查看是否成功:scala –version
解压并移动到/software目录:
tar -zxvf scala-2.12.4.tgz
mv scala-2.12.4 /software/scala
在/etc/profile
文件添加:
export SCALA_HOME=/software/scala
export PATH=$SCALA_HOME/bin:$PATH
保存并更新/etc/profile:source /etc/profile
查看是否成功:scala –version