服务和组件 Scala 2.11.8
解压:
tar -zxvf scala-2.11.8.tgz
重命名:
mv /usr/local/src/scala-2.11.8/ /usr/local/src/scala
分发:
scp -r /usr/local/src/scala/ slave1:/usr/local/src/
scp -r /usr/local/src/scala/ slave2:/usr/local/src/
配置环境变量:
vi /etc/profile
export SCALA_HOME=/usr/local/src/scala
export PATH=$PATH:$SCALA_HOME/bin
分发:
scp -r /etc/profile slave1:/etc/profile
scp -r /etc/profile slave2:/etc/profile
刷新环境变量:
source /etc/profile
进入:
scala