[root@m1 ~]# vi /etc/profile

export SCALA_HOME=/usr/local/soft/scala-2.11.8
export PATH=$PATH:$SCALA_HOME/bin

[root@m1 ~]# source /etc/profile

 

posted on 2017-03-17 21:28  肖建锋  阅读(470)  评论(0编辑  收藏  举报