$ sudo mkdir /usr/local/sbt # 创建安装目录
$ sudo tar -zxvf ./sbt-1.3.8.tgz -C /usr/local
$ sudo chown -R hadoop /usr/local/sbt
$ cp ./bin/sbt-launch.jar ./
在 /usr/local/sbt 中创建 sbt 脚本
vim ./sbt
添加内容:#!/bin/bash
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"