老師,我用的是ubuntu14.0,每次開機后都會提示etc/profile export命令未找到,請問這個是什么原因啊,百度了好久都沒有找到合適的解決方法
老師,我用的是ubuntu14.0,每次開機后都會提示etc/profile export命令未找到,請問這個是什么原因啊,百度了好久都沒有找到合適的解決方法
老師,我用的是ubuntu14.0,每次開機后都會提示etc/profile export命令未找到,請問這個是什么原因啊,百度了好久都沒有找到合適的解決方法
2015-10-07
舉報
2015-10-07
配置環(huán)境變量出錯了,你把 /etc/profile 這個文件的內容發(fā)上來看看吶
2015-10-07
問題解決了,太粗心啦
2015-10-07
哦哦,多謝啦。那個沒有玩過這個社區(qū)。多謝指點啦
2015-10-07
export 。。。。。
? " exprot JAVA_HOME=/usr/local/java/jdk1.7.0_60 "
2015-10-07
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "$PS1" ]; then
? if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
??? # The file bash.bashrc already sets the default PS1.
??? # PS1='\h:\w\$ '
??? if [ -f /etc/bash.bashrc ]; then
????? . /etc/bash.bashrc
??? fi
? else
??? if [ "`id -u`" -eq 0 ]; then
????? PS1='# '
??? else
????? PS1='$ '
??? fi
? fi
fi
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
if [ -d /etc/profile.d ]; then
? for i in /etc/profile.d/*.sh; do
??? if [ -r $i ]; then
????? . $i
??? fi
? done
? unset i
fi
#set java enviroment
?? exprot JAVA_HOME=/usr/local/java/jdk1.7.0_60
?? export JRE_HOME=/usr/local/java/jdk1.7.0_60/jre
?? export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
?? export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH