|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
|
|
|
|
|
在[Scala官网](https://www.scala-lang.org/download/)根据平台选择下载`Scala`的安装包,
|
|
|
|
|
<p align="center" >
|
|
|
|
|
<img style="border: 2px solid #ddd;padding: 5px; background: #fff;" src="/api/attachments/224755" alt="" height="100%" width="100%" />
|
|
|
|
|
<img style="border: 2px solid #ddd;padding: 5px; background: #fff;" src="https://www.educoder.net/api/attachments/224755" alt="" height="100%" width="100%" />
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
接下来,解压到`/app`目录下:
|
|
|
|
@ -39,7 +39,7 @@ tar -zxvf scala-2.12.7.tgz -C /app
|
|
|
|
|
|
|
|
|
|
`vi /etc/profile`
|
|
|
|
|
<p align="center" >
|
|
|
|
|
<img style="border: 2px solid #ddd;padding: 5px; background: #fff;" src="/api/attachments/226288" alt="" height="100%" width="100%" />
|
|
|
|
|
<img style="border: 2px solid #ddd;padding: 5px; background: #fff;" src="https://www.educoder.net/api/attachments/226288" alt="" height="100%" width="100%" />
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
不要忘了配置好之后`source /etc/profile`
|
|
|
|
@ -57,5 +57,5 @@ tar -zxvf scala-2.12.7.tgz -C /app
|
|
|
|
|
在命令行中输入`scala`进入Scala命令行,输入`println("Hello World")` 就可以啦。
|
|
|
|
|
|
|
|
|
|
<p align="center" >
|
|
|
|
|
<img style="border: 2px solid #ddd;padding: 5px; background: #fff;" src="/api/attachments/225593" alt="" height="100%" width="100%" />
|
|
|
|
|
<img style="border: 2px solid #ddd;padding: 5px; background: #fff;" src="https://www.educoder.net/api/attachments/225593" alt="" height="100%" width="100%" />
|
|
|
|
|
</p>
|
|
|
|
|