Linux sbt安裝配置
1.sbt官網下載,xftp放到/opt/sbt下:
2.解壓:tar -zxvf sbt-1.2.1.tgz
3. cd sbt , vim sbt,編輯如下內容,保存退出。
4.授權:
chmod u+x ./sbt
5.配置環境變量:
vi /etc/profile,添加:
export PATH=/opt/sbt/sbt/:$PATH
6.更新配置文件:
source /etc/profile
7. 查看版本:
sbt sbtVersion
以上。
附:linux中要編譯項目代碼,需設置一下三步:
1.
替換/opt/sbt/sbt/conf下的repo.properties
2.
替換/opt/sbt/sbt/bin下的sbt-launch.jar