I. Preparation of documents
1.1 File name
Scala-2.12.1.tgz
1.2
Http://www.scala-lang.org/download/2.12.1.html
Second, tool preparation
2.1 Xshell
A powerful secure terminal emulation software that supports SSH1, SSH2, and the Telnet protocol of the Microsoft Windows platform.
Xshell's secure connection to remote hosts via the Internet and its innovative design and features help users enjoy their work in a complex network environment.
2.2 Xftp
A powerful sftp, FTP file transfer software based on the MS Windows platform.
With Xftp, MS Windows users can safely transfer files between Unix/linux and Windows PCs.
Third, the Operation procedure
3.1 Upload the downloaded Scala to the/usr directory via XFTP to the specified virtual machine
3.2 Connect to the virtual machine via Xshell, execute the following command to extract the file:
$ tar zxvf scala-2.12.1.tgz
3.3 Setting environment variables using the VI Editor
$ sudo vi/etc/profile
At the end of the file, add the following:
#Scala ENV
Export scala_home=/usr/scala-2.12.1
Export path=path:scala_home/bin
3.4 Exit the VI Editor to make environment variable settings effective immediately
$ source/etc/profile
3.5 Viewing the Scala version
$scala-version
Scala Code Runner version 2.12.1-Copyright 2002-2016, LAMP/EPFL and Lightbend, Inc.
Excerpt from: http://www.cnblogs.com/liugh/p/6624491.html
Linux under Scala (2.12.1) installation