当前位置: 技术问答>linux和unix
PATH问题
来源: 互联网 发布时间:2016-01-30
本文导语: 每次开机都有这句: -bash: PATH: command not found 我安装了Mysql,Tomcat和JDK,/etc/profile下是 JAVA_HOME=/usr/java/jdk1.5.0 TOMCAT_HOME=/usr/local/tomcat CLASSPATH==.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH PATH=$HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$TO...
每次开机都有这句:
-bash: PATH: command not found
我安装了Mysql,Tomcat和JDK,/etc/profile下是
JAVA_HOME=/usr/java/jdk1.5.0
TOMCAT_HOME=/usr/local/tomcat
CLASSPATH==.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
PATH=$HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$TOMCAT_HOME/bin:$PATH
export JAVA_HOME TOMCAT_HOME CLASSPATH PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
#echo $PATH 看到如下:
/usr/kerberos/sbin:/usr/kerberos/bin:/root/bin:/usr/java/jdk1.5.0/bin:/usr/java/jdk1.5.0/jre/bin:/usr/local/tomcat/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.5.0/bin:/usr/java/jdk1.5.0/jre/bin:/root/bin
不知道哪里出错了,请大家指教。
-bash: PATH: command not found
我安装了Mysql,Tomcat和JDK,/etc/profile下是
JAVA_HOME=/usr/java/jdk1.5.0
TOMCAT_HOME=/usr/local/tomcat
CLASSPATH==.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
PATH=$HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$TOMCAT_HOME/bin:$PATH
export JAVA_HOME TOMCAT_HOME CLASSPATH PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
#echo $PATH 看到如下:
/usr/kerberos/sbin:/usr/kerberos/bin:/root/bin:/usr/java/jdk1.5.0/bin:/usr/java/jdk1.5.0/jre/bin:/usr/local/tomcat/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.5.0/bin:/usr/java/jdk1.5.0/jre/bin:/root/bin
不知道哪里出错了,请大家指教。
|
以后要仔细点了
|
mark