Install Scala under CentOS (case is Scala2.11.6)
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