bjwf · 2005-03-22 10:34:52 · 阅读: 570 执行方法不对不是./test.sh 是 . ./test.sh(点空格点/test.sh) 另外可以在test.sh里直接 export JAVA_HOME=/home/xxx/app/jdk