概述
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
最后
以上就是受伤乌冬面为你收集整理的/etc/profile文件的全部内容,希望文章能够帮你解决/etc/profile文件所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复