/etc/profile文件

  1 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2 # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
  3
  4 if [ "$PS1" ]; then
  5   if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
  6     # The file bash.bashrc already sets the default PS1.
  7     # PS1='\h:\w\$ '
  8     if [ -f /etc/bash.bashrc ]; then
  9       . /etc/bash.bashrc
 10     fi
 11   else
 12     if [ "`id -u`" -eq 0 ]; then
 13       PS1='# '
 14     else
 15       PS1='$ '
 16     fi
 17   fi
 18 fi
 19
 20 # The default umask is now handled by pam_umask.
 21 # See pam_umask(8) and /etc/login.defs.
 22
 23 if [ -d /etc/profile.d ]; then
 24   for i in /etc/profile.d/*.sh; do
 25     if [ -r $i ]; then
 26       . $i
 27     fi
 28   done
 29   unset i
 30 fi
 31 #set java environment
 32 JAVA_HOME=/opt/jdk1.6.0_33
 33 export HADOOP_HOME=/home/hadoop-user/hadoop-0.20.204.0
 34 export PIG_HOME=/home/hadoop-user/pig-0.10.0
 35 export M2_HOME=/opt/apache-maven
 36 export HIVE_HOME=/home/hadoop-user/hive-0.9.0
 37 export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
 38 export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$PIG_HOME/bin:$HIVE_HOME/bin:$M2_HOME/bin:/usr/bin:$M2_HOME/bin:$PATH

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值