본문 바로가기
Study & Edu/BigData

vi /etc/profile 내용 복붙 -파란색줄 추가

by 댓츠굿 2015. 3. 7.

# /etc/profile


# System wide environment and startup programs, for login setup

# Functions and aliases go in /etc/bashrc


# It's NOT good idea to change this file unless you know what you

# are doing. Much better way is to create custom.sh shell script in

# /etc/profile.d/ to make custom changes to environment. This will

# prevent need for merging in future updates.


pathmunge () {

    case ":${PATH}:" in

        *:"$1":*)

            ;;

        *)

            if [ "$2" = "after" ] ; then

                PATH=$PATH:$1

            else

                PATH=$1:$PATH

            fi

    esac

}


# export JAVA_HOME=/usr/java/jdk1.6.0_35

export JAVA_HOME=/usr/java/jdk1.6.0_35

# export PATH=$PATH:$JAVA_HOME/bin

export PATH=$PATH:$JAVA_HOME/binexport PATH=$PATH:$JAVA_HOME/binexport PATH=$PATH:$JAVA_HOME/bin

# export CLASSPATH=$JAVA_HOME/jre/ext:$JAVA_HOME/lib/tools.jar

# export HADOOP_HOME=/home/root/hadoop-1.0.4


# pathmunge /home/root/hadoop-1.0.4/bin


반응형