下载sbt-launch.jar,并存放至/usr/local/sbt
[root@master sbt]# pwd
/usr/local/sbt
[root@master sbt]# ls
sbt sbtlaunch sbt-launch.jar
[root@master sbt]# cd sbtlaunch/
[root@master sbtlaunch]# ls
META-INF org sbt.boot.properties0.10.0 sbt.boot.properties0.11.0 sbt.boot.properties0.11.2 sbt.boot.properties0.7 scala xsbti
module.properties sbt sbt.boot.properties0.10.1 sbt.boot.properties0.11.1 sbt.boot.properties0.11.3 sbt-launch.jar xsbt
[root@master sbtlaunch]# cd ..
[root@master sbt]# ls
sbt sbtlaunch sbt-launch.jar
[root@master sbt]# cd sbt
bash: cd: sbt: Not a directory
[root@master sbt]# ls
sbt sbtlaunch sbt-launch.jar
[root@master sbt]# cat sbt
BT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"
[root@master sbt]#
![这里写图片描述](https://img-blog.csdn.net/20170816111457956?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvc2hhZ3VhYnVmYWRhaQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
安装成功
[root@master sbt]
Getting org.scala-sbt sbt 0.13.11 ...
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/persist/0.13.11/jars/persist.jar ...
[SUCCESSFUL ] org.scala-sbt
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbinary/sbinary_2.10/0.4.2/jars/sbinary_2.10.jar ...
[SUCCESSFUL ] org.scala-tools.sbinary
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cross/0.13.11/jars/cross.jar ...
[SUCCESSFUL ] org.scala-sbt
downloading http://maven.aliyun.com/nexus/content/groups/public/org/scala-sbt/ivy/ivy/2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a/ivy-2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a.jar ...
[SUCCESSFUL ] org.scala-sbt.ivy
downloading http://maven.aliyun.com/nexus/content/groups/public/com/jcraft/jsch/0.1.46/jsch-0.1.46.jar ...
[SUCCESSFUL ] com.jcraft
downloading http://maven.aliyun.com/nexus/content/groups/public/org/scala-sbt/serialization_2.10/0.1.2/serialization_2.10-0.1.2.jar ...
[SUCCESSFUL ] org.scala-sbt
downloading http://maven.aliyun.com/nexus/content/groups/public/org/scala-lang/modules/scala-pickling_2.10/0.10.1/scala-pickling_2.10-0.10.1.jar ...
[SUCCESSFUL ] org.scala-lang.modules
downloading http://maven.aliyun.com/nexus/content/groups/public/org/json4s/json4s-core_2.10/3.2.10/json4s-core_2.10-3.2.10.jar ...
[SUCCESSFUL ] org.json4s
downloading http://maven.aliyun.com/nexus/content/groups/public/org/spire-math/jawn-parser_2.10/0.6.0/jawn-parser_2.10-0.6.0.jar ...
[SUCCESSFUL ] org.spire-math
downloading http://maven.aliyun.com/nexus/content/groups/public/org/spire-math/json4s-support_2.10/0.6.0/json4s-support_2.10-0.6.0.jar ...
[SUCCESSFUL ] org.spire-math
downloading http://maven.aliyun.com/nexus/content/groups/public/org/scalamacros/quasiquotes_2.10/2.0.1/quasiquotes_2.10-2.0.1.jar ...
downloading https://jcenter.bintray.com/org/scalamacros/quasiquotes_2.10/2.0.1/quasiquotes_2.10-2.0.1.jar ...
[SUCCESSFUL ] org.scalamacros
downloading http://maven.aliyun.com/nexus/content/groups/public/org/json4s/json4s-ast_2.10/3.2.10/json4s-ast_2.10-3.2.10.jar ...
[SUCCESSFUL ] org.json4s
downloading http://maven.aliyun.com/nexus/content/groups/public/com/thoughtworks/paranamer/paranamer/2.6/paranamer-2.6.jar ...
[SUCCESSFUL ] com.thoughtworks.paranamer
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache/0.13.11/jars/cache.jar ...
[SUCCESSFUL ] org.scala-sbt
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/test-agent/0.13.11/jars/test-agent.jar ...
[SUCCESSFUL ] org.scala-sbt
downloading http://maven.aliyun.com/nexus/content/groups/public/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar ...
[SUCCESSFUL ] org.scala-sbt
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/apply-macro/0.13.11/jars/apply-macro.jar ...
[SUCCESSFUL ] org.scala-sbt
:: problems summary ::
:::: WARNINGS
[FAILED ] org.scalamacros
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
:: retrieving :: org.scala-sbt
confs: [default]
49 artifacts copied, 0 already retrieved (17330kB/884ms)
Getting Scala 2.10.6 (for sbt)...
downloading http://maven.aliyun.com/nexus/content/groups/public/org/scala-lang/jline/2.10.6/jline-2.10.6.jar ...
[SUCCESSFUL ] org.scala-lang
downloading http://maven.aliyun.com/nexus/content/groups/public/org/fusesource/jansi/jansi/1.4/jansi-1.4.jar ...
[SUCCESSFUL ] org.fusesource.jansi
:: retrieving :: org.scala-sbt
confs: [default]
5 artifacts copied, 0 already retrieved (24494kB/272ms)
[info] Set current project to sbt (in build file:/usr/local/sbt/)
[info] 0.13.11
[root@master sbt]
![这里写图片描述](https://img-blog.csdn.net/20170816111514322?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvc2hhZ3VhYnVmYWRhaQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)