scala安装 centos7

1.创建目录

mkdir -p /usr/local/scala
cd /usr/local/scala

2.下载scala jdk

https://www.scala-lang.org/download/
wget https://downloads.lightbend.com/scala/2.13.3/scala-2.13.3.tgz
tar -zvxf scala-2.13.3.tgz    # 解压

3.配置环境变量

vim /etc/profile
export SCALA_HOME=/usr/local/scala/scala-2.13.3
export PATH=$SCALA_HOME/bin:$PATH

source /etc/profile

4.查看是否安装成功

scala

  

上一篇:cacti图形合并插件aggregate


下一篇:Ubuntu - 安装Spark3.0.0