Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Install Scala under CentOS (case is Scala2.11.6)

Shulou Source: shulou.com Published: 2022-06-01 08:33:28 11月26日 Update

Note: download address: http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.tgz?_ga=1.41078626.1125902863.1429259252

Can be downloaded to a specified location using the "download address" method of # wget

Download scala-2.11.6.tgz and save it to the / usr/local/src directory.

1. Decompression

# tar-zxf scala-2.11.6.tgz

# sudo mv scala-2.11.6 / usr/lib

2. Configure environment variables

# sudo vim / etc/profile

Add at the end

Export SCALA_HOME=/usr/lib/scala-2.11.6

Export PATH=$PATH:$SCALA_HOME/bin

3. Make the configuration file effective immediately

Source / etc/profile

4. Test

# scala-version

Display: Scala code runner version 2.11.6. Installation succeeded

Tags: Address configuration success location variable file method environment directory exploitable test case Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Information Apple Docker Linux