【scala】scala安装测试

下载安装scala:
scala-2.13.1.tgz

解压:

[[email protected] ~]$ tar -zxvf scala-2.13.1.tgz

查看目录:

[[email protected] scala-2.13.1]$ ls -ll
total 16
drwxrwxr-x. 2 hadoop hadoop   162 Sep 18 17:23 bin
drwxrwxr-x. 4 hadoop hadoop    86 Sep 18 17:23 doc
drwxrwxr-x. 2 hadoop hadoop   153 Sep 18 17:23 lib
-rw-rw-r--. 1 hadoop hadoop 11357 Sep 18 17:23 LICENSE
drwxrwxr-x. 3 hadoop hadoop    18 Sep 18 17:23 man
-rw-rw-r--. 1 hadoop hadoop   646 Sep 18 17:23 NOTICE

启动并测试Scala:

scala> println("hello world")
hello world

scala> 5*9
res1: Int = 45

scala> 2*res1
res4: Int = 90

scala> :help   //这里显示了scala命令的使用方法,注意命令前不要少了:
All commands can be abbreviated, e.g., :he instead of :help.
:completions <string>    output completions for the given string
:edit <id>|<line>        edit history
:help [command]          print this summary or command-specific help
:history [num]           show the history (optional num is commands to show)
:h? <string>             search the history
:imports [name name ...] show import history, identifying sources of names
:implicits [-v]          show the implicits in scope
:javap <path|class>      disassemble a file or class name
:line <id>|<line>        place line(s) at the end of history
:load <path>             interpret lines in a file
:paste [-raw] [path]     enter paste mode or paste a file
:power                   enable power user mode
:quit                    exit the interpreter
:replay [options]        reset the repl and replay all previous commands
:require <path>          add a jar to the classpath
:reset [options]         reset the repl to its initial state, forgetting all session entries
:save <path>             save replayable session to a file
:sh <command line>       run a shell command (result is implicitly => List[String])
:settings <options>      update compiler options, if possible; see reset
:silent                  disable/enable automatic printing of results
:type [-v] <expr>        display the type of an expression without evaluating it
:kind [-v] <type>        display the kind of a type. see also :help kind
:warnings                show the suppressed warnings from the most recent line which had any

scala> :quit

原文地址:https://www.cnblogs.com/CQ-LQJ/p/11617379.html

时间: 2024-08-29 01:51:34

【scala】scala安装测试的相关文章

Scala的安装,入门,学习,基础

1:Scala的官方网址:http://www.scala-lang.org/ 推荐学习教程:http://www.runoob.com/scala/scala-tutorial.html Scala是一种多范式的编程语言,其设计的初衷是要集成面向对象编程和函数式编程的各种特性.Scala运行于Java平台(Java虚拟机),并兼容现有的Java程序. 2:Scala的优点: (1):优雅:这是框架设计师第一个要考虑的问题,框架的用户是应用开发程序员,API是否优雅直接影响用户体验. (2):速

微软桌面虚拟化vdi 安装测试体验

最近同事在讨论桌面虚拟化,说目前很多企业都准备上桌面虚拟化,结合众多的解决方案,觉得微软的桌面虚拟化方案不错,相对与citrix的xendesktop,vmware view 有一定的价格优势,心里想,微软是大公司,桌面虚拟化技术即使没有citrix和vmware的好,但一定也不会差,所以我们采用性价比高的. 本次的测试环境是2台Dell R720服务器(据说该服务器是全世界销量最好的,不知道真假),服务器操作系统安装windows server 2012 R2,虚拟桌面端安装windows 7

安装测试知识(待更新)

1.    安装测试 1.1定义 安装测试是指按照软件产品安装手册或相应的文档,在一个和用户使用该产品完全一样的环境中或相当于用户使用环境中,进行一步一步的操作完成安装的过程所进行的测试. 1.2安装测试的分类 安装测试可以分为: (1)全新安装,待安装的软件包是完整的,包含了所有的文件. (2)升级版本安装,部分文件构成的软件包.升级安装也可以分为两种,一种是完全替换原来版本,另外一种就是保持多种版本共存. (3)补丁式安装,很小的改动或很少文件的更新. (4)软件版本不变 系统运行环境改变,

Centos 6.7 Tomcat基本安装测试

Tomcat基本安装测试 /==============================基本安装使用=========================================>/ Tomcat A 设置 安装jdk http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html下载JDK 1.1安装jdk ~]# rpm -ivh jdk-7u67-linux-x64.rpm Preparing.

php管理工具composer安装&测试

我把它放在系统的PATH目录中,这样就能在全局访问它. curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer 此命令只检查少量的PHP配置,然后下载 composer.phar 文件到你的工作目录,此文件就是Composer执行文件,它是一个PHAR(PHP归档文件,里面可以包含任何文件,并且可以在PHP命令行执行). 测试是否安装成功 composer -V Compo

centos7主要特性 ---docker安装测试

红帽日前正式发布了企业版Linux 7,满足企业当前对数据中心的需求和对下一代的云服务.Containers.大数据的需求,为用户提供军用级安全以及稳定.易用.高效的管理.社区发行版CentOS 7也已经发布出来了,抢先体验docker1.0. rpm -Uvh http://dl.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 安装docker      yum install docker-io 启动服务    

Redis集群方案,Codis安装测试

1,关于豌豆荚开源的Codis Codis是豌豆荚使用Go和C语言开发.以代理的方式实现的一个Redis分布式集群解决方案,且完全兼容Twemproxy.Twemproxy对于上一层的应用来说, 连接Codis Proxy(Redis代理服务)和连接原生的Redis服务器没有明显的区别,上一层应用能够像使用单机的 Redis一样对待.Codis底层会处理请求的转发.不停机的数据迁移等工作, 所有底层的一切处理, 对于客户端来说是透明的.总之,可以简单的认为后台连接的是一个内存无限大的Redis服

node.js 安装 测试

2014年5月1日 18:48:01 安装: 系统是centos,里边的python版本是2.4,但是node.js 源码tar包安装要求是 2.6 或者 2.7 下载python 2.7编译安装,注意,可以不卸载原有系统中的python,编译安装2.7时,默认安装,不要在配置时指定安装路径 默认安装的时候,2.7会自动改写软连接将/usr/local/bin/python 指向2.7 这样安装node.js的时候就会使用python2.7的程序了 ------------------- 测试:

Mysql 5.6.27 双主模型&&主备模型安装测试

http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.27-1.el6.x86_64.rpm-bundle.tar 测试环境:    两台服务器          MYSQL-1:10.11.22.78          MYSQL-2:10.11.22.248    测试系统          Centos 6.5_64    Mysql版本          MySQL-5.6.27    Keepalived版本          k

drdb安装测试

一.环境准备 系统环境 CentOS release 6.3 (Final) 内核信息 2.6.32-279.el6.x86_64 ip地址 vip 192.168.64.120 master 192.168.64.132  心跳线:10.0.0.1    主机名:DBmaster.test slave 192.168.64.135   心跳线:10.0.0.2    主机名:DBbak.test 镜像磁盘 master /dev/sdc slave /dev/sdc fdisk -l 安装依赖